diff options
author | Martin Baulig <mabaul@microsoft.com> | 2018-05-18 19:35:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 19:35:24 +0300 |
commit | 0429856f02d380bab39ca3de596581efef0f4825 (patch) | |
tree | bfbda0d75af45812ae585bc078e977e94148c4c3 /mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs | |
parent | 890bfea3192619cd22610036bda8272b006384ee (diff) |
[System]: Cleanup `SslStream` callbacks and internal validation code. (#8753)
* `SslStream`: Reject attempts of setting conflicting callbacks using both the
Mono-specific `MonoTlsSettings` and the new `SslClientAuthenticationOptions` /
`SslServerAuthenticationOptions`.
This makes it consistent with CoreFx behavior where those callbacks may only be
specified in one of the possible places.
* `ChainValidationHelper` - this internal class has received a major overhaul and
lots of old and unused code removed.
All callbacks are not invoked with the correct `sender` parameter to make it
match the .NET / CoreFx behavior.
* `Mono.Security.Interface.CertificateValidationHelper`: remove unused internal code.
Diffstat (limited to 'mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs')
-rw-r--r-- | mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs b/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs index 98805605c08..957c657f23c 100644 --- a/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs +++ b/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs @@ -139,20 +139,6 @@ namespace Mono.Security.Interface } /* - * Internal API, intended to be used by MonoTlsProvider implementations. - */ - internal static ICertificateValidator2 GetInternalValidator (MonoTlsSettings settings, MonoTlsProvider provider) - { - return (ICertificateValidator2)NoReflectionHelper.GetInternalValidator (provider, settings); - } - - [Obsolete ("Use GetInternalValidator")] - internal static ICertificateValidator2 GetDefaultValidator (MonoTlsSettings settings, MonoTlsProvider provider) - { - return GetInternalValidator (settings, provider); - } - - /* * Use this overloaded version in user code. */ public static ICertificateValidator GetValidator (MonoTlsSettings settings) |