aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2013-10-15 01:44:51 +0000
committerNIIBE Yutaka <[email protected]>2013-10-15 01:48:41 +0000
commitb624677f7359c25873ee3e468c99d1319e6d2308 (patch)
treec05cc5eec0821cac3fe4afa7ba56cdac0b5c5078
parentgpg: Do not require a trustdb with --always-trust. (diff)
downloadgnupg-b624677f7359c25873ee3e468c99d1319e6d2308.tar.gz
gnupg-b624677f7359c25873ee3e468c99d1319e6d2308.zip
scd: remove pin length check.
* scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin length. -- GnuPG-bug-id: 1549 Cherry pick from master.
-rw-r--r--scd/apdu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 8a778df8f..fdae9b856 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -2227,12 +2227,6 @@ pcsc_pinpad_verify (int slot, int class, int ins, int p0, int p1,
if (!pininfo->maxlen)
pininfo->maxlen = 15;
- /* Note that the 25 is the maximum value the SPR532 allows. */
- if (pininfo->minlen < 1 || pininfo->minlen > 25
- || pininfo->maxlen < 1 || pininfo->maxlen > 25
- || pininfo->minlen > pininfo->maxlen)
- return SW_HOST_INV_VALUE;
-
pin_verify = xtrymalloc (len);
if (!pin_verify)
return SW_HOST_OUT_OF_CORE;