mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
* g10.c [HAVE_LIBUSB]: New option --debug-ccid-driver.
* ccid-driver.c (read_device_info): Removed. (make_reader_id, scan_or_find_devices): New. (ccid_open_reader): Simplified by make use of the new functions. (ccid_set_debug_level): New. Changed the macros to make use of it. It has turned out that it is often useful to enable debugging at runtime so I added this option.
This commit is contained in:
parent
cffee05e57
commit
58cf95534e
4 changed files with 366 additions and 133 deletions
|
@ -77,6 +77,7 @@ typedef struct ccid_driver_s *ccid_driver_t;
|
|||
|
||||
int ccid_open_reader (ccid_driver_t *handle, int readerno);
|
||||
int ccid_close_reader (ccid_driver_t handle);
|
||||
int ccid_set_debug_level (int level);
|
||||
int ccid_get_atr (ccid_driver_t handle,
|
||||
unsigned char *atr, size_t maxatrlen, size_t *atrlen);
|
||||
int ccid_slot_status (ccid_driver_t handle, int *statusbits);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue