From 01663218353dd2c1a23fdbcaeab93cd77ca24dd3 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Sun, 4 Nov 2012 16:44:34 +0100 Subject: [PATCH] libopensc: increase maximum number of card drivers http://www.opensc-project.org/pipermail/opensc-devel/2012-October/018552.html Default driver is disabled on 0.13 because there are more drivers listed in ctx.c. (leonardo.schenkel@gmail.com) SC_MAX_CARD_DRIVERS is increases from 32 to 48. It's not the best solution, but the most rapid. Will be waiting for the better proposals. --- src/libopensc/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/types.h b/src/libopensc/types.h index 32033922..e1a24fe5 100644 --- a/src/libopensc/types.h +++ b/src/libopensc/types.h @@ -28,7 +28,7 @@ extern "C" { typedef unsigned char u8; /* various maximum values */ -#define SC_MAX_CARD_DRIVERS 32 +#define SC_MAX_CARD_DRIVERS 48 #define SC_MAX_CARD_DRIVER_SNAME_SIZE 16 #define SC_MAX_CARD_APPS 8 #define SC_MAX_APDU_BUFFER_SIZE 261 /* takes account of: CLA INS P1 P2 Lc [255 byte of data] Le */