[System]: AndroidPlatform.CertStoreLookup(): add to the build, but return null.
authorMartin Baulig <martin.baulig@xamarin.com>
Fri, 30 Sep 2016 13:16:42 +0000 (15:16 +0200)
committerMartin Baulig <martin.baulig@xamarin.com>
Fri, 30 Sep 2016 13:18:03 +0000 (15:18 +0200)
This needs to have support added to xamarin-android before we can enable it.

(cherry picked from commit 9e46b5744b93bcc0bc36ab9d957a5510aaeabf1f)

mcs/class/System/System/AndroidPlatform.cs

index 76774addeb824d26ba5419a050c2e922dcc71b61..2e57ca299a72134a88daf5fd42a9767cff170708 100644 (file)
@@ -96,9 +96,9 @@ namespace System {
                        return trustEvaluateSsl (certsRawData);
                }
 
-#if HAVE_BTLS
                internal static MonoBtlsX509 CertStoreLookup (MonoBtlsX509Name name)
                {
+#if HAVE_BTLS
                        var hash = name.GetHash ();
                        var hashOld = name.GetHashOld ();
                        var result = certStoreLookup (hash, false);
@@ -113,8 +113,10 @@ namespace System {
                                return null;
 
                        return MonoBtlsX509.LoadFromData (result, MonoBtlsX509Format.DER);
-               }
+#else
+                       return null;
 #endif
+               }
 #endif  // SECURITY_DEP
 
                internal static IWebProxy GetDefaultProxy ()