From 0fa0c9fb7d6f4ad7a423044f28b55eaaedc63f28 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 27 Jun 2006 05:07:04 +0000 Subject: resolve conflicts --- lib/libcrypto/sha/sha1_one.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libcrypto/sha/sha1_one.c') diff --git a/lib/libcrypto/sha/sha1_one.c b/lib/libcrypto/sha/sha1_one.c index 20e660c71df..f4694b701b2 100644 --- a/lib/libcrypto/sha/sha1_one.c +++ b/lib/libcrypto/sha/sha1_one.c @@ -61,14 +61,15 @@ #include #include -#ifndef OPENSSL_NO_SHA1 +#if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_FIPS) unsigned char *SHA1(const unsigned char *d, unsigned long n, unsigned char *md) { SHA_CTX c; static unsigned char m[SHA_DIGEST_LENGTH]; if (md == NULL) md=m; - SHA1_Init(&c); + if (!SHA1_Init(&c)) + return NULL; SHA1_Update(&c,d,n); SHA1_Final(md,&c); OPENSSL_cleanse(&c,sizeof(c)); -- cgit v1.2.3