cardos v4.3b support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2998 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ae5866b244
commit
886e63c60e
|
@ -624,7 +624,8 @@ static int cardos_put_key(sc_profile_t *profile, sc_card_t *card,
|
|||
if (pin_id < 0)
|
||||
pin_id = 0;
|
||||
|
||||
if (key_info->modulus_length > 1024 && card->type == SC_CARD_TYPE_CARDOS_M4_2) {
|
||||
if (key_info->modulus_length > 1024 && (card->type == SC_CARD_TYPE_CARDOS_M4_2 ||
|
||||
card->type == SC_CARD_TYPE_CARDOS_M4_3)) {
|
||||
r = cardos_store_key_component(card, algorithm, key_id, pin_id, 0,
|
||||
key->p.data, key->p.len, 0, 0);
|
||||
if (r != SC_SUCCESS)
|
||||
|
|
Loading…
Reference in New Issue