Merge pull request #273 from joncham/bug-getpid
[mono.git] / mcs / class / Mono.Security / Mono.Security.X509.Extensions / AuthorityKeyIdentifierExtension.cs
index 193014698225489d57e5ef6b551652569b654e8d..fb6f940a1ecbc9f4355bf11602c330229ed75bda 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// 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
@@ -46,7 +46,12 @@ namespace Mono.Security.X509.Extensions {
         * KeyIdentifier ::= OCTET STRING
         */
 
-       public class AuthorityKeyIdentifierExtension : X509Extension {
+#if INSIDE_SYSTEM
+       internal
+#else
+       public
+#endif
+       class AuthorityKeyIdentifierExtension : X509Extension {
 
                private byte[] aki;
 
@@ -74,10 +79,10 @@ namespace Mono.Security.X509.Extensions {
                                        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;
                                }
                        }
                }