aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Eldor <Ron.Eldor@arm.com>2017-05-09 16:57:19 +0300
committerJay Satiro <raysatiro@yahoo.com>2017-05-12 01:39:10 -0400
commitbc3866e3eb3f4da60bb0d6fbe8e4e38ae8ce943f (patch)
tree50dbed64f29c028cb28fc135fe1f28c2d01634ab
parent77b90997dd228b071603c9ade96a16610a6df222 (diff)
mbedtls: Support server renegotiation request
Tested with servers: IIS 7.5; OpenSSL 1.0.2. Closes https://github.com/curl/curl/pull/1475
-rw-r--r--lib/vtls/mbedtls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c
index 3ffa95752..30f614e80 100644
--- a/lib/vtls/mbedtls.c
+++ b/lib/vtls/mbedtls.c
@@ -424,6 +424,11 @@ mbed_connect_step1(struct connectdata *conn,
mbedtls_ssl_conf_ciphersuites(&connssl->config,
mbedtls_ssl_list_ciphersuites());
+#if defined(MBEDTLS_SSL_RENEGOTIATION)
+ mbedtls_ssl_conf_renegotiation(&connssl->config,
+ MBEDTLS_SSL_RENEGOTIATION_ENABLED);
+#endif
+
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
mbedtls_ssl_conf_session_tickets(&connssl->config,
MBEDTLS_SSL_SESSION_TICKETS_DISABLED);