* Enable ClientAndServer_OneOrBothUseDefault_Ok test
Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.
Fixesdotnet/corefx#7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)
* Waiting for tasks w/ test cfg wrapper
* Skip test on Windows 7
On Windows 7 only Tls is supported OOB, so only few test cases can
actually pass. Others fail with:
```
System.Security.Authentication.AuthenticationException : A call to SSPI
failed, see inner exception.
---- System.ComponentModel.Win32Exception : The client and server cannot
communicate, because they do not possess a common algorithm
```
Commit migrated from https://github.com/dotnet/corefx/commit/9f858d067d7484f8d8b06a3f92e646f422a0c804
* Fix HttpClientHandler ServerCertificateCustomValidationCallback for UWP
This PR implements the ServerCertificateCustomValidationCallback for UWP. While implementing this, I discovered that the behavior of
the current .NET Core code is incorrect regarding how to propagate exceptions from the user provided callback. I opened up a new
issue dotnet/corefx#21904 and revised the test as well.
Fixesdotnet/corefx#21627
* Address more PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/e30fdc38e60f6fa2ed8e7e103d1f8c44655438cd
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.
Commit migrated from https://github.com/dotnet/corefx/commit/65bdb971e1d97c930c59939ed7ac3f7ab364bfb0