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:
nils 2006-07-13 21:01:46 +00:00
parent ae5866b244
commit 886e63c60e
1 changed files with 2 additions and 1 deletions

View File

@ -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)