New Configure option no-<cipher> (rsa, idea, rc5, ...).
[openssl.git] / crypto / sha / sha_one.c
index 18ab7f61bc55d874294135cb3533eb6680a6be1b..6ef3f06a37948d8d4bbb0864150adc9b004d218f 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
-#include "sha.h"
+#include <openssl/sha.h>
 
-unsigned char *SHA(d, n, md)
-unsigned char *d;
-unsigned long n;
-unsigned char *md;
+#ifndef NO_SHA0
+unsigned char *SHA(unsigned char *d, unsigned long n, unsigned char *md)
        {
        SHA_CTX c;
        static unsigned char m[SHA_DIGEST_LENGTH];
@@ -75,3 +73,4 @@ unsigned char *md;
        memset(&c,0,sizeof(c));
        return(md);
        }
+#endif