aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/g10.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index b63987989..0f6003565 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -1218,6 +1218,14 @@ main( int argc, char **argv )
if( !*opt.homedir )
set_homedir ( GNUPG_HOMEDIR );
+#ifdef ENABLE_CARD_SUPPORT
+# ifdef _WIN32
+ opt.pcsc_driver = "winscard.dll";
+#else
+ opt.pcsc_driver = "libpcsclite.so";
+#endif
+#endif /*ENABLE_CARD_SUPPORT*/
+
/* check whether we have a config file on the commandline */
orig_argc = argc;
orig_argv = argv;