diff options
author | Martin Baulig <martin.baulig@xamarin.com> | 2016-04-08 16:41:13 +0300 |
---|---|---|
committer | Martin Baulig <martin.baulig@xamarin.com> | 2016-04-08 20:12:02 +0300 |
commit | 56e1874c7bebe54dd71d9645a732802f1578e346 (patch) | |
tree | 9e7ad66921a217bdbbb5f04358de0243be60d994 /mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs | |
parent | c88703ca745e87eaf80af80a664abaa240677cba (diff) |
[Mono.Security]: Cleanup 'CertificateValidationHelper'.
The overloaded GetValidator() which takes both 'MonoTlsSettings'
and 'MonoTlsProvider' is actually used by the test suite, so let's
keep it public.
(cherry picked from commit 0977d531d2579c9051a6a2e6d0cb47e4f720bea4)
Diffstat (limited to 'mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs')
-rw-r--r-- | mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs b/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs index 561e7888db7..fd392b409e5 100644 --- a/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs +++ b/mcs/class/Mono.Security/Mono.Security.Interface/CertificateValidationHelper.cs @@ -145,25 +145,20 @@ namespace Mono.Security.Interface get { return supportsTrustAnchors; } } - static ICertificateValidator2 GetDefaultValidator (MonoTlsProvider provider, MonoTlsSettings settings) - { - return (ICertificateValidator2)NoReflectionHelper.GetDefaultCertificateValidator (provider, settings); - } - /* * Internal API, intended to be used by MonoTlsProvider implementations. */ - internal static ICertificateValidator2 GetValidator (MonoTlsProvider provider, MonoTlsSettings settings) + internal static ICertificateValidator2 GetDefaultValidator (MonoTlsSettings settings, MonoTlsProvider provider) { - return GetDefaultValidator (provider, settings); + return (ICertificateValidator2)NoReflectionHelper.GetDefaultCertificateValidator (provider, settings); } /* * Use this overloaded version in user code. */ - public static ICertificateValidator GetValidator (MonoTlsSettings settings) + public static ICertificateValidator GetValidator (MonoTlsSettings settings, MonoTlsProvider provider = null) { - return GetDefaultValidator (null, settings); + return GetDefaultValidator (settings, provider); } } } |