From 751ff1d376feae3beaee90ca66dd7fe92e2316d2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 20 Mar 2003 23:21:51 +0000 Subject: [PATCH] Make sure we get the definition of OPENSSL_NO_DSA and OPENSSL_NO_SHA. --- crypto/dsa/dsa.h | 2 ++ crypto/dsa/dsa_gen.c | 2 ++ crypto/dsa/dsa_key.c | 2 +- crypto/dsa/dsatest.c | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 6ba79b01df..651add43ae 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -65,6 +65,8 @@ #ifndef HEADER_DSA_H #define HEADER_DSA_H +#include + #ifdef OPENSSL_NO_DSA #error DSA is disabled. #endif diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index 4b9aff3689..dffd588ff1 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -69,6 +69,8 @@ #define HASH EVP_sha1() #endif +#include /* To see if OPENSSL_NO_SHA is defined */ + #ifndef OPENSSL_NO_SHA #include diff --git a/crypto/dsa/dsa_key.c b/crypto/dsa/dsa_key.c index 48ff1f423c..8427b77970 100644 --- a/crypto/dsa/dsa_key.c +++ b/crypto/dsa/dsa_key.c @@ -56,10 +56,10 @@ * [including the GNU Public Licence.] */ -#ifndef OPENSSL_NO_SHA #include #include #include "cryptlib.h" +#ifndef OPENSSL_NO_SHA #include #include #include diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c index 940d97d0e6..71ff566edb 100644 --- a/crypto/dsa/dsatest.c +++ b/crypto/dsa/dsatest.c @@ -76,6 +76,7 @@ #include #ifndef OPENSSL_NO_ENGINE #include +#include #endif #ifdef OPENSSL_NO_DSA -- GitLab