New Configure option no-<cipher> (rsa, idea, rc5, ...).
[openssl.git] / crypto / sha / sha_one.c
index 87da617bec0d0ad8756be71ffbd43cebe871e870..6ef3f06a37948d8d4bbb0864150adc9b004d218f 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/sha/sha_one.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
  */
 
 #include <stdio.h>
-#include "cryptlib.h"
-#include "sha.h"
+#include <string.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