projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use of DEVRANDOM must be #ifdef'ed (the #ifdef was commented out
[oweals/openssl.git]
/
crypto
/
sha
/
sha1_one.c
diff --git
a/crypto/sha/sha1_one.c
b/crypto/sha/sha1_one.c
index 07af9bf4daa5401d4fca0185898fbe4c7d51c669..861752eaa7ea5cd44dac52a434da44bd9c80b155 100644
(file)
--- a/
crypto/sha/sha1_one.c
+++ b/
crypto/sha/sha1_one.c
@@
-58,9
+58,10
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include
"sha.h"
+#include
<openssl/sha.h>
-unsigned char *SHA1(unsigned char *d, unsigned long n, unsigned char *md)
+#ifndef NO_SHA1
+unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md)
{
SHA_CTX c;
static unsigned char m[SHA_DIGEST_LENGTH];
{
SHA_CTX c;
static unsigned char m[SHA_DIGEST_LENGTH];
@@
-72,3
+73,4
@@
unsigned char *SHA1(unsigned char *d, unsigned long n, unsigned char *md)
memset(&c,0,sizeof(c));
return(md);
}
memset(&c,0,sizeof(c));
return(md);
}
+#endif