From ea7150b070125c56835bae670d18adb052074a87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 7 Sep 2001 23:55:15 +0000 Subject: [PATCH] The various hash #includes in rand_lcl.h *are* needed despite is now used (MD_DIGEST_LENGTH definitions!). No need to include such headers directly in md_rand.c. --- crypto/rand/md_rand.c | 2 -- crypto/rand/rand_lcl.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 0a5037464f..841631d3ca 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -126,8 +126,6 @@ #include #include -#include -#include #ifdef BN_DEBUG # define PREDICT diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h index c69d6a9785..21070efa7a 100644 --- a/crypto/rand/rand_lcl.h +++ b/crypto/rand/rand_lcl.h @@ -133,18 +133,22 @@ #define MD_Update(a,b,c) EVP_DigestUpdate(a,b,c) #define MD_Final(a,b) EVP_DigestFinal(a,b,NULL) #if defined(USE_MD5_RAND) +#include #define MD_DIGEST_LENGTH MD5_DIGEST_LENGTH #define MD_Init(a) EVP_DigestInit(a,EVP_md5()) #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md5()) #elif defined(USE_SHA1_RAND) +#include #define MD_DIGEST_LENGTH SHA_DIGEST_LENGTH #define MD_Init(a) EVP_DigestInit(a,EVP_sha1()) #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_sha1()) #elif defined(USE_MDC2_RAND) +#include #define MD_DIGEST_LENGTH MDC2_DIGEST_LENGTH #define MD_Init(a) EVP_DigestInit(a,EVP_mdc2()) #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_mdc2()) #elif defined(USE_MD2_RAND) +#include #define MD_DIGEST_LENGTH MD2_DIGEST_LENGTH #define MD_Init(a) EVP_DigestInit(a,EVP_md2()) #define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md2()) -- 2.25.1