SC_PKCS15_MAX_PINS=8 is not enough for Aventra MyEID

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

SC_PKCS15_MAX_PINS=8 is not enough for Aventra MyEID

Hiroshi KIHIRA

I think that the limitation of SC_PKCS15_MAX_PINS=8 in
src/libopensc/pkcs15.h is not enough for Aventra MyEID smart card.
According to the wiki (OpenSC/wiki/Aventra-MyEID-PKI-card), MyEID smart
card supports up to 14 PINs. But, because of this limitation,
"pkcs11-tool -L" command shows only first 7 slots.
Please consider to increase SC_PKCS15_MAX_PINS value to at least 14.

Hiroshi KIHIRA

 src/libopensc/pkcs15.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libopensc/pkcs15.h b/src/libopensc/pkcs15.h
index f46a9b7..9ac48f7 100644
--- a/src/libopensc/pkcs15.h
+++ b/src/libopensc/pkcs15.h
@@ -30,7 +30,7 @@ extern "C" {
 #define SC_PKCS15_CACHE_DIR ".eid"

 #define SC_PKCS15_PIN_MAGIC 0x31415926
-#define SC_PKCS15_MAX_PINS 8
+#define SC_PKCS15_MAX_PINS 14
 #define SC_PKCS15_MAX_LABEL_SIZE 255
 #define SC_PKCS15_MAX_ID_SIZE 255

Hiroshi KIHIRA <[hidden email]>

See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
Opensc-devel mailing list
[hidden email]