add two SslStream tests for custom validation (#38182)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 1 Jul 2020 23:50:34 +0000 (16:50 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2020 23:50:34 +0000 (16:50 -0700)
commitfad3fc91a09787351f13e96eb0233b186eb23148
tree70ab0b05a3d3388821c4a612afb5a45153ad18bd
parent9f3e08e00c0fd46fcba971d2647a5f8af3e847be
add two SslStream tests for custom validation (#38182)

* add two SslStream tests for custom validation

* use BuildPrivatePki

* feedback from review

* disable on windows
src/libraries/Common/tests/System/Security/Cryptography/X509Certificates/CertificateAuthority.cs [moved from src/libraries/System.Security.Cryptography.X509Certificates/tests/RevocationTests/CertificateAuthority.cs with 78% similarity]
src/libraries/Common/tests/System/Security/Cryptography/X509Certificates/RevocationResponder.cs [moved from src/libraries/System.Security.Cryptography.X509Certificates/tests/RevocationTests/RevocationResponder.cs with 98% similarity]
src/libraries/System.Net.Security/src/System/Net/Security/SecureChannel.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj
src/libraries/System.Net.Security/tests/FunctionalTests/TestHelper.cs
src/libraries/System.Security.Cryptography.X509Certificates/tests/RevocationTests/AiaTests.cs
src/libraries/System.Security.Cryptography.X509Certificates/tests/RevocationTests/DynamicRevocationTests.cs
src/libraries/System.Security.Cryptography.X509Certificates/tests/System.Security.Cryptography.X509Certificates.Tests.csproj