mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +01:00
scd,ccid: Add support of GEMPC_EZIO.
* scd/ccid-driver.h (GEMPC_EZIO): New. * scd/ccid-driver.c (ccid_transceive_secure): Support GEMPC_EZIO. -- This is backport from master. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
392e068e9f
commit
9b41f58c8a
@ -3423,13 +3423,27 @@ ccid_transceive_secure (ccid_driver_t handle,
|
|||||||
if (handle->id_product == CRYPTOUCAN){
|
if (handle->id_product == CRYPTOUCAN){
|
||||||
pininfo->maxlen = 25;
|
pininfo->maxlen = 25;
|
||||||
enable_varlen = 1;
|
enable_varlen = 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
return CCID_DRIVER_ERR_NOT_SUPPORTED;
|
||||||
|
case VENDOR_GEMPC:
|
||||||
|
if (handle->id_product == GEMPC_PINPAD)
|
||||||
|
{
|
||||||
|
enable_varlen = 0;
|
||||||
|
pininfo->minlen = 4;
|
||||||
|
pininfo->maxlen = 8;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (handle->id_product == GEMPC_EZIO)
|
||||||
|
{
|
||||||
|
pininfo->maxlen = 25;
|
||||||
|
enable_varlen = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return CCID_DRIVER_ERR_NOT_SUPPORTED;
|
||||||
default:
|
default:
|
||||||
if ((handle->id_vendor == VENDOR_GEMPC &&
|
if ((handle->id_vendor == VENDOR_VEGA &&
|
||||||
handle->id_product == GEMPC_PINPAD)
|
handle->id_product == VEGA_ALPHA))
|
||||||
|| (handle->id_vendor == VENDOR_VEGA &&
|
|
||||||
handle->id_product == VEGA_ALPHA))
|
|
||||||
{
|
{
|
||||||
enable_varlen = 0;
|
enable_varlen = 0;
|
||||||
pininfo->minlen = 4;
|
pininfo->minlen = 4;
|
||||||
|
@ -83,6 +83,7 @@ enum {
|
|||||||
#define VASCO_920 0x0920
|
#define VASCO_920 0x0920
|
||||||
#define GEMPC_PINPAD 0x3478
|
#define GEMPC_PINPAD 0x3478
|
||||||
#define GEMPC_CT30 0x3437
|
#define GEMPC_CT30 0x3437
|
||||||
|
#define GEMPC_EZIO 0x34c2 /* (!=34c0) Also known as IDBridge CT710 */
|
||||||
#define VEGA_ALPHA 0x0008
|
#define VEGA_ALPHA 0x0008
|
||||||
#define CYBERJACK_GO 0x0504
|
#define CYBERJACK_GO 0x0504
|
||||||
#define CRYPTOUCAN 0x81e6
|
#define CRYPTOUCAN 0x81e6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user