Avoid throwing an ANE on an invalid X.509 extension
authorSebastien Pouliot <sebastien@ximian.com>
Mon, 4 Apr 2011 15:32:05 +0000 (11:32 -0400)
committerSebastien Pouliot <sebastien@ximian.com>
Mon, 4 Apr 2011 15:32:05 +0000 (11:32 -0400)
commiteb02ba9d97a2b02cc4b0dc1512012377b648c830
tree68358464d4aee33b9c55025738ae468897dc3d35
parent8ac5a7ca67f196331407cd555d20715f67a09ab7
Avoid throwing an ANE on an invalid X.509 extension

* X509ExtensionCollection.cs: Avoid throwing an ArgumentNullException
when processing an invalid X.509 extension (e.g. where the value is not
encoded in an OCTETSTRING). See E37A3466C703DCB14E6E16E416E51DC04A42A52B
in bnc #682619
mcs/class/System/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.cs