aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-03-27 06:58:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-03-27 06:58:50 +0100
commit7e141188120dd7617b910a43e8ba4f469a945130 (patch)
tree512f39121af064d359faf94e87b9b73803d0a8a7
parent4eb12d7f6dd13d800a0a5001bdd97c93f8931a80 (diff)
downloadmkinitcpio-ykfde-7e141188120dd7617b910a43e8ba4f469a945130.tar.gz
mkinitcpio-ykfde-7e141188120dd7617b910a43e8ba4f469a945130.tar.zst
always use small characters in config
-rw-r--r--conf/ykfde.conf4
-rw-r--r--udev/ykfde.c6
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);