]> granicus.if.org Git - curl/commitdiff
mbedtls: Support server renegotiation request
authorRon Eldor <Ron.Eldor@arm.com>
Tue, 9 May 2017 13:57:19 +0000 (16:57 +0300)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 12 May 2017 05:39:10 +0000 (01:39 -0400)
Tested with servers: IIS 7.5; OpenSSL 1.0.2.

Closes https://github.com/curl/curl/pull/1475

lib/vtls/mbedtls.c

index 3ffa95752c88cc76e55d7b71838ff843f06287ad..30f614e80413443ba6bf14b2af5d28b7d26c1b35 100644 (file)
@@ -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);