summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Gupta <higupt@microsoft.com>2020-08-31 19:35:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2021-01-05 10:05:46 +0100
commitf927f38f1e6cc5e4b9981ebc83135e86737b5432 (patch)
tree878b924e67045fb0c3f14b0abf7b0912b7796dd4
parentb150a63d5cee71a4f318ac613823588bd7b24256 (diff)
downloadcurl-f927f38f1e6cc5e4b9981ebc83135e86737b5432.tar.gz
wolfssl: add SECURE_RENEGOTIATION support
Closes #6411
-rw-r--r--lib/vtls/wolfssl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c
index 3ac1a8a77..affbba33a 100644
--- a/lib/vtls/wolfssl.c
+++ b/lib/vtls/wolfssl.c
@@ -505,6 +505,13 @@ wolfssl_connect_step1(struct connectdata *conn,
}
#endif /* OPENSSL_EXTRA */
+#ifdef HAVE_SECURE_RENEGOTIATION
+ if(wolfSSL_UseSecureRenegotiation(backend->handle) != SSL_SUCCESS) {
+ failf(data, "SSL: failed setting secure renegotiation");
+ return CURLE_SSL_CONNECT_ERROR;
+ }
+#endif /* HAVE_SECURE_RENEGOTIATION */
+
/* Check if there's a cached ID we can/should use here! */
if(SSL_SET_OPTION(primary.sessionid)) {
void *ssl_sessionid = NULL;