From d02f751ce1d13183a0c0e5528ec89f76587ed989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulf=20M=C3=B6ller?= Date: Tue, 27 Apr 1999 04:18:53 +0000 Subject: Message digest stuff. --- crypto/rand/Makefile.ssl | 4 ++-- crypto/rand/md_rand.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'crypto/rand') diff --git a/crypto/rand/Makefile.ssl b/crypto/rand/Makefile.ssl index 17591e0..e78d585 100644 --- a/crypto/rand/Makefile.ssl +++ b/crypto/rand/Makefile.ssl @@ -77,7 +77,7 @@ clean: # DO NOT DELETE THIS LINE -- make depend depends on it. md_rand.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h -md_rand.o: ../../include/openssl/md5.h ../../include/openssl/opensslv.h -md_rand.o: ../../include/openssl/rand.h ../../include/openssl/stack.h +md_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h +md_rand.o: ../../include/openssl/sha.h ../../include/openssl/stack.h rand_lib.o: ../../include/openssl/rand.h randfile.o: ../../include/openssl/e_os.h ../../include/openssl/rand.h diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index ab7e41c..8ab8608 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -64,16 +64,16 @@ #include #if !defined(USE_MD5_RAND) && !defined(USE_SHA1_RAND) && !defined(USE_MDC2_RAND) && !defined(USE_MD2_RAND) -#ifndef NO_MD5 -#define USE_MD5_RAND -#elif !defined(NO_SHA1) +#if !defined(NO_SHA) && !defined(NO_SHA1) #define USE_SHA1_RAND -#elif !defined(NO_MDC2) +#elif !defined(NO_MD5) +#define USE_MD5_RAND +#elif !defined(NO_MDC2) && !defined(NO_DES) #define USE_MDC2_RAND #elif !defined(NO_MD2) #define USE_MD2_RAND #else -We need a message digest of some type +#error No message digest algorithm available #endif #endif -- cgit v1.1