You've already forked linux-packaging-mono
Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
parent
8bd104cef2
commit
8fc30896db
@ -126,6 +126,9 @@ namespace System.Security.Cryptography.X509Certificates
|
||||
|
||||
internal static X509Certificate2Impl Import (byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags, bool disableProvider = false)
|
||||
{
|
||||
if (rawData == null || rawData.Length == 0)
|
||||
return null;
|
||||
|
||||
#if MONO_FEATURE_BTLS
|
||||
if (!disableProvider) {
|
||||
var provider = MonoTlsProviderFactory.GetProvider ();
|
||||
@ -142,6 +145,9 @@ namespace System.Security.Cryptography.X509Certificates
|
||||
|
||||
internal static X509Certificate2Impl Import (X509Certificate cert, bool disableProvider = false)
|
||||
{
|
||||
if (cert.Impl == null)
|
||||
return null;
|
||||
|
||||
#if MONO_FEATURE_BTLS
|
||||
if (!disableProvider) {
|
||||
var provider = MonoTlsProviderFactory.GetProvider ();
|
||||
|
Reference in New Issue
Block a user