diff options
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog index 5d37834791c..49a835e0b35 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog @@ -1,3 +1,9 @@ +2008-06-26 Sebastien Pouliot <sebastien@ximian.com> + + * X509Certificate2.cs: Allow password-less ctor to (try to) open + PKCS#12 files (with an empty password). + [Fix bug #403610] + 2008-06-03 Sebastien Pouliot <sebastien@ximian.com> * X509Certificate2.cs: Allow PrivateKey property to be set to null. diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs index bb588d41cb9..f6f58531b3c 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs @@ -86,9 +86,9 @@ namespace System.Security.Cryptography.X509Certificates { Import (rawData, password, keyStorageFlags); } - public X509Certificate2 (string fileName) : base (fileName) + public X509Certificate2 (string fileName) { - Import (fileName, (string)null, X509KeyStorageFlags.DefaultKeySet); + Import (fileName, String.Empty, X509KeyStorageFlags.DefaultKeySet); } public X509Certificate2 (string fileName, string password) |