gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 72/222: openssl: fix compiler warning with LibreSSL


From: gnunet
Subject: [gnurl] 72/222: openssl: fix compiler warning with LibreSSL
Date: Thu, 07 Nov 2019 00:09:28 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 367e4b3c4d569fbb172c74b755a80a689be5fb14
Author: Marcel Raad <address@hidden>
AuthorDate: Sun Sep 22 17:45:27 2019 +0200

    openssl: fix compiler warning with LibreSSL
    
    It was already fixed for BoringSSL in commit a0f8fccb1e0.
    LibreSSL has had the second argument to SSL_CTX_set_min_proto_version
    as uint16_t ever since the function was added in [0].
    
    [0] 
https://github.com/libressl-portable/openbsd/commit/56f107201baefb5533486d665a58d8f57fd3aeda
    
    Closes https://github.com/curl/curl/pull/4397
---
 lib/vtls/openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 0614667a9..5eeffd2d9 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2165,7 +2165,7 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata 
*conn)
   long curl_ssl_version_max;
 
   /* convert cURL min SSL version option to OpenSSL constant */
-#ifdef OPENSSL_IS_BORINGSSL
+#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
   uint16_t ossl_ssl_version_min = 0;
   uint16_t ossl_ssl_version_max = 0;
 #else

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



reply via email to

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