diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2006-11-22 16:24:38 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2006-11-22 16:24:38 +0300 |
commit | aaf59b6677ef48893f413b9f78b2893660d6649c (patch) | |
tree | fd72d1657a2624455f931cd0646fc5bcc2078500 /mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs | |
parent | deab754c4a3581f4be8ab9b358887e520166cb8c (diff) |
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).
svn path=/trunk/mcs/; revision=68346
Diffstat (limited to 'mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs')
-rw-r--r-- | mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs b/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs index dc3cd39ef4c..76e6cd91d11 100644 --- a/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs +++ b/mcs/class/Mono.Security/Mono.Security.X509/X509Stores.cs @@ -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 { |