Author: spouliot
Date: 2005-05-09 11:27:16 -0400 (Mon, 09 May 2005)
New Revision: 44285

Modified:
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
   
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/KeyPairPersistence.cs
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
Log:
2005-05-09  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0. 
        * PKCS8.cs: In sync with corlib;



Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2005-05-09 15:26:27 UTC (rev 44284)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2005-05-09 15:27:16 UTC (rev 44285)
@@ -1,3 +1,8 @@
+2005-05-09  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0. 
+       * PKCS8.cs: In sync with corlib;
+
 2005-04-18  Sebastien Pouliot  <[EMAIL PROTECTED]> 
  
        * Null.cs: New "null" symmetric encryption for debugging. This class 

Modified: 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/KeyPairPersistence.cs
===================================================================
--- 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/KeyPairPersistence.cs  
    2005-05-09 15:26:27 UTC (rev 44284)
+++ 
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/KeyPairPersistence.cs  
    2005-05-09 15:27:16 UTC (rev 44285)
@@ -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));
                }

Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs   
2005-05-09 15:26:27 UTC (rev 44284)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs   
2005-05-09 15:27:16 UTC (rev 44285)
@@ -6,10 +6,8 @@
 //     Sebastien Pouliot <[EMAIL PROTECTED]>
 //
 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell Inc. (http://www.novell.com)
 //
-
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -35,12 +33,16 @@
 using System.Security.Cryptography;
 using System.Text;
 
-using Mono.Security.Cryptography;
 using Mono.Security.X509;
 
 namespace Mono.Security.Cryptography {
 
-       public sealed class PKCS8 {
+#if INSIDE_CORLIB
+       internal
+#else
+       public 
+#endif
+       sealed class PKCS8 {
 
                public enum KeyInfo {
                        PrivateKey,

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to