aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-03-06 10:54:33 +0000
committerWerner Koch <[email protected]>2024-03-07 12:21:43 +0000
commita1ea3b13e0c79cb301216727b17631fbf1b23e06 (patch)
tree1203512c1a0be060dcc5f573480892f6e4eda766 /scd/scdaemon.h
parentdoc: Typo fix in comment (diff)
downloadgnupg-a1ea3b13e0c79cb301216727b17631fbf1b23e06.tar.gz
gnupg-a1ea3b13e0c79cb301216727b17631fbf1b23e06.zip
scd: Let the CCID module auto detach the kernel driver.
* scd/ccid-driver.c (ccid_open_usb_reader): Call libusb_set_auto_detach_kernel_driver. * scd/scdaemon.c (oCompatibilityFlags): New. (opts): Add option "compatibility-flags". (compatibility_flags): New. (main): Parse flags. * scd/scdaemon.h (opt): Add field compat_flags. (COMPAT_CCID_NO_AUTO_DETACH): New.
Diffstat (limited to '')
-rw-r--r--scd/scdaemon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index 7b82d1b21..16873c54b 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -67,6 +67,9 @@ struct
want to use. */
unsigned long card_timeout; /* Disconnect after N seconds of inactivity. */
int debug_allow_pin_logging; /* Allow PINs in debug output. */
+
+ /* Compatibility flags (COMPAT_FLAG_xxxx). */
+ unsigned int compat_flags;
} opt;
@@ -92,6 +95,11 @@ struct
#define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE)
#define DBG_READER (opt.debug & DBG_READER_VALUE)
+
+#define COMPAT_CCID_NO_AUTO_DETACH 1
+
+
+
struct server_local_s;
struct card_ctx_s;
struct app_ctx_s;