libopensc: supplement to the previous commit
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4684 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
2db473a160
commit
741b8c362e
|
@ -83,7 +83,7 @@ int sc_pkcs15_decipher(struct sc_pkcs15_card *p15card,
|
|||
return SC_ERROR_NOT_ALLOWED;
|
||||
}
|
||||
|
||||
alg_info = _sc_card_find_rsa_alg(p15card->card, prkey->modulus_length);
|
||||
alg_info = sc_card_find_rsa_alg(p15card->card, prkey->modulus_length);
|
||||
if (alg_info == NULL) {
|
||||
sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "Card does not support RSA with key length %d\n", prkey->modulus_length);
|
||||
return SC_ERROR_NOT_SUPPORTED;
|
||||
|
@ -172,7 +172,7 @@ int sc_pkcs15_compute_signature(struct sc_pkcs15_card *p15card,
|
|||
return SC_ERROR_NOT_ALLOWED;
|
||||
}
|
||||
|
||||
alg_info = _sc_card_find_rsa_alg(p15card->card, prkey->modulus_length);
|
||||
alg_info = sc_card_find_rsa_alg(p15card->card, prkey->modulus_length);
|
||||
if (alg_info == NULL) {
|
||||
sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "Card does not support RSA with key length %d\n", prkey->modulus_length);
|
||||
return SC_ERROR_NOT_SUPPORTED;
|
||||
|
|
Loading…
Reference in New Issue