libopensc: export 'sc_card_find_rsa_alg'

Following proposal of Andre Zepezauer, see
http://www.opensc-project.org/pipermail/opensc-devel/2010-August/014699.html


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4683 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-09-04 20:16:54 +00:00
parent 0fe106e53a
commit 2db473a160
4 changed files with 7 additions and 4 deletions

View File

@ -722,8 +722,8 @@ int _sc_card_add_rsa_alg(sc_card_t *card, unsigned int key_length,
return _sc_card_add_algorithm(card, &info);
}
sc_algorithm_info_t * _sc_card_find_rsa_alg(sc_card_t *card,
unsigned int key_length)
sc_algorithm_info_t * sc_card_find_rsa_alg(sc_card_t *card,
unsigned int key_length)
{
int i;

View File

@ -114,8 +114,6 @@ int _sc_check_forced_protocol(struct sc_context *ctx, u8 *atr, size_t atr_len, u
int _sc_card_add_algorithm(struct sc_card *card, const struct sc_algorithm_info *info);
int _sc_card_add_rsa_alg(struct sc_card *card, unsigned int key_length,
unsigned long flags, unsigned long exponent);
struct sc_algorithm_info * _sc_card_find_rsa_alg(struct sc_card *card,
unsigned int key_length);
int sc_asn1_read_tag(const u8 ** buf, size_t buflen, unsigned int *cla_out,
unsigned int *tag_out, size_t *taglen);

View File

@ -282,3 +282,4 @@ sc_pkcs15init_update_certificate
sc_pkcs15init_update_file
sc_pkcs15init_verify_secret
sc_pkcs15init_sanity_check
sc_card_find_rsa_alg

View File

@ -1068,6 +1068,10 @@ const sc_app_info_t * sc_find_app_by_aid(sc_card_t *card,
const u8 *aid, size_t aid_len);
int sc_update_dir(sc_card_t *card, sc_app_info_t *app);
struct sc_algorithm_info * sc_card_find_rsa_alg(sc_card_t *card,
unsigned int key_length);
struct sc_card_error {
unsigned int SWs;
int errorno;