getparam: make --ftp-ssl work again

Follow-up to 9e4e527 which accidentally broke it

Reported-by: Jordan Brown
Fixes #13006
Closes #13007
This commit is contained in:
Daniel Stenberg 2024-02-28 08:02:49 +01:00
parent b8ad95bf39
commit 65405459d5
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1593,6 +1593,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
url->flags |= GETOUT_URL;
}
break;
case C_FTP_SSL: /* --ftp-ssl */
case C_SSL: /* --ssl */
if(toggle && !feature_ssl)
err = PARAM_LIBCURL_DOESNT_SUPPORT;
@ -1600,7 +1601,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
config->ftp_ssl = toggle;
if(config->ftp_ssl)
warnf(global,
"--ssl is an insecure option, consider --ssl-reqd instead");
"--%s is an insecure option, consider --ssl-reqd instead",
a->lname);
}
break;
case C_FTP_PASV: /* --ftp-pasv */