aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2013-03-21 00:04:13 +0000
committerNIIBE Yutaka <[email protected]>2013-03-21 00:09:41 +0000
commitca66f5c779af74d0eb7221afd7a9707201931e50 (patch)
tree80a87757490f272a233dbe76d6861a2744cb3f34 /scd/apdu.c
parentMerge branch 'master' into key-storage-work (diff)
downloadgnupg-ca66f5c779af74d0eb7221afd7a9707201931e50.tar.gz
gnupg-ca66f5c779af74d0eb7221afd7a9707201931e50.zip
scd: change default value of pinpad maxlen.
* scd/apdu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Default value of maxlen for pinpad input is now 15 (was: 25). * scd/ccid-driver.c (ccid_transceive_secure): Likewise. -- For newer PC/SC, it is better to use FEATURE_GET_TLV_PROPERTIES to get bMaxPINSize.
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 6824ded55..e920678d6 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -2056,7 +2056,7 @@ pcsc_pinpad_verify (int slot, int class, int ins, int p0, int p1,
if (!pininfo->minlen)
pininfo->minlen = 1;
if (!pininfo->maxlen)
- pininfo->maxlen = 25;
+ pininfo->maxlen = 15;
/* Note that the 25 is the maximum value the SPR532 allows. */
if (pininfo->minlen < 1 || pininfo->minlen > 25
@@ -2139,7 +2139,7 @@ pcsc_pinpad_modify (int slot, int class, int ins, int p0, int p1,
if (!pininfo->minlen)
pininfo->minlen = 1;
if (!pininfo->maxlen)
- pininfo->maxlen = 25;
+ pininfo->maxlen = 15;
/* Note that the 25 is the maximum value the SPR532 allows. */
if (pininfo->minlen < 1 || pininfo->minlen > 25