2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / Mono.Security.Cryptography / KeyPairPersistence.cs
index 4ef0783b9f3321d3f91ad3283cf2563a8104de86..773fe011d46b9bc135b08f9d5c9e756d3e68bd72 100755 (executable)
@@ -317,8 +317,13 @@ namespace Mono.Security.Cryptography {
                private static bool CanSecure (string path) 
                {
                        // we assume POSIX filesystems can always be secured
+#if NET_2_0
+                       if (Environment.OSVersion.Platform == PlatformID.Unix)
+                               return true;
+#else
                        if ((int) Environment.OSVersion.Platform == 128)
                                return true;
+#endif
                        // while we ask the runtime for Windows OS
                        return _CanSecure (Path.GetPathRoot (path));
                }