From d0067d0768e26f100837609a75072da08950e456 Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Fri, 18 Aug 2017 07:50:03 +0200 Subject: [PATCH] Fix compile issues for mfkey32 and mfkey64 after Pull Request #380 --- client/mfkey.c | 2 +- client/mfkey.h | 1 + tools/mfkey/Makefile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/mfkey.c b/client/mfkey.c index 2ab15dcb..0c72a37c 100644 --- a/client/mfkey.c +++ b/client/mfkey.c @@ -10,9 +10,9 @@ // MIFARE Darkside hack //----------------------------------------------------------------------------- -#include "mifare.h" #include "mfkey.h" +#include "mifare.h" #include "crapto1/crapto1.h" diff --git a/client/mfkey.h b/client/mfkey.h index fb7f575b..be32fe1b 100644 --- a/client/mfkey.h +++ b/client/mfkey.h @@ -15,6 +15,7 @@ #include #include +#include "mifare.h" extern bool mfkey32(nonces_t data, uint64_t *outputkey); extern bool mfkey32_moebius(nonces_t data, uint64_t *outputkey); diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile index ede971dc..92d3be72 100755 --- a/tools/mfkey/Makefile +++ b/tools/mfkey/Makefile @@ -1,7 +1,7 @@ VPATH = ../../common ../../common/crapto1 ../../client CC = gcc LD = gcc -CFLAGS = -std=c99 -D_ISOC99_SOURCE -I../../common -I../../client -Wall -O3 +CFLAGS = -std=c99 -D_ISOC99_SOURCE -I../../include -I../../common -I../../client -Wall -O3 LDFLAGS = OBJS = crypto1.o crapto1.o parity.o util_posix.o mfkey.o -- 2.39.5