aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-12-29 19:33:09 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-12-29 19:33:09 +0100
commit310b7a57bc03db660874eed67b049a910de369fd (patch)
tree39db1054602e0808b85f1336f1e4a377fa8e20f9 /bin/ykfde.c
parentf567df1043b845749f9db83cbca43c46ff80fe61 (diff)
downloadmkinitcpio-ykfde-310b7a57bc03db660874eed67b049a910de369fd.tar.gz
mkinitcpio-ykfde-310b7a57bc03db660874eed67b049a910de369fd.tar.zst
introduce config.h
We now have configuration in just one place.
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r--bin/ykfde.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 77bb86b..30a4665 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -27,18 +27,14 @@
#include <libcryptsetup.h>
+#include "../config.h"
+
/* challenge is 64 byte,
* HMAC-SHA1 response is 40 byte */
#define CHALLENGELEN 64
#define RESPONSELEN SHA1_MAX_BLOCK_SIZE
#define PASSPHRASELEN SHA1_DIGEST_SIZE * 2
-#define CONFIGFILE "/etc/ykfde.conf"
-#define CHALLENGEDIR "/etc/ykfde.d/"
-#define CONFYKSLOT "yk slot"
-#define CONFLUKSSLOT "luks slot"
-#define CONFDEVNAME "device name"
-
int main(int argc, char **argv) {
char challenge_old[CHALLENGELEN + 1],
challenge_new[CHALLENGELEN + 1],