1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00
curl/lib/vtls
Jay Satiro f43b7b6cb6 vtls: Fail on unrecognized param for CURLOPT_SSLVERSION
- Fix GnuTLS code for CURL_SSLVERSION_TLSv1_2 that broke when the
TLS 1.3 support was added in 6ad3add.

- Homogenize across code for all backends the error message when TLS 1.3
is not available to "<backend>: TLS 1.3 is not yet supported".

- Return an error when a user-specified ssl version is unrecognized.

---

Prior to this change our code for some of the backends used the
'default' label in the switch statement (ie ver unrecognized) for
ssl.version and treated it the same as CURL_SSLVERSION_DEFAULT.

Bug: https://curl.haxx.se/mail/lib-2016-11/0048.html
Reported-by: Kamil Dudka
2016-11-09 22:08:49 -05:00
..
axtls.c select: switch to macros in uppercase 2016-10-18 11:05:45 +02:00
axtls.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
cyassl.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
cyassl.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
darwinssl.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
darwinssl.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
gskit.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
gskit.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
gtls.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
gtls.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
mbedtls.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
mbedtls.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
nss.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
nssg.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
openssl.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
openssl.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
polarssl_threadlock.c Curl_polarsslthreadlock_thread_setup: clear array at init 2016-10-18 13:05:43 +02:00
polarssl_threadlock.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
polarssl.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
polarssl.h tls: make setting pinnedkey option fail if not supported 2016-05-01 17:05:38 +02:00
schannel.c vtls: Fail on unrecognized param for CURLOPT_SSLVERSION 2016-11-09 22:08:49 -05:00
schannel.h schannel: add CURLOPT_CERTINFO support 2016-06-01 08:50:01 +02:00
vtls.c strcasecompare: all case insensitive string compares ignore locale now 2016-10-31 08:46:35 +01:00
vtls.h internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00