mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:27:21 +03:00
getparameter: move --npn, --sslv2 and --sslv3 to generic handler
For deprecated options. Closes #17442
This commit is contained in:
parent
9b89fd6db7
commit
aa00cb08c9
1 changed files with 3 additions and 9 deletions
|
|
@ -1831,6 +1831,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
case C_RANDOM_FILE: /* --random-file */
|
||||
case C_EGD_FILE: /* --egd-file */
|
||||
case C_NTLM_WB: /* --ntlm-wb */
|
||||
case C_NPN: /* --npn */
|
||||
case C_SSLV2: /* --sslv2 */
|
||||
case C_SSLV3: /* --sslv3 */
|
||||
warnf(global, "--%s is deprecated and has no function anymore",
|
||||
a->lname);
|
||||
break;
|
||||
|
|
@ -1898,9 +1901,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
global->tracetype = TRACE_BIN;
|
||||
}
|
||||
break;
|
||||
case C_NPN: /* --npn */
|
||||
warnf(global, "--npn is no longer supported");
|
||||
break;
|
||||
case C_TRACE_ASCII: /* --trace-ascii */
|
||||
err = getstr(&global->trace_dump, nextarg, DENY_BLANK);
|
||||
if(!err) {
|
||||
|
|
@ -2388,12 +2388,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
case C_PROXY_TLS13_CIPHERS: /* --proxy-tls13-ciphers */
|
||||
err = getstr(&config->proxy_cipher13_list, nextarg, DENY_BLANK);
|
||||
break;
|
||||
case C_SSLV2: /* --sslv2 */
|
||||
warnf(global, "Ignores instruction to use SSLv2");
|
||||
break;
|
||||
case C_SSLV3: /* --sslv3 */
|
||||
warnf(global, "Ignores instruction to use SSLv3");
|
||||
break;
|
||||
case C_IPV4: /* --ipv4 */
|
||||
config->ip_version = CURL_IPRESOLVE_V4;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue