gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 62/150: sha256: build with OpenSSL < 0.9.8 too


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 62/150: sha256: build with OpenSSL < 0.9.8 too
Date: Fri, 30 Mar 2018 16:48:36 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 50c0033a6c6fcef73a7a5fcbb7c46e077e546ce2
Author: Douglas Mencken <address@hidden>
AuthorDate: Mon Feb 12 06:19:56 2018 -0500

    sha256: build with OpenSSL < 0.9.8 too
    
    support for SHA-2 was introduced in OpenSSL 0.9.8
    
    Closes #2305
---
 lib/sha256.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/sha256.c b/lib/sha256.c
index cd81c0254..776bd2846 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -27,8 +27,20 @@
 #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
+#endif
+
+#endif
+
+#if USE_OPENSSL_SHA256
+
 /* When OpenSSL is available we use the SHA256-function from OpenSSL */
 #include <openssl/sha.h>
 

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



reply via email to

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