From 90b28c204eba44ba99503761b3669489443c2a88 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 23 Apr 2024 14:58:29 +0700 Subject: Add implementation note from bc-java --- crypto/src/asn1/x509/X509Extensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/src/asn1/x509/X509Extensions.cs b/crypto/src/asn1/x509/X509Extensions.cs index b5906c2e1..5d83ecdc6 100644 --- a/crypto/src/asn1/x509/X509Extensions.cs +++ b/crypto/src/asn1/x509/X509Extensions.cs @@ -229,6 +229,8 @@ namespace Org.BouncyCastle.Asn1.X509 { m_ordering = new List(); + // Don't require empty sequence; we see empty extension blocks in the wild + foreach (Asn1Encodable ae in seq) { Asn1Sequence s = Asn1Sequence.GetInstance(ae.ToAsn1Object()); -- cgit 1.4.1