diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-28 23:57:59 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-28 23:57:59 +0100 |
commit | c6702d77d936b3e9d91b34d8fdee9599ab94ee1b (patch) | |
tree | e31cc3f499aab4eed37a33ba8b8f5679af2e50ae /scd | |
parent | gpg: More fix of get_best_pubkey_byname. (diff) | |
download | gnupg2-c6702d77d936b3e9d91b34d8fdee9599ab94ee1b.tar.xz gnupg2-c6702d77d936b3e9d91b34d8fdee9599ab94ee1b.zip |
scd,ccid: Fix GEMPC_EZIO handling.
* scd/ccid-driver.c (ccid_transceive_secure): Fix for 08e6:34c2.
Fixes-commit: c933c15d587a1c0df3f4b3bf37d8d15164dd318f
GnuPG-bug-id: 4654
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd')
-rw-r--r-- | scd/ccid-driver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index fe7937d62..c9bcc857d 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -3444,15 +3444,15 @@ ccid_transceive_secure (ccid_driver_t handle, case VENDOR_GEMPC: if (handle->id_product == GEMPC_PINPAD) { - pininfo->maxlen = 25; - enable_varlen = 1; + enable_varlen = 0; + pininfo->minlen = 4; + pininfo->maxlen = 8; break; } else if (handle->id_product == GEMPC_EZIO) { - enable_varlen = 0; - pininfo->minlen = 4; - pininfo->maxlen = 8; + pininfo->maxlen = 25; + enable_varlen = 1; break; } break; |