[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
- [GNUnet-SVN] [gnurl] 33/150: Curl_range: add check to ensure "from <= to", (continued)
- [GNUnet-SVN] [gnurl] 33/150: Curl_range: add check to ensure "from <= to", gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 36/150: progress-bar.d: update to match implementation, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 41/150: parsedate: s/#if/#ifdef, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 53/150: curl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 46/150: formdata: use the mime-content type function, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 32/150: Curl_range: commonize FTP and FILE range handling, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 92/150: curl --version: show PSL if the run-time lib has it enabled, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 11/150: parsedate: fix date parsing for systems with 32 bit long, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 102/150: form.d: rephrased somewhat, added two example command lines, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 60/150: http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 62/150: sha256: build with OpenSSL < 0.9.8 too,
gnunet <=
- [GNUnet-SVN] [gnurl] 72/150: curl_gssapi: make sure this file too uses our *printf(), gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 61/150: README: language fix, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 119/150: CURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 80/150: Revert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy", gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 98/150: RELEASE-NOTES: synced with 2427d94c6, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 116/150: curl_ctype: fix macro redefinition warnings, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 104/150: winbuild: Use CALL to run batch scripts, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 130/150: hostip: fix compiler warning: 'variable set but not used', gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 144/150: checksrc.pl: add -i and -m options, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 143/150: curl-openssl.m4: fix spelling [ci skip], gnunet, 2018/03/30