diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha_one.c')
-rw-r--r-- | src/lib/libcrypto/sha/sha_one.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/sha/sha_one.c b/src/lib/libcrypto/sha/sha_one.c index 18ab7f61bc..2d955de162 100644 --- a/src/lib/libcrypto/sha/sha_one.c +++ b/src/lib/libcrypto/sha/sha_one.c | |||
@@ -58,12 +58,10 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <string.h> | 60 | #include <string.h> |
61 | #include "sha.h" | 61 | #include <openssl/sha.h> |
62 | 62 | ||
63 | unsigned char *SHA(d, n, md) | 63 | #ifndef NO_SHA0 |
64 | unsigned char *d; | 64 | unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md) |
65 | unsigned long n; | ||
66 | unsigned char *md; | ||
67 | { | 65 | { |
68 | SHA_CTX c; | 66 | SHA_CTX c; |
69 | static unsigned char m[SHA_DIGEST_LENGTH]; | 67 | static unsigned char m[SHA_DIGEST_LENGTH]; |
@@ -75,3 +73,4 @@ unsigned char *md; | |||
75 | memset(&c,0,sizeof(c)); | 73 | memset(&c,0,sizeof(c)); |
76 | return(md); | 74 | return(md); |
77 | } | 75 | } |
76 | #endif | ||