]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
getparameter: move --npn, --sslv2 and --sslv3 to generic handler
authorDaniel Stenberg <daniel@haxx.se>
Sat, 24 May 2025 13:40:32 +0000 (15:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 24 May 2025 20:49:34 +0000 (22:49 +0200)
For deprecated options.

Closes #17442

src/tool_getparam.c

index fd246bfd7a2ad30e7cd556d6a4e10d74f37b75c7..7354c059be6be08431b95a6ec9e82a292cbc5908 100644 (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;