mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03:00
setopt: use the handler table for protocol name to number conversions
This also returns error CURLE_UNSUPPORTED_PROTOCOL rather than CURLE_BAD_FUNCTION_ARGUMENT when a listed protocol name is not found. A new schemelen parameter is added to Curl_builtin_scheme() to support this extended use. Note that disabled protocols are not recognized anymore. Tests adapted accordingly. Closes #9472
This commit is contained in:
parent
1bbffa0833
commit
9d51329047
8 changed files with 90 additions and 98 deletions
|
|
@ -31,6 +31,11 @@ http
|
|||
<name>
|
||||
--libcurl for GET with various options
|
||||
</name>
|
||||
<features>
|
||||
http
|
||||
ftp
|
||||
file
|
||||
</features>
|
||||
<setenv>
|
||||
SSL_CERT_FILE=
|
||||
</setenv>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue