From 438dc8d53aac9b7483a2014cd4398b8275c496ab Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 24 Jun 2024 20:04:26 +0700 Subject: ASN.1: Use GetTagged with cursor methods - Add GetTagged method for all CHOICE types - Make most Asn1Utilities methods public --- crypto/src/asn1/pkcs/CertificationRequestInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/asn1/pkcs/CertificationRequestInfo.cs') diff --git a/crypto/src/asn1/pkcs/CertificationRequestInfo.cs b/crypto/src/asn1/pkcs/CertificationRequestInfo.cs index 53bdffdaa..38d2d39dd 100644 --- a/crypto/src/asn1/pkcs/CertificationRequestInfo.cs +++ b/crypto/src/asn1/pkcs/CertificationRequestInfo.cs @@ -63,7 +63,7 @@ namespace Org.BouncyCastle.Asn1.Pkcs m_subjectPKInfo = SubjectPublicKeyInfo.GetInstance(seq[pos++]); // NOTE: some CertificationRequestInfo objects seem to treat this field as optional. - m_attributes = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 0, false, Asn1Set.GetInstance); + m_attributes = Asn1Utilities.ReadOptionalContextTagged(seq, ref pos, 0, false, Asn1Set.GetTagged); if (pos != count) throw new ArgumentException("Unexpected elements in sequence", nameof(seq)); -- cgit 1.4.1