From 310b7a57bc03db660874eed67b049a910de369fd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 29 Dec 2014 19:33:09 +0100 Subject: introduce config.h We now have configuration in just one place. --- udev/Makefile | 2 +- udev/ykfde.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'udev') diff --git a/udev/Makefile b/udev/Makefile index b8ddc84..7821b8e 100644 --- a/udev/Makefile +++ b/udev/Makefile @@ -7,7 +7,7 @@ CFLAGS += -std=c11 -O2 -fpic -pie -Wall -Werror all: ykfde -ykfde: ykfde.c +ykfde: ykfde.c ../config.h $(CC) $(CFLAGS) -lykpers-1 -lyubikey -liniparser $(LDFLAGS) -o ykfde ykfde.c install: ykfde diff --git a/udev/ykfde.c b/udev/ykfde.c index 2adedbb..c96d84e 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -34,6 +34,8 @@ #include +#include "../config.h" + #define EVENT_SIZE (sizeof (struct inotify_event)) #define EVENT_BUF_LEN (1024 * (EVENT_SIZE + 16)) @@ -44,11 +46,6 @@ #define ASK_PATH "/run/systemd/ask-password/" #define ASK_MESSAGE "Please enter passphrase for disk" -#define CONFIGFILE "/etc/ykfde.conf" -#define CHALLENGEDIR "/etc/ykfde.d/" - -#define CONFYKSLOT "yk slot" - static int send_on_socket(int fd, const char *socket_name, const void *packet, size_t size) { union { struct sockaddr sa; -- cgit v1.2.3-54-g00ecf