Revert "[corlib] Fixed the mobile build in System.Security.Cryptography.X509Certifica...
authorMartin Baulig <martin.baulig@xamarin.com>
Tue, 5 Jan 2016 20:37:43 +0000 (15:37 -0500)
committerMartin Baulig <martin.baulig@xamarin.com>
Tue, 5 Jan 2016 20:38:29 +0000 (15:38 -0500)
This reverts commit 0ed6c0f5bf88090b71d2c132ae4e49e3b365f803.

mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs

index 98cc608119ca00b6a07699a49e627a5809ca374f..dc73f5ad79d191f0497cfa62e20f0d15cf980e9d 100644 (file)
@@ -70,7 +70,7 @@ namespace System.Security.Cryptography.X509Certificates
                        var x509 = new MX.X509Certificate (data);
                        return new X509CertificateImplMono (x509);
                }
-#else
+#elif !MONOTOUCH && !XAMMAC
                public static X509CertificateImpl InitFromHandle (IntPtr handle)
                {
                        throw new NotSupportedException ();
@@ -161,11 +161,6 @@ 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)