summaryrefslogtreecommitdiffstats
path: root/scd/ccid-driver.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-11-15 07:46:37 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2019-11-15 07:46:37 +0100
commit1cb9a831f6eedfa4c8950b8a7706ea77b74693f7 (patch)
treec1dfa0530221bf1fb4cb1781017bf452a85591ca /scd/ccid-driver.c
parentdirmngr: Use IPv4 or IPv6 interface only if available. (diff)
downloadgnupg2-1cb9a831f6eedfa4c8950b8a7706ea77b74693f7.tar.xz
gnupg2-1cb9a831f6eedfa4c8950b8a7706ea77b74693f7.zip
scd,ccid: Fix detection of supported readers with pinpad.
* scd/ccid-driver.c (ccid_transceive_secure): When not supported, return CCID_DRIVER_ERR_NOT_SUPPORTED. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/ccid-driver.c')
-rw-r--r--scd/ccid-driver.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index c9bcc857d..eaee7b55d 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -3439,8 +3439,9 @@ ccid_transceive_secure (ccid_driver_t handle,
{
pininfo->maxlen = 25;
enable_varlen = 1;
+ break;
}
- break;
+ return CCID_DRIVER_ERR_NOT_SUPPORTED;
case VENDOR_GEMPC:
if (handle->id_product == GEMPC_PINPAD)
{
@@ -3455,10 +3456,10 @@ ccid_transceive_secure (ccid_driver_t handle,
enable_varlen = 1;
break;
}
- break;
+ return CCID_DRIVER_ERR_NOT_SUPPORTED;
default:
if ((handle->id_vendor == VENDOR_VEGA &&
- handle->id_product == VEGA_ALPHA))
+ handle->id_product == VEGA_ALPHA))
{
enable_varlen = 0;
pininfo->minlen = 4;