Author: spouliot
Date: 2007-12-14 16:41:40 -0500 (Fri, 14 Dec 2007)
New Revision: 91330

Modified:
   
trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/AuthorityKeyIdentifierExtension.cs
   trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/ChangeLog
Log:
2007-12-14  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * AuthorityKeyIdentifierExtension.cs: Don't throw on what we don't
        yet support (e.g. authorityCertIssuer/authorityCertSerialNumber). 
        It's possible that a chain of certificate can be build without this
        information. Fix #346821



Modified: 
trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/AuthorityKeyIdentifierExtension.cs
===================================================================
--- 
trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/AuthorityKeyIdentifierExtension.cs
      2007-12-14 21:05:07 UTC (rev 91329)
+++ 
trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/AuthorityKeyIdentifierExtension.cs
      2007-12-14 21:41:40 UTC (rev 91330)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <[EMAIL PROTECTED]>
 //
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005,2007 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -74,10 +74,10 @@
                                        case 0x80:
                                                aki = el.Value;
                                                break;
-                                       case 0x81:
-                                       case 0x82:
                                        default:
-                                               throw new ArgumentException 
("Invalid AuthorityKeyIdentifier extension");
+                                               // don't throw on stuff we 
don't yet support
+                                               // e.g. 
authorityCertIssuer/authorityCertSerialNumber
+                                               break;
                                }
                        }
                }

Modified: trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/ChangeLog       
2007-12-14 21:05:07 UTC (rev 91329)
+++ trunk/mcs/class/Mono.Security/Mono.Security.X509.Extensions/ChangeLog       
2007-12-14 21:41:40 UTC (rev 91330)
@@ -1,3 +1,10 @@
+2007-12-14  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * AuthorityKeyIdentifierExtension.cs: Don't throw on what we don't
+       yet support (e.g. authorityCertIssuer/authorityCertSerialNumber). 
+       It's possible that a chain of certificate can be build without this
+       information. Fix #346821
+
 2006-01-04  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * AuthorityKeyIdentifierExtension.cs: Added property to publish the 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to