[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 253/411: openssl: acknowledge SRP disabling in configure properl
From: |
gnunet |
Subject: |
[gnurl] 253/411: openssl: acknowledge SRP disabling in configure properly |
Date: |
Wed, 13 Jan 2021 01:21:08 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit a3d5b199f96a108f38bd1f6adaf3a7585f721d02
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Oct 15 22:56:13 2020 +0200
openssl: acknowledge SRP disabling in configure properly
Follow-up to 68a513247409
Use a new separate define that is the combination of both
HAVE_OPENSSL_SRP and USE_TLS_SRP: USE_OPENSSL_SRP
Bug: https://curl.haxx.se/mail/lib-2020-10/0037.html
Closes #6094
---
lib/vtls/openssl.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 76d0bc413..ad12ffa55 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -225,6 +225,14 @@
"ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH"
#endif
+#ifdef HAVE_OPENSSL_SRP
+/* the function exists */
+#ifdef USE_TLS_SRP
+/* the functionality is not disabled */
+#define USE_OPENSSL_SRP
+#endif
+#endif
+
struct ssl_backend_data {
/* these ones requires specific SSL-types */
SSL_CTX* ctx;
@@ -2471,7 +2479,7 @@ static CURLcode ossl_connect_step1(struct connectdata
*conn, int sockindex)
#endif
#endif
const long int ssl_version = SSL_CONN_CONFIG(version);
-#ifdef HAVE_OPENSSL_SRP
+#ifdef USE_OPENSSL_SRP
const enum CURL_TLSAUTH ssl_authtype = SSL_SET_OPTION(authtype);
#endif
char * const ssl_cert = SSL_SET_OPTION(primary.clientcert);
@@ -2516,7 +2524,7 @@ static CURLcode ossl_connect_step1(struct connectdata
*conn, int sockindex)
failf(data, OSSL_PACKAGE " was built without SSLv2 support");
return CURLE_NOT_BUILT_IN;
#else
-#ifdef HAVE_OPENSSL_SRP
+#ifdef USE_OPENSSL_SRP
if(ssl_authtype == CURL_TLSAUTH_SRP)
return CURLE_SSL_CONNECT_ERROR;
#endif
@@ -2529,7 +2537,7 @@ static CURLcode ossl_connect_step1(struct connectdata
*conn, int sockindex)
failf(data, OSSL_PACKAGE " was built without SSLv3 support");
return CURLE_NOT_BUILT_IN;
#else
-#ifdef HAVE_OPENSSL_SRP
+#ifdef USE_OPENSSL_SRP
if(ssl_authtype == CURL_TLSAUTH_SRP)
return CURLE_SSL_CONNECT_ERROR;
#endif
@@ -2797,7 +2805,7 @@ static CURLcode ossl_connect_step1(struct connectdata
*conn, int sockindex)
}
#endif
-#ifdef HAVE_OPENSSL_SRP
+#ifdef USE_OPENSSL_SRP
if(ssl_authtype == CURL_TLSAUTH_SRP) {
char * const ssl_username = SSL_SET_OPTION(username);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 248/411: urlapi: URL encode a '+' in the query part, (continued)
- [gnurl] 248/411: urlapi: URL encode a '+' in the query part, gnunet, 2021/01/12
- [gnurl] 257/411: CURLOPT_NOBODY.3: fix typo, gnunet, 2021/01/12
- [gnurl] 256/411: CI/azure: improve on flakiness by avoiding libtool wrappers, gnunet, 2021/01/12
- [gnurl] 221/411: runtests: add %repeat[]% for test files, gnunet, 2021/01/12
- [gnurl] 294/411: header.d: fix syntax mistake, gnunet, 2021/01/12
- [gnurl] 333/411: docs: document the 8MB input string limit, gnunet, 2021/01/12
- [gnurl] 289/411: header.d: mention the "Transfer-Encoding: chunked" handling, gnunet, 2021/01/12
- [gnurl] 297/411: tool_debug_cb: do not assume zero-terminated data, gnunet, 2021/01/12
- [gnurl] 311/411: curl.se: new home, gnunet, 2021/01/12
- [gnurl] 273/411: libssh2: fix build with disabled proxy support, gnunet, 2021/01/12
- [gnurl] 253/411: openssl: acknowledge SRP disabling in configure properly,
gnunet <=
- [gnurl] 271/411: CI/appveyor: remove (unused) runtests.pl -b option, gnunet, 2021/01/12
- [gnurl] 268/411: cmake: set the unicode feature in curl-config on Windows, gnunet, 2021/01/12
- [gnurl] 270/411: tool_help: make "output" description less confusing, gnunet, 2021/01/12
- [gnurl] 275/411: range.d: clarify that curl will not parse multipart responses, gnunet, 2021/01/12
- [gnurl] 347/411: KNOWN_BUGS: cmake uses -lpthread instead of Threads::Threads, gnunet, 2021/01/12
- [gnurl] 353/411: quiche: remove 'static' from local buffer, gnunet, 2021/01/12
- [gnurl] 193/411: sendf: move Curl_sendf to dict.c and make it static, gnunet, 2021/01/12
- [gnurl] 205/411: include/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 258/411: os400: Sync libcurl API options, gnunet, 2021/01/12
- [gnurl] 346/411: KNOWN_BUGS: cmake build in Linux links libcurl to libdl, gnunet, 2021/01/12