From 24b877cf29cefb2d8b02029e2f10ccbaccf472f5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 18 Apr 2017 22:07:54 +0200 Subject: [PATCH] Remove sha1.h. The file contains only the declaration of sha1_hash() and the definition of HASH_SIZE This commit moves HASH_SIZE from sha1.h to hash.h and moves the declaration of sha1_hash() to hash.h, the only file which needs it. --- hash.h | 6 +++++- sha1.h | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 sha1.h diff --git a/hash.h b/hash.h index 0feee84..6244d08 100644 --- a/hash.h +++ b/hash.h @@ -11,7 +11,11 @@ /** hash arrays are always unsigned char. */ #define HASH_TYPE unsigned char -#include "sha1.h" +/** Size of the hash value in bytes. */ +#define HASH_SIZE 20 + +void sha1_hash(const char *data, unsigned long len, unsigned char *sha1); + /** Our own sha1 implementation, see sha1.c. */ #define hash_function sha1_hash diff --git a/sha1.h b/sha1.h deleted file mode 100644 index 4d21733..0000000 --- a/sha1.h +++ /dev/null @@ -1,5 +0,0 @@ -/** \file sha1.h Secure Hash Algorithm prototype */ - -/** Size of the hash value in bytes. */ -#define HASH_SIZE 20 -void sha1_hash(const char *data, unsigned long len, unsigned char *sha1); -- 2.39.2