From e7f9fb70eebcc8cac4f6265fa3137b659a85806c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 09:30:03 +0200 Subject: [PATCH] fix compilation with latest automake --- Makefile.am | 5 ++--- rfc4634/hmac.c => hmac.c | 0 rfc4634/sha-private.h => sha-private.h | 0 rfc4634/sha.h => sha.h | 0 rfc4634/sha1.c => sha1.c | 0 rfc4634/sha224-256.c => sha224-256.c | 0 rfc4634/sha384-512.c => sha384-512.c | 0 tests/Makefile.am | 2 +- tests/ykpers-args.c | 1 + tests/ykpers-args.h | 1 + rfc4634/usha.c => usha.c | 0 ykpbkdf2.c | 2 +- 12 files changed, 6 insertions(+), 5 deletions(-) rename rfc4634/hmac.c => hmac.c (100%) rename rfc4634/sha-private.h => sha-private.h (100%) rename rfc4634/sha.h => sha.h (100%) rename rfc4634/sha1.c => sha1.c (100%) rename rfc4634/sha224-256.c => sha224-256.c (100%) rename rfc4634/sha384-512.c => sha384-512.c (100%) create mode 120000 tests/ykpers-args.c create mode 120000 tests/ykpers-args.h rename rfc4634/usha.c => usha.c (100%) diff --git a/Makefile.am b/Makefile.am index 61b5a1d..90065c7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,9 +52,8 @@ else libykpers_1_la_SOURCES += ykpers-nojson.c endif libykpers_1_la_SOURCES += ykpers_lcl.h ykpers-json.h ykpers_lcl.c -libykpers_1_la_SOURCES += rfc4634/hmac.c rfc4634/usha.c rfc4634/sha.h \ - rfc4634/sha1.c rfc4634/sha224-256.c rfc4634/sha384-512.c \ - rfc4634/sha-private.h +libykpers_1_la_SOURCES += hmac.c usha.c sha.h sha1.c sha224-256.c \ + sha384-512.c sha-private.h libykpers_1_la_SOURCES += ykpers-1.pc.in libykpers-1.map libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la $(libjson_LIBS) libykpers_1_la_LDFLAGS = -no-undefined \ diff --git a/rfc4634/hmac.c b/hmac.c similarity index 100% rename from rfc4634/hmac.c rename to hmac.c diff --git a/rfc4634/sha-private.h b/sha-private.h similarity index 100% rename from rfc4634/sha-private.h rename to sha-private.h diff --git a/rfc4634/sha.h b/sha.h similarity index 100% rename from rfc4634/sha.h rename to sha.h diff --git a/rfc4634/sha1.c b/sha1.c similarity index 100% rename from rfc4634/sha1.c rename to sha1.c diff --git a/rfc4634/sha224-256.c b/sha224-256.c similarity index 100% rename from rfc4634/sha224-256.c rename to sha224-256.c diff --git a/rfc4634/sha384-512.c b/sha384-512.c similarity index 100% rename from rfc4634/sha384-512.c rename to sha384-512.c diff --git a/tests/Makefile.am b/tests/Makefile.am index 9f256df..6fb6edb 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -41,6 +41,6 @@ check_PROGRAMS = $(ctests) TESTS = $(ctests) test_args_to_config_SOURCES = test_args_to_config.c \ - ../ykpers-args.h ../ykpers-args.c + ykpers-args.h ykpers-args.c TESTS_ENVIRONMENT = $(VALGRIND) diff --git a/tests/ykpers-args.c b/tests/ykpers-args.c new file mode 120000 index 0000000..d67d3ef --- /dev/null +++ b/tests/ykpers-args.c @@ -0,0 +1 @@ +../ykpers-args.c \ No newline at end of file diff --git a/tests/ykpers-args.h b/tests/ykpers-args.h new file mode 120000 index 0000000..2468d43 --- /dev/null +++ b/tests/ykpers-args.h @@ -0,0 +1 @@ +../ykpers-args.h \ No newline at end of file diff --git a/rfc4634/usha.c b/usha.c similarity index 100% rename from rfc4634/usha.c rename to usha.c diff --git a/ykpbkdf2.c b/ykpbkdf2.c index 394751d..4e36594 100644 --- a/ykpbkdf2.c +++ b/ykpbkdf2.c @@ -31,7 +31,7 @@ #include -#include "rfc4634/sha.h" +#include "sha.h" int yk_hmac_sha1(const char *key, size_t key_len, const char *text, size_t text_len, -- 2.39.5