The STACK macros take care of casting to and from the designated item type
[openssl.git] / crypto / sha / sha_one.c
index 3e2751ec8482681acdf7556dbbe1d734443cbe15..5426faae4afd7874081e6402198cacdd343a9d4d 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
-#include "sha.h"
+#include <openssl/sha.h>
 
-unsigned char *SHA(unsigned char *d, unsigned long n, unsigned char *md)
+#ifndef OPENSSL_NO_SHA0
+unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md)
        {
        SHA_CTX c;
        static unsigned char m[SHA_DIGEST_LENGTH];
@@ -72,3 +73,4 @@ unsigned char *SHA(unsigned char *d, unsigned long n, unsigned char *md)
        memset(&c,0,sizeof(c));
        return(md);
        }
+#endif