From 67136b178148073fd367cbb4757761126f845f11 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Sat, 26 May 2012 20:42:22 +0200 Subject: [PATCH] OpenPGP: revert 7b4532736e0c7923b972aa22344d156760b40adf PKCS#15 spec v1.1 says: TokenInfo.version: This field contains the number of the particular version of this specification the application is based upon. For this version of this document, the value of version shall be 0 (v1). Thanks to Martin Paljak for the finding. --- src/libopensc/pkcs15-openpgp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libopensc/pkcs15-openpgp.c b/src/libopensc/pkcs15-openpgp.c index 75025fbc..722691dc 100644 --- a/src/libopensc/pkcs15-openpgp.c +++ b/src/libopensc/pkcs15-openpgp.c @@ -175,7 +175,6 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card) } } - 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 */