Author: spouliot
Date: 2006-11-22 08:24:38 -0500 (Wed, 22 Nov 2006)
New Revision: 68346

Modified:
   trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog
   trunk/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs
Log:
2006-11-22  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * X509Store.cs: Add new Open method to access any certificate store
        by any names (required to support 2.0 features).



Modified: trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog  2006-11-22 
13:00:15 UTC (rev 68345)
+++ trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog  2006-11-22 
13:24:38 UTC (rev 68346)
@@ -1,3 +1,8 @@
+2006-11-22  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * X509Store.cs: Add new Open method to access any certificate store
+       by any names (required to support 2.0 features).
+
 2006-11-13  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * X509Certificate.cs: Add support for PEM encoded (base64) x.509 

Modified: trunk/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs      
2006-11-22 13:00:15 UTC (rev 68345)
+++ trunk/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs      
2006-11-22 13:24:38 UTC (rev 68346)
@@ -129,6 +129,18 @@
                        _untrusted = null;
                }
 
+               public X509Store Open (string storeName, bool create)
+               {
+                       if (storeName == null)
+                               throw new ArgumentNullException ("storeName");
+
+                       string path = Path.Combine (_storePath, storeName);
+                       if (!create && !Directory.Exists (path))
+                               return null;
+
+                       return new X509Store (path, false);
+               }
+
                // names
 
                public class Names {

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

Reply via email to