You've already forked linux-packaging-mono
Imported Upstream version 4.8.0.425
Former-commit-id: 56934f10a9ad11e3eb75c21da859e02f54766140
This commit is contained in:
parent
693afccc61
commit
2927bc3cc3
@ -153,16 +153,23 @@ namespace Mono.Net.Security
|
||||
}
|
||||
}
|
||||
|
||||
const string LegacyProviderTypeName = "Mono.Net.Security.LegacyTlsProvider";
|
||||
const string BtlsProviderTypeName = "Mono.Btls.MonoBtlsProvider";
|
||||
|
||||
static void InitializeProviderRegistration ()
|
||||
{
|
||||
lock (locker) {
|
||||
if (providerRegistration != null)
|
||||
return;
|
||||
providerRegistration = new Dictionary<string,string> ();
|
||||
providerRegistration.Add ("legacy", "Mono.Net.Security.LegacyTlsProvider");
|
||||
providerRegistration.Add ("default", "Mono.Net.Security.LegacyTlsProvider");
|
||||
if (IsBtlsSupported ())
|
||||
providerRegistration.Add ("btls", "Mono.Btls.MonoBtlsProvider");
|
||||
providerRegistration.Add ("legacy", LegacyProviderTypeName);
|
||||
|
||||
bool btls_supported = IsBtlsSupported ();
|
||||
if (btls_supported)
|
||||
providerRegistration.Add ("btls", BtlsProviderTypeName);
|
||||
|
||||
providerRegistration.Add ("default", btls_supported && !Platform.IsMacOS ? BtlsProviderTypeName : LegacyProviderTypeName);
|
||||
|
||||
X509Helper2.Initialize ();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user