]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssl: add SECURE_RENEGOTIATION support
authorHimanshu Gupta <higupt@microsoft.com>
Mon, 31 Aug 2020 19:35:35 +0000 (19:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Jan 2021 09:05:46 +0000 (10:05 +0100)
Closes #6411

lib/vtls/wolfssl.c

index 3ac1a8a77a32d1ae42b698dc1c65f7e0237037f3..affbba33a475aa1100caec570b74e27907e5ece1 100644 (file)
@@ -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;