diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2021-02-27 16:27:31 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-04-22 16:53:37 -0400 |
commit | 54e747501626b81149b1b44949119d365db82004 (patch) | |
tree | 6c89f73c8eb7bbb96877a83e27b3b3916d5534e7 /src/tool_setopt.h | |
parent | e4ba999646ed7a974813ecf8405651d300554eba (diff) | |
download | curl-54e747501626b81149b1b44949119d365db82004.tar.gz |
schannel: Disable auto credentials; add an option to enable it
- Disable auto credentials by default. This is a breaking change
for clients that are using it, wittingly or not.
- New libcurl ssl option value CURLSSLOPT_AUTO_CLIENT_CERT tells libcurl
to automatically locate and use a client certificate for
authentication, when requested by the server.
- New curl tool options --ssl-auto-client-cert and
--proxy-ssl-auto-client-cert map to CURLSSLOPT_AUTO_CLIENT_CERT.
This option is only supported for Schannel (the native Windows SSL
library). Prior to this change Schannel would, with no notification to
the client, attempt to locate a client certificate and send it to the
server, when requested by the server. Since the server can request any
certificate that supports client authentication in the OS certificate
store it could be a privacy violation and unexpected.
Fixes https://github.com/curl/curl/issues/2262
Reported-by: Jeroen Ooms
Assisted-by: Wes Hinsley
Assisted-by: Rich FitzJohn
Ref: https://curl.se/mail/lib-2021-02/0066.html
Reported-by: Morten Minde Neergaard
Closes https://github.com/curl/curl/pull/6673
Diffstat (limited to 'src/tool_setopt.h')
-rw-r--r-- | src/tool_setopt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_setopt.h b/src/tool_setopt.h index a54e34639..a2711fb00 100644 --- a/src/tool_setopt.h +++ b/src/tool_setopt.h @@ -76,6 +76,7 @@ extern const struct NameValueUnsigned setopt_nv_CURLHSTS[]; #define setopt_nv_CURLOPT_FTP_SSL_CCC setopt_nv_CURLFTPSSL_CCC #define setopt_nv_CURLOPT_USE_SSL setopt_nv_CURLUSESSL #define setopt_nv_CURLOPT_SSL_OPTIONS setopt_nv_CURLSSLOPT +#define setopt_nv_CURLOPT_PROXY_SSL_OPTIONS setopt_nv_CURLSSLOPT #define setopt_nv_CURLOPT_NETRC setopt_nv_CURL_NETRC #define setopt_nv_CURLOPT_PROTOCOLS setopt_nv_CURLPROTO #define setopt_nv_CURLOPT_REDIR_PROTOCOLS setopt_nv_CURLPROTO |