X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.Cryptography.X509Certificates%2FX509Helper.cs;h=4272f8d2e0bd6f09ad6eaabebd506c883bcab2c5;hb=7e24a650a83ea4d05906d8f8d8badc37925cd86b;hp=05575d9d58c0f5632081f661ce5b7bb70f96bee6;hpb=a2083326f5dcc8700f8f753acda9866c1dab5d83;p=mono.git diff --git a/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs b/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs index 05575d9d58c..4272f8d2e0b 100644 --- a/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs +++ b/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Helper.cs @@ -65,10 +65,8 @@ namespace System.Security.Cryptography.X509Certificates public static X509CertificateImpl InitFromHandle (IntPtr handle) { -#if MONO_FEATURE_APPLETLS && ONLY_APPLETLS // ONLY_APPLETLS should not support any other option +#if (MONO_FEATURE_APPLETLS && ONLY_APPLETLS) || MONO_FEATURE_APPLE_X509 // ONLY_APPLETLS should not support any other option return InitFromHandleApple (handle); -#elif MONOTOUCH_WATCH - throw new PlatformNotSupportedException (); #else #if MONO_FEATURE_APPLETLS // If we support AppleTls, which is the default, and not overriding to legacy @@ -85,10 +83,8 @@ namespace System.Security.Cryptography.X509Certificates static X509CertificateImpl Import (byte[] rawData) { -#if MONO_FEATURE_APPLETLS && ONLY_APPLETLS // ONLY_APPLETLS should not support any other option +#if (MONO_FEATURE_APPLETLS && ONLY_APPLETLS) || MONO_FEATURE_APPLE_X509 // ONLY_APPLETLS should not support any other option return ImportApple (rawData); -#elif MONOTOUCH_WATCH - throw new PlatformNotSupportedException (); #else #if MONO_FEATURE_APPLETLS if (ShouldUseAppleTls)