mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:33:33 +03:00
vtls: refuse setting any SSL version
... previously they were supported if a TLS library would (unexpectedly) still support them, but from this change they will be refused already in curl_easy_setopt(). SSLv2 and SSLv3 have been known to be insecure for many years now. Closes #6773
This commit is contained in:
parent
cf65d4237e
commit
eff614fb02
8 changed files with 26 additions and 148 deletions
|
|
@ -426,6 +426,8 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||
version_max = C_SSLVERSION_MAX_VALUE(arg);
|
||||
|
||||
if(version < CURL_SSLVERSION_DEFAULT ||
|
||||
version == CURL_SSLVERSION_SSLv2 ||
|
||||
version == CURL_SSLVERSION_SSLv3 ||
|
||||
version >= CURL_SSLVERSION_LAST ||
|
||||
version_max < CURL_SSLVERSION_MAX_NONE ||
|
||||
version_max >= CURL_SSLVERSION_MAX_LAST)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue