You've already forked linux-packaging-mono
Imported Upstream version 4.8.0.309
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
parent
ee1447783b
commit
94b2861243
@@ -103,13 +103,6 @@ namespace Mono.Security.Interface
|
||||
* Internal use only.
|
||||
*/
|
||||
ValidationResult ValidateCertificate (string targetHost, bool serverMode, X509Certificate leaf, X509Chain chain);
|
||||
|
||||
/*
|
||||
* On OS X and Mobile, the @chain will be initialized with the @certificates, but not actually built.
|
||||
*/
|
||||
bool InvokeSystemValidator (
|
||||
string targetHost, bool serverMode, X509CertificateCollection certificates,
|
||||
X509Chain chain, ref MonoSslPolicyErrors errors, ref int status11);
|
||||
}
|
||||
|
||||
public static class CertificateValidationHelper
|
||||
@@ -148,17 +141,23 @@ 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 (ICertificateValidator2)NoReflectionHelper.GetDefaultCertificateValidator (provider, settings);
|
||||
return GetInternalValidator (settings, provider);
|
||||
}
|
||||
|
||||
/*
|
||||
* Use this overloaded version in user code.
|
||||
*/
|
||||
public static ICertificateValidator GetValidator (MonoTlsSettings settings, MonoTlsProvider provider = null)
|
||||
public static ICertificateValidator GetValidator (MonoTlsSettings settings)
|
||||
{
|
||||
return GetDefaultValidator (settings, provider);
|
||||
return (ICertificateValidator)NoReflectionHelper.GetDefaultValidator (settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user