diff options
author | Tomas Weinfurt <tweinfurt@yahoo.com> | 2020-08-08 20:36:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 20:36:52 +0300 |
commit | 00d4741b496336b399f5e5920113e26143b55f38 (patch) | |
tree | 766bf95a9e52564edbfdf84258158d200e6a7526 /src/libraries/System.Net.Security/tests/UnitTests | |
parent | e1494e8e4c631f51754b613048e9e680ec0ce16b (diff) |
include more details in exception if remote certificate validation fails (#40110)
* include more details in exception if remote certificate validation fails
* fix unit test linking
* feedback from review
* update exception message
Diffstat (limited to 'src/libraries/System.Net.Security/tests/UnitTests')
-rw-r--r-- | src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs b/src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs index 66702b6c468..7139118b910 100644 --- a/src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs +++ b/src/libraries/System.Net.Security/tests/UnitTests/Fakes/FakeSslStream.Implementation.cs @@ -17,7 +17,7 @@ namespace System.Net.Security private FakeOptions? _sslAuthenticationOptions; - private void ValidateCreateContext(SslClientAuthenticationOptions sslClientAuthenticationOptions, RemoteCertValidationCallback remoteCallback, LocalCertSelectionCallback? localCallback) + private void ValidateCreateContext(SslClientAuthenticationOptions sslClientAuthenticationOptions, RemoteCertificateValidationCallback? remoteCallback, LocalCertSelectionCallback? localCallback) { // Without setting (or using) these members you will get a build exception in the unit test project. // The code that normally uses these in the main solution is in the implementation of SslStream. @@ -89,6 +89,7 @@ namespace System.Net.Security internal SslConnectionInfo ConnectionInfo => default; internal ChannelBinding GetChannelBinding(ChannelBindingKind kind) => default; internal X509Certificate LocalServerCertificate => default; + internal X509Certificate RemoteCertificate => default; internal bool IsRemoteCertificateAvailable => default; internal SslApplicationProtocol NegotiatedApplicationProtocol => default; internal X509Certificate LocalClientCertificate => default; |