1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-13 15:08:02 -05:00
curl/lib/vtls
Jay Satiro 54e7475016 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
2021-04-22 16:53:37 -04:00
..
bearssl.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
bearssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gskit.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
gskit.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gtls.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
gtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
keylog.c curl.se: new home 2020-11-04 23:59:47 +01:00
keylog.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.c curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
mbedtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
mesalink.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
mesalink.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
nss.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
nssg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
openssl.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
openssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
rustls.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
rustls.h copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
schannel_verify.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
schannel.c schannel: Disable auto credentials; add an option to enable it 2021-04-22 16:53:37 -04:00
schannel.h vtls: reduce conn->data use 2021-01-19 09:14:40 +01:00
sectransp.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
sectransp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
vtls.c vtls: fix addsessionid for non-proxy builds 2021-03-29 14:20:13 +02:00
vtls.h vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
wolfssl.c vtls: deduplicate some DISABLE_PROXY ifdefs 2021-04-22 22:50:56 +02:00
wolfssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00