]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: raise the max_version to 1.3 if asked for
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 Nov 2016 10:16:25 +0000 (11:16 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Nov 2016 10:16:25 +0000 (11:16 +0100)
Now I've managed to negotiate TLS 1.3 with https://enabled.tls13.com/ when
using boringssl.

lib/vtls/openssl.c

index 66fa731dd9735ba3dc62cb7c20e82f5116b8a35b..74e5915c3ff09680508b875306ef5601804440e0 100644 (file)
@@ -1925,6 +1925,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
 
   case CURL_SSLVERSION_TLSv1_3:
 #ifdef TLS1_3_VERSION
+    SSL_CTX_set_max_proto_version(connssl->ctx, TLS1_3_VERSION);
     ctx_options |= SSL_OP_NO_SSLv2;
     ctx_options |= SSL_OP_NO_SSLv3;
     ctx_options |= SSL_OP_NO_TLSv1;