diff options
author | Paul Howarth <paul@city-fan.org> | 2018-12-04 18:43:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-05 15:24:32 +0100 |
commit | 8ad9e5915a95258267f2af463559ded134e8e643 (patch) | |
tree | 2e7d8e1e4a5aadf678b536ca5fd3b6cecd2c077c | |
parent | 71a1442eb2a973164b0c3365be2e0297baa8e91d (diff) |
nss: Fix compatibility with nss versions 3.14 to 3.15
-rw-r--r-- | lib/vtls/nss.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 79437a284..08ee1aaaf 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -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 }; |