From 40cafafaa9955be5da6015057ad4025276ac4298 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 5 Dec 2018 09:40:37 +0100 Subject: [PATCH 1/2] add: [client] hmac implementation submodule --- client/others/hmac | 1 + 1 file changed, 1 insertion(+) create mode 160000 client/others/hmac diff --git a/client/others/hmac b/client/others/hmac new file mode 160000 index 0000000..5efc450 --- /dev/null +++ b/client/others/hmac @@ -0,0 +1 @@ +Subproject commit 5efc450f9dd204059b2f29808deaf2f8239b8129 From 7f6222e940fd7a49d5db7b30c505baf3ff3f0653 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 5 Dec 2018 09:48:16 +0100 Subject: [PATCH 2/2] chg: [makefile] D4/HMAC linking fixed --- client/Makefile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/client/Makefile b/client/Makefile index c42a097..90a2b15 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,5 +1,20 @@ -d4: d4.o others/hmac/sha2.o others/hmac/hmac.o - gcc -Wall -o d4 d4.o others/hmac/hmac.o others/hmac/sha2.o -luuid +all: d4 + + +hmac: hmac.o sha2.o + $(CC) sha2.o hmac.o -o hmac + +hmac.o: ./others/hmac/hmac_sha2.c ./others/hmac/hmac_sha2.h + $(CC) -Wall -c ./others/hmac/hmac_sha2.c -o hmac.o + +sha2.o: ./others/hmac/sha2.c ./others/hmac/sha2.h + $(CC) -c ./others/hmac/sha2.c -o sha2.o + +clean: + - rm -rf *.o hmac + +d4: d4.o sha2.o hmac.o + gcc -Wall -o d4 d4.o hmac.o sha2.o -luuid d4.o: d4.c gcc -Wall -c d4.c