From 0ed6c0f5bf88090b71d2c132ae4e49e3b365f803 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Sun, 3 Jan 2016 00:13:31 +0000 Subject: [PATCH] [corlib] Fixed the mobile build in System.Security.Cryptography.X509Certificates. --- .../X509Helper.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs b/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs index dc73f5ad79d..98cc608119c 100644 --- a/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs +++ b/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs @@ -70,7 +70,7 @@ namespace System.Security.Cryptography.X509Certificates var x509 = new MX.X509Certificate (data); return new X509CertificateImplMono (x509); } -#elif !MONOTOUCH && !XAMMAC +#else public static X509CertificateImpl InitFromHandle (IntPtr handle) { throw new NotSupportedException (); @@ -161,6 +161,11 @@ namespace System.Security.Cryptography.X509Certificates return new X509CertificateImplMono (x509); } +#else + public static X509CertificateImpl Import (byte[] rawData, string password, X509KeyStorageFlags keyStorageFlags) + { + throw new NotSupportedException (); + } #endif public static byte[] Export (X509CertificateImpl impl, X509ContentType contentType, byte[] password) -- 2.25.1