diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-10-15 03:44:51 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-10-15 03:44:51 +0200 |
commit | e0ab665a792ada6470cb8885b8427acc3c960998 (patch) | |
tree | 5dd65902bfdf4d925d64fcefc2ed6daa3ef71976 /scd/apdu.c | |
parent | doc: Some gpg and gpgv clarifications. (diff) | |
download | gnupg2-e0ab665a792ada6470cb8885b8427acc3c960998.tar.xz gnupg2-e0ab665a792ada6470cb8885b8427acc3c960998.zip |
scd: remove pin length check.
* scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin
length.
--
GnuPG-bug-id: 1549
Diffstat (limited to 'scd/apdu.c')
-rw-r--r-- | scd/apdu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index 2e0955215..293849d94 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -2198,12 +2198,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; |