Author: spouliot
Date: 2005-05-09 11:26:27 -0400 (Mon, 09 May 2005)
New Revision: 44284
Modified:
trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
trunk/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs
Log:
2005-05-09 Sebastien Pouliot <[EMAIL PROTECTED]>
* KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0.
Modified: trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2005-05-09
15:24:29 UTC (rev 44283)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2005-05-09
15:26:27 UTC (rev 44284)
@@ -1,3 +1,7 @@
+2005-05-09 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0.
+
2005-04-27 Sebastien Pouliot <[EMAIL PROTECTED]>
* PKCS8.cs: New. Copied from Mono.Security.dll to allow support of
Modified:
trunk/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs
2005-05-09 15:24:29 UTC (rev 44283)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs
2005-05-09 15:26:27 UTC (rev 44284)
@@ -317,8 +317,13 @@
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));
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches