]> granicus.if.org Git - curl/commitdiff
nss: Fix compatibility with nss versions 3.14 to 3.15
authorPaul Howarth <paul@city-fan.org>
Tue, 4 Dec 2018 18:43:51 +0000 (18:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Dec 2018 14:24:32 +0000 (15:24 +0100)
lib/vtls/nss.c

index 79437a284f15b487dc57c575d2e9fe52540a7777..08ee1aaaf25a8d3b03850293c8688820cde3ad87 100644 (file)
@@ -1808,8 +1808,12 @@ static CURLcode nss_setup_connect(struct connectdata *conn, int sockindex)
     SSL_LIBRARY_VERSION_TLS_1_0,  /* min */
 #ifdef SSL_LIBRARY_VERSION_TLS_1_3
     SSL_LIBRARY_VERSION_TLS_1_3   /* max */
-#else
+#elif defined SSL_LIBRARY_VERSION_TLS_1_2
     SSL_LIBRARY_VERSION_TLS_1_2
+#elif defined SSL_LIBRARY_VERSION_TLS_1_1
+    SSL_LIBRARY_VERSION_TLS_1_1
+#else
+    SSL_LIBRARY_VERSION_TLS_1_0
 #endif
   };