From 5cdf5e33089dad8bf2aa5b68abbdeebfc29d2464 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 9 Jan 2005 17:58:18 +0000 Subject: [PATCH] Allow for ./config no-sha0. PR: 993 --- crypto/evp/c_alld.c | 2 +- crypto/evp/m_sha.c | 2 +- crypto/sha/shatest.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/evp/c_alld.c b/crypto/evp/c_alld.c index be91cdb037..aae7bf7482 100644 --- a/crypto/evp/c_alld.c +++ b/crypto/evp/c_alld.c @@ -75,7 +75,7 @@ void OpenSSL_add_all_digests(void) EVP_add_digest_alias(SN_md5,"ssl2-md5"); EVP_add_digest_alias(SN_md5,"ssl3-md5"); #endif -#ifndef OPENSSL_NO_SHA +#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA0) EVP_add_digest(EVP_sha()); #ifndef OPENSSL_NO_DSA EVP_add_digest(EVP_dss()); diff --git a/crypto/evp/m_sha.c b/crypto/evp/m_sha.c index 10697c7ed3..ada7406531 100644 --- a/crypto/evp/m_sha.c +++ b/crypto/evp/m_sha.c @@ -56,7 +56,7 @@ * [including the GNU Public Licence.] */ -#ifndef OPENSSL_NO_SHA +#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA0) #include #include "cryptlib.h" #include diff --git a/crypto/sha/shatest.c b/crypto/sha/shatest.c index 5d2b1d3b1a..ff702aa53e 100644 --- a/crypto/sha/shatest.c +++ b/crypto/sha/shatest.c @@ -62,10 +62,10 @@ #include "../e_os.h" -#ifdef OPENSSL_NO_SHA +#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA0) int main(int argc, char *argv[]) { - printf("No SHA support\n"); + printf("No SHA0 support\n"); return(0); } #else -- 2.25.1