OpenPGP: set version for PKCS#15

This commit is contained in:
Peter Marschall 2012-05-06 21:08:09 +02:00 committed by Viktor Tarasov
parent bc0949140d
commit 7b4532736e
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
sc_bin_to_hex(buffer, (size_t)r, string, sizeof(string), 0);
set_string(&p15card->tokeninfo->serial_number, string);
p15card->tokeninfo->version = (card->type == SC_CARD_TYPE_OPENPGP_V2) ? 2 : 1;
p15card->tokeninfo->flags = SC_PKCS15_TOKEN_PRN_GENERATION | SC_PKCS15_TOKEN_EID_COMPLIANT;
/* Extract preferred language */