* PKCS12.cs: Consider String.Empty as a null password (e.g. don't
throw an IndexOutOfRangeException). Fix part of bug #77342.
svn path=/trunk/mcs/; revision=56021
+2006-01-24 Sebastien Pouliot <sebastien@ximian.com>
+
+ * PKCS12.cs: Consider String.Empty as a null password (e.g. don't
+ throw an IndexOutOfRangeException). Fix part of bug #77342.
+
2006-01-05 Sebastien Pouliot <sebastien@ximian.com>
* X509Extension.cs: Extension data may be encapsulated (i.e. ASN.1
// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004-2005 Novell Inc. (http://www.novell.com)
+// Copyright (C) 2004,2005,2006 Novell Inc. (http://www.novell.com)
//
// Key derivation translated from Bouncy Castle JCE (http://www.bouncycastle.org/)
// See bouncycastle.txt for license.
public string Password {
set {
- if (value != null) {
+ if ((value != null) && (value.Length > 0)) {
int size = value.Length;
int nul = 0;
if (size < MaximumPasswordLength) {