From b8bdf1e145533808d9d8594c1817a124c3cf5c9e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 24 Jun 2024 15:23:25 +0700 Subject: Add TODO --- crypto/src/asn1/Asn1Utilities.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto') diff --git a/crypto/src/asn1/Asn1Utilities.cs b/crypto/src/asn1/Asn1Utilities.cs index 169f1fb37..c3449c050 100644 --- a/crypto/src/asn1/Asn1Utilities.cs +++ b/crypto/src/asn1/Asn1Utilities.cs @@ -661,6 +661,10 @@ namespace Org.BouncyCastle.Asn1 public static TResult ReadTagged(Asn1Sequence sequence, ref int sequencePosition, int tagClass, int tagNo, TState state, Func constructor) { + /* + * TODO We might want to check the position and throw a better exception, but current ASN.1 types aren't + * doing that, so leave it until it can be consistent. + */ var tagged = Asn1TaggedObject.GetInstance(sequence[sequencePosition++], tagClass, tagNo); return constructor(tagged, state); -- cgit 1.4.1