diff options
author | Himanshu Gupta <higupt@microsoft.com> | 2020-08-31 19:35:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-05 10:05:46 +0100 |
commit | f927f38f1e6cc5e4b9981ebc83135e86737b5432 (patch) | |
tree | 878b924e67045fb0c3f14b0abf7b0912b7796dd4 | |
parent | b150a63d5cee71a4f318ac613823588bd7b24256 (diff) | |
download | curl-f927f38f1e6cc5e4b9981ebc83135e86737b5432.tar.gz |
wolfssl: add SECURE_RENEGOTIATION support
Closes #6411
-rw-r--r-- | lib/vtls/wolfssl.c | 7 |
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; |