adds TLSv1.3 config

Tue, 05 Sep 2017 12:11:09 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 05 Sep 2017 12:11:09 +0200
changeset 295
8ac7b8d56115
parent 294
dd5c0ebdf54f
child 296
bb49953b1cf8

adds TLSv1.3 config

dav/config.c file | annotate | diff | comparison | revisions
docs/schema/config.xsd file | annotate | diff | comparison | revisions
--- a/dav/config.c	Tue Sep 05 12:00:49 2017 +0200
+++ b/dav/config.c	Tue Sep 05 12:11:09 2017 +0200
@@ -253,6 +253,11 @@
             repo->ssl_version = CURL_SSLVERSION_TLSv1_2;
         }
 #endif
+#if LIBCURL_VERSION_MINOR >= 52
+        else if(xstrEQ(value, "TLSv1.3")) {
+            repo->ssl_version = CURL_SSLVERSION_TLSv1_3;
+        }
+#endif
 #endif
         else {
             print_warning(lineno, "unknown ssl version: %s\n", value);
--- a/docs/schema/config.xsd	Tue Sep 05 12:00:49 2017 +0200
+++ b/docs/schema/config.xsd	Tue Sep 05 12:11:09 2017 +0200
@@ -62,6 +62,7 @@
             <xs:enumeration value="TLSv1.0" />
             <xs:enumeration value="TLSv1.1" />
             <xs:enumeration value="TLSv1.2" />
+            <xs:enumeration value="TLSv1.3" />
             <xs:enumeration value="SSLv2" />
             <xs:enumeration value="SSLv3" />
         </xs:restriction>

mercurial