diff options
-rw-r--r-- | conf/ykfde.conf | 4 | ||||
-rw-r--r-- | udev/ykfde.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/conf/ykfde.conf b/conf/ykfde.conf index a65c7d8..af25ad7 100644 --- a/conf/ykfde.conf +++ b/conf/ykfde.conf @@ -1,8 +1,8 @@ [general] # Specify what Yubikey slot to use for full disk encryption # The specified slot has to be configured for HMAC-SHA1. -Slot = 2 +slot = 2 # you can specify slot for one or more specific Yubikeys as well #[1234567] -#Slot = 1 +#slot = 1 diff --git a/udev/ykfde.c b/udev/ykfde.c index 05c72b4..9fe486e 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -108,7 +108,7 @@ int main(int argc, char **argv) { char response_askpass[(SHA1_MAX_BLOCK_SIZE * 2) + 2]; /* iniparser */ dictionary * ini; - char section_serial[10 /* unsigned int in char */ + 5 /* ":Slot" */ + 1]; + char section_serial[10 /* unsigned int in char */ + 5 /* ":slot" */ + 1]; /* read challenge */ size_t fsize; char * challenge; @@ -170,9 +170,9 @@ int main(int argc, char **argv) { * if anything here fails we do not care... slot 2 is the default */ if ((ini = iniparser_load(CONFIGFILE)) != NULL) { /* first try the general setting */ - slot = iniparser_getint(ini, "general:Slot", slot); + slot = iniparser_getint(ini, "general:slot", slot); - sprintf(section_serial, "%d:Slot", serial); + sprintf(section_serial, "%d:slot", serial); /* then probe for setting with serial number */ slot = iniparser_getint(ini, section_serial, slot); |