Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

release/2.0: Port "Add DangerousAcceptAnyServerCertificateValidator property to HttpClient" #19941

Merged
merged 3 commits into from
May 18, 2017

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented May 18, 2017

Port #19908 to the release/2.0.0 branch.

Fixes #19709

In situations where setting ServerCertificateValidationCallback would result in a PlatformNotSupportedException, if it was set to DangerousAcceptAnyServerCertificateValidator instead simply disable CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST.  This enables a common case of `delegate { return true; }` to work on libcurls with non-SSL backends, such as the default on macOS.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants