aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-08-19 09:36:48 +0000
committerWerner Koch <[email protected]>2003-08-19 09:36:48 +0000
commite3cdba838618c83e87910150d6f292d06ba65b9b (patch)
tree7e61562c4c0904e9909ab4e7ef7b6c79e6198680 /scd/apdu.c
parent2003-08-19 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-e3cdba838618c83e87910150d6f292d06ba65b9b.tar.gz
gnupg-e3cdba838618c83e87910150d6f292d06ba65b9b.zip
* scdaemon.c, scdaemon.h: New option --pcsc-driver.
* apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 978d9ae3d..0d6ad9a85 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -798,6 +798,12 @@ apdu_open_reader (const char *portstr)
{
void *handle;
+ if (!opt.pcsc_driver || !*opt.pcsc_driver)
+ {
+ log_error ("no PC/SC driver has been specified\n");
+ return -1;
+ }
+
handle = dlopen ("libpcsclite.so", RTLD_LAZY);
if (!handle)
{