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
@@ -47,10 +47,19 @@ namespace Mono.Net.Security
|
||||
//
|
||||
internal static class NoReflectionHelper
|
||||
{
|
||||
internal static object GetDefaultCertificateValidator (object provider, object settings)
|
||||
internal static object GetInternalValidator (object provider, object settings)
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
return ChainValidationHelper.GetDefaultValidator ((MSI.MonoTlsProvider)provider, (MSI.MonoTlsSettings)settings);
|
||||
return ChainValidationHelper.GetInternalValidator ((MSI.MonoTlsProvider)provider, (MSI.MonoTlsSettings)settings);
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static object GetDefaultValidator (object settings)
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
return ChainValidationHelper.GetDefaultValidator ((MSI.MonoTlsSettings)settings);
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
@@ -65,29 +74,29 @@ namespace Mono.Net.Security
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static object GetDefaultProvider ()
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
return MonoTlsProviderFactory.GetDefaultProvider ();
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static bool HasProvider {
|
||||
internal static bool IsInitialized {
|
||||
get {
|
||||
#if SECURITY_DEP
|
||||
return MonoTlsProviderFactory.HasProvider;
|
||||
return MonoTlsProviderFactory.IsInitialized;
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
internal static void SetDefaultProvider (string name)
|
||||
internal static void Initialize ()
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
MonoTlsProviderFactory.SetDefaultProvider (name);
|
||||
MonoTlsProviderFactory.Initialize ();
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static void Initialize (string provider)
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
MonoTlsProviderFactory.Initialize (provider);
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
@@ -120,6 +129,15 @@ namespace Mono.Net.Security
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static bool IsProviderSupported (string name)
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
return MonoTlsProviderFactory.IsProviderSupported (name);
|
||||
#else
|
||||
throw new NotSupportedException ();
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static object GetProvider (string name)
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
|
||||
Reference in New Issue
Block a user