Merge pull request #4219 from marek-safar/corert-bump
[mono.git] / mcs / class / System / Mono.Btls / MonoBtlsX509StoreManager.cs
index 42fbdf7fa1c2fb7421e396146f0af1feaaff98b3..28280e8d72786b94c6614f73e9717aed844236d0 100644 (file)
@@ -45,7 +45,7 @@ namespace Mono.Btls
        static class MonoBtlsX509StoreManager
        {
                static bool initialized;
-#if !ANDROID
+#if !MONODROID
                static string machineTrustedRootPath;
                static string machineIntermediateCAPath;
                static string machineUntrustedPath;
@@ -70,22 +70,22 @@ namespace Mono.Btls
 
                static void DoInitialize ()
                {
-#if !ANDROID
+#if !MONODROID
                        var userPath = MX.X509StoreManager.NewCurrentUserPath;
                        userTrustedRootPath = Path.Combine (userPath, MX.X509Stores.Names.TrustedRoot);
                        userIntermediateCAPath = Path.Combine (userPath, MX.X509Stores.Names.IntermediateCA);
                        userUntrustedPath = Path.Combine (userPath, MX.X509Stores.Names.Untrusted);
 
                        var machinePath = MX.X509StoreManager.NewLocalMachinePath;
-                       machineTrustedRootPath = Path.Combine (userPath, MX.X509Stores.Names.TrustedRoot);
-                       machineIntermediateCAPath = Path.Combine (userPath, MX.X509Stores.Names.IntermediateCA);
-                       machineUntrustedPath = Path.Combine (userPath, MX.X509Stores.Names.Untrusted);
+                       machineTrustedRootPath = Path.Combine (machinePath, MX.X509Stores.Names.TrustedRoot);
+                       machineIntermediateCAPath = Path.Combine (machinePath, MX.X509Stores.Names.IntermediateCA);
+                       machineUntrustedPath = Path.Combine (machinePath, MX.X509Stores.Names.Untrusted);
 #endif
                }
 
                public static bool HasStore (MonoBtlsX509StoreType type)
                {
-#if ANDROID
+#if MONODROID
                        return false;
 #else
                        var path = GetStorePath (type);
@@ -95,7 +95,7 @@ namespace Mono.Btls
 
                public static string GetStorePath (MonoBtlsX509StoreType type)
                {
-#if ANDROID
+#if MONODROID
                        throw new NotSupportedException ();
 #else
                        Initialize ();