X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=ykneo.c;h=9fbe87eb777477c110a0daa78f7394844336bccd;hp=2510e18d307ab3f68a3d27a1f50f784c677eae38;hb=5ed9f47355ad8e28f7597d1738854b6550a02a9f;hpb=740b870a7a4d1936991d856f5427e4c10c2c849a diff --git a/ykneo.c b/ykneo.c index 2510e18..9fbe87e 100644 --- a/ykneo.c +++ b/ykneo.c @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include #include @@ -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) {