make yubico slot #2 default
authorEugene Crosser <crosser@average.org>
Thu, 31 Oct 2013 22:12:37 +0000 (02:12 +0400)
committerEugene Crosser <crosser@average.org>
Thu, 31 Oct 2013 22:12:37 +0000 (02:12 +0400)
ykneo.c

diff --git a/ykneo.c b/ykneo.c
index 5a153a545dd3af4c1d9131d0bb3138465394f029..9fbe87eb777477c110a0daa78f7394844336bccd 100644 (file)
--- a/ykneo.c
+++ b/ykneo.c
@@ -15,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)
 {