gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 63/150: sha256: avoid redefine


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 63/150: sha256: avoid redefine
Date: Fri, 30 Mar 2018 16:48:37 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 3f6051f4ed2195a24adbc29036ee5ee0ef00b1e9
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Feb 12 14:18:30 2018 +0100

    sha256: avoid redefine
---
 lib/sha256.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/sha256.c b/lib/sha256.c
index 776bd2846..c2acb5265 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -27,23 +27,19 @@
 #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 */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]