aboutsummaryrefslogtreecommitdiffstats
path: root/g10/ccid-driver.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-09-15 15:26:38 +0000
committerWerner Koch <[email protected]>2004-09-15 15:26:38 +0000
commit58cf95534eaeb0a084ea71472f69f1063cb5d6cd (patch)
tree1d5af964f8ddcbb02a6e5f2a0f7218bdcbb2789b /g10/ccid-driver.h
parentDocument "--debug-ccid-driver". (diff)
downloadgnupg-58cf95534eaeb0a084ea71472f69f1063cb5d6cd.tar.gz
gnupg-58cf95534eaeb0a084ea71472f69f1063cb5d6cd.zip
* 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.
Diffstat (limited to 'g10/ccid-driver.h')
-rw-r--r--g10/ccid-driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/ccid-driver.h b/g10/ccid-driver.h
index 0cb52e1c3..6b9677833 100644
--- a/g10/ccid-driver.h
+++ b/g10/ccid-driver.h
@@ -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);