static class MonoBtlsX509StoreManager
{
static bool initialized;
-#if !ANDROID
+#if !MONODROID
static string machineTrustedRootPath;
static string machineIntermediateCAPath;
static string machineUntrustedPath;
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);
public static string GetStorePath (MonoBtlsX509StoreType type)
{
-#if ANDROID
+#if MONODROID
throw new NotSupportedException ();
#else
Initialize ();