mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
95a3bffeaf
commit
fc31d730d8
3 changed files with 33 additions and 25 deletions
|
@ -91,6 +91,7 @@
|
|||
|
||||
#include "scdaemon.h"
|
||||
#include "iso7816.h"
|
||||
#define CCID_DRIVER_INCLUDE_USB_IDS 1
|
||||
#include "ccid-driver.h"
|
||||
|
||||
#define DRVNAME "ccid-driver: "
|
||||
|
@ -203,29 +204,6 @@ enum {
|
|||
#define CCID_ERROR_CODE(buf) (((unsigned char *)(buf))[8])
|
||||
|
||||
|
||||
/* 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
|
||||
#define CHERRY_ST2000 0x003e
|
||||
#define VASCO_920 0x0920
|
||||
#define GEMPC_PINPAD 0x3478
|
||||
#define VEGA_ALPHA 0x0008
|
||||
|
||||
/* A list and a table with special transport descriptions. */
|
||||
enum {
|
||||
TRANSPORT_USB = 0, /* Standard USB transport. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue