2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Wed, 22 Nov 2006 13:24:38 +0000 (13:24 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Wed, 22 Nov 2006 13:24:38 +0000 (13:24 -0000)
* X509Store.cs: Add new Open method to access any certificate store
by any names (required to support 2.0 features).

svn path=/trunk/mcs/; revision=68346

mcs/class/Mono.Security/Mono.Security.X509/ChangeLog
mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs

index fd941eafc3eae5f2d6f409d732493f01ee8e468c..7e25e1419bbac3e0a8d8fa94aca17709cacc7827 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * 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  <sebastien@ximian.com>
 
        * X509Certificate.cs: Add support for PEM encoded (base64) x.509 
index dc3cd39ef4cc78a93c3c74486710d78a5aa31e9e..76e6cd91d118938d63c25dbe0de7f9a2cebd367e 100644 (file)
@@ -129,6 +129,18 @@ namespace Mono.Security.X509 {
                        _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 {