OPENSSL_NO_xxx cleanup: SHA
[openssl.git] / crypto / ecdh / ecdhtest.c
index a791d63ca786801d5c735bc58c9d3f92afccf71c..04b0cf30d09bd3c9cc26266ae61965ca8f9af9c0 100644 (file)
@@ -103,15 +103,10 @@ static const int KDF1_SHA1_len = 20;
 static void *KDF1_SHA1(const void *in, size_t inlen, void *out,
                        size_t *outlen)
 {
-# ifndef OPENSSL_NO_SHA
     if (*outlen < SHA_DIGEST_LENGTH)
         return NULL;
-    else
-        *outlen = SHA_DIGEST_LENGTH;
+    *outlen = SHA_DIGEST_LENGTH;
     return SHA1(in, inlen, out);
-# else
-    return NULL;
-# endif
 }
 
 static int test_ecdh_curve(int nid, const char *text, BN_CTX *ctx, BIO *out)