]> granicus.if.org Git - curl/commitdiff
sha256: avoid redefine
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Feb 2018 13:18:30 +0000 (14:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Feb 2018 13:18:30 +0000 (14:18 +0100)
lib/sha256.c

index 776bd2846dcdae2489b3562334d3a418eb14cbd6..c2acb52658888828d8741d592cd2abc21f9df835 100644 (file)
 #include "warnless.h"
 #include "curl_sha256.h"
 
-#define USE_OPENSSL_SHA256      0
-
 #if defined(USE_OPENSSL)
 
 #include <openssl/opensslv.h>
 
 #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
-#define USE_OPENSSL_SHA256      1
+#define USE_OPENSSL_SHA256
 #endif
 
 #endif
 
-#if USE_OPENSSL_SHA256
-
+#ifdef USE_OPENSSL_SHA256
 /* When OpenSSL is available we use the SHA256-function from OpenSSL */
 #include <openssl/sha.h>
-
 #else
 
 /* When no other crypto library is available we use this code segment */