]> granicus.if.org Git - openssl/commitdiff
Allow for ./config no-sha0.
authorAndy Polyakov <appro@openssl.org>
Sun, 9 Jan 2005 17:58:18 +0000 (17:58 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 9 Jan 2005 17:58:18 +0000 (17:58 +0000)
PR: 993

crypto/evp/c_alld.c
crypto/evp/m_sha.c
crypto/sha/shatest.c

index be91cdb03731d1060dc33fc0c3031945052e8b44..aae7bf7482a34065f74e366616a102238c8766df 100644 (file)
@@ -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());
index 10697c7ed38261444f1a8e6eb91e1f76d0b347a2..ada74065316193f319ab30790615a38eab4a731a 100644 (file)
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
-#ifndef OPENSSL_NO_SHA
+#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA0)
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/evp.h>
index 5d2b1d3b1aedc2ec49eda3e252774f79f3ee7ac3..ff702aa53e4a1356ad9ae023cd3123a9e0b67697 100644 (file)
 
 #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