]> www.average.org Git - pam_pcsc_cr.git/blobdiff - ykneo.c
make yubico slot #2 default
[pam_pcsc_cr.git] / ykneo.c
diff --git a/ykneo.c b/ykneo.c
index 2510e18d307ab3f68a3d27a1f50f784c677eae38..9fbe87eb777477c110a0daa78f7394844336bccd 100644 (file)
--- a/ykneo.c
+++ b/ykneo.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <alloca.h>
@@ -12,7 +15,8 @@ static const BYTE cr_cmd[] = {0x00, 0x01, 0xff, 0x00};
 
 static BYTE cr_for_slot[3] = {0xff, 0x30, 0x38};
 
-static int slot;
+static int slot = 2;   /* second by default, people tend to leave */
+                       /* the first with factory settings.        */
 
 static int ykn_parse_option(char *key, char *val)
 {