From: Martin Baulig Date: Fri, 30 Sep 2016 13:16:42 +0000 (+0200) Subject: [System]: AndroidPlatform.CertStoreLookup(): add to the build, but return null. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=f8c6505ad39d1ebf725389584e6a57ba09dd35d9;p=mono.git [System]: AndroidPlatform.CertStoreLookup(): add to the build, but return null. This needs to have support added to xamarin-android before we can enable it. (cherry picked from commit 9e46b5744b93bcc0bc36ab9d957a5510aaeabf1f) --- diff --git a/mcs/class/System/System/AndroidPlatform.cs b/mcs/class/System/System/AndroidPlatform.cs index 76774addeb8..2e57ca299a7 100644 --- a/mcs/class/System/System/AndroidPlatform.cs +++ b/mcs/class/System/System/AndroidPlatform.cs @@ -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 ()