]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Use local SHA512 header
authorGuillem Jover <guillem@hadrons.org>
Tue, 1 Dec 2015 02:39:10 +0000 (03:39 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 1 Dec 2015 02:40:57 +0000 (03:40 +0100)
Actually use the local private SHA512 header instead of relying on the
OpenSSL one for no good reason. Add definition for expected macro
SHA512_DIGEST_LENGTH.

src/getentropy_aix.c
src/getentropy_hpux.c
src/getentropy_linux.c
src/hash/sha512.h

index cbd4037aedb8ffc160de544ab757f68417305b94..d4ccab7137c6d5a5caee87ec149a2f739170e5f7 100644 (file)
@@ -39,7 +39,7 @@
 #include <string.h>
 #include <termios.h>
 
-#include <openssl/sha.h>
+#include "hash/sha512.h"
 
 #include <libperfstat.h>
 
index 45ac84bcafd1a3c6d292ce339c44bdc29c48cc3f..294d83aa1f10973183e31e91e827f8f11a95a85e 100644 (file)
@@ -41,7 +41,8 @@
 #include <errno.h>
 #include <unistd.h>
 #include <time.h>
-#include <openssl/sha.h>
+
+#include "hash/sha512.h"
 
 #include <sys/vfs.h>
 
index 0a5d6b8c72cce045c9c89c15cb737e64665a2b97..d7a8ae589080c37fbc6f219c308e3e1d32313800 100644 (file)
@@ -47,7 +47,8 @@
 #include <errno.h>
 #include <unistd.h>
 #include <time.h>
-#include <openssl/sha.h>
+
+#include "hash/sha512.h"
 
 #include <linux/types.h>
 #include <linux/random.h>
index 43c5aaf2cde41ad426afbba21ce29ea6fd2dd283..4f368a14bb68790662f7587d1c269001978f31ea 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <sys/types.h>
 
+#define SHA512_DIGEST_LENGTH           64
+
 typedef struct SHA512Context {
        uint64_t state[8];
        uint64_t count[2];