Author: spouliot
Date: 2006-07-25 11:12:01 -0400 (Tue, 25 Jul 2006)
New Revision: 62963
Modified:
trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog
trunk/mcs/class/Mono.Security/Mono.Security.X509/X509CRL.cs
Log:
2006-07-25 Sebastien Pouliot <[EMAIL PROTECTED]>
* X509CRL.cs: Fix the case where no entry are present in the CRL (as
the structure is optional) *and* when there are no x.509 certificate
extensions.
Modified: trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog 2006-07-25
15:11:38 UTC (rev 62962)
+++ trunk/mcs/class/Mono.Security/Mono.Security.X509/ChangeLog 2006-07-25
15:12:01 UTC (rev 62963)
@@ -1,3 +1,9 @@
+2006-07-25 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * X509CRL.cs: Fix the case where no entry are present in the CRL (as
+ the structure is optional) *and* when there are no x.509 certificate
+ extensions.
+
2006-01-24 Sebastien Pouliot <[EMAIL PROTECTED]>
* PKCS12.cs: Consider String.Empty as a null password (e.g. don't
Modified: trunk/mcs/class/Mono.Security/Mono.Security.X509/X509CRL.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.X509/X509CRL.cs 2006-07-25
15:11:38 UTC (rev 62962)
+++ trunk/mcs/class/Mono.Security/Mono.Security.X509/X509CRL.cs 2006-07-25
15:12:01 UTC (rev 62963)
@@ -168,7 +168,7 @@
// CertificateList / TBSCertList /
revokedCertificates SEQUENCE OF SEQUENCE {
entries = new ArrayList ();
// this is OPTIONAL so it may not be present if
no entries exists
- if (next.Tag == 0x30) {
+ if ((next != null) && (next.Tag == 0x30)) {
ASN1 revokedCertificates = next;
for (int i=0; i <
revokedCertificates.Count; i++) {
entries.Add (new X509CrlEntry
(revokedCertificates [i]));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches