getparameter: move --npn, --sslv2 and --sslv3 to generic handler

For deprecated options.

Closes #17442
This commit is contained in:
Daniel Stenberg 2025-05-24 15:40:32 +02:00
parent 9b89fd6db7
commit aa00cb08c9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;