Generalise OCSP I/O functions to support dowloading of other ASN1
[oweals/openssl.git] / crypto / sha / sha1dgst.c
index 141daf08463cf72bdd9fce0a1889099bc0036ab9..a98690225fdc1081d3a369b34c8ffadefa83cc96 100644 (file)
  * [including the GNU Public Licence.]
  */
 
-#if !defined(NO_SHA1) && !defined(NO_SHA)
+#include <openssl/crypto.h>
+#include <openssl/opensslconf.h>
+#if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA)
 
 #undef  SHA_0
 #define SHA_1
 
 #include <openssl/opensslv.h>
 
-char *SHA1_version="SHA1" OPENSSL_VERSION_PTEXT;
+const char SHA1_version[]="SHA1" OPENSSL_VERSION_PTEXT;
+
+/* The implementation is in ../md32_common.h */
 
 #include "sha_locl.h"