summaryrefslogtreecommitdiffstats
path: root/scd/ccid-driver.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-08-30 09:28:17 +0200
committerWerner Koch <wk@gnupg.org>2013-08-30 09:28:17 +0200
commitfc31d730d8506b069de1d3529ed26660856bf07f (patch)
treee6b5061688beb1e7504722c01489df2b89877d21 /scd/ccid-driver.h
parentscd: PC/SC pinpad input improvement. (diff)
downloadgnupg2-fc31d730d8506b069de1d3529ed26660856bf07f.tar.xz
gnupg2-fc31d730d8506b069de1d3529ed26660856bf07f.zip
scd: Use vendor and product id macros also in apdu.c
* scd/ccid-driver.c: Move vendor and product ids to ... * scd/ccid-driver.h: here. * scd/apdu.c (CCID_DRIVER_INCLUDE_USB_IDS): Define to include ids. (pcsc_vendor_specific_init): Use vendor and product id macros. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--scd/ccid-driver.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/scd/ccid-driver.h b/scd/ccid-driver.h
index 1fd7ffa63..a2a6e168e 100644
--- a/scd/ccid-driver.h
+++ b/scd/ccid-driver.h
@@ -56,6 +56,35 @@
#ifndef CCID_DRIVER_H
#define CCID_DRIVER_H
+
+#ifdef CCID_DRIVER_INCLUDE_USB_IDS
+/* We need to know the vendor to do some hacks. */
+enum {
+ VENDOR_CHERRY = 0x046a,
+ VENDOR_SCM = 0x04e6,
+ VENDOR_OMNIKEY= 0x076b,
+ VENDOR_GEMPC = 0x08e6,
+ VENDOR_VEGA = 0x0982,
+ VENDOR_KAAN = 0x0d46,
+ VENDOR_FSIJ = 0x234b,
+ VENDOR_VASCO = 0x1a44
+};
+
+
+/* Some product ids. */
+#define SCM_SCR331 0xe001
+#define SCM_SCR331DI 0x5111
+#define SCM_SCR335 0x5115
+#define SCM_SCR3320 0x5117
+#define SCM_SPR532 0xe003 /* Also used succeeding model SPR332. */
+#define CHERRY_ST2000 0x003e
+#define VASCO_920 0x0920
+#define GEMPC_PINPAD 0x3478
+#define VEGA_ALPHA 0x0008
+
+#endif /*CCID_DRIVER_INCLUDE_USB_IDS*/
+
+
/* The CID driver returns the same error codes as the status words
used by GnuPG's apdu.h. For ease of maintenance they should always
match. */