diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha1_one.c')
| -rw-r--r-- | src/lib/libcrypto/sha/sha1_one.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/sha/sha1_one.c b/src/lib/libcrypto/sha/sha1_one.c index e6a24888ed..20e660c71d 100644 --- a/src/lib/libcrypto/sha/sha1_one.c +++ b/src/lib/libcrypto/sha/sha1_one.c | |||
| @@ -59,6 +59,7 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include <openssl/sha.h> | 61 | #include <openssl/sha.h> |
| 62 | #include <openssl/crypto.h> | ||
| 62 | 63 | ||
| 63 | #ifndef OPENSSL_NO_SHA1 | 64 | #ifndef OPENSSL_NO_SHA1 |
| 64 | unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md) | 65 | unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md) |
| @@ -70,7 +71,7 @@ unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md) | |||
| 70 | SHA1_Init(&c); | 71 | SHA1_Init(&c); |
| 71 | SHA1_Update(&c,d,n); | 72 | SHA1_Update(&c,d,n); |
| 72 | SHA1_Final(md,&c); | 73 | SHA1_Final(md,&c); |
| 73 | memset(&c,0,sizeof(c)); | 74 | OPENSSL_cleanse(&c,sizeof(c)); |
| 74 | return(md); | 75 | return(md); |
| 75 | } | 76 | } |
| 76 | #endif | 77 | #endif |
