diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-24 15:23:25 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-24 15:23:25 +0700 |
commit | b8bdf1e145533808d9d8594c1817a124c3cf5c9e (patch) | |
tree | 82541021db1369673e9400bc339551cdefade9b3 | |
parent | Add support for modified UTF-8 in JKS (diff) | |
download | BouncyCastle.NET-ed25519-b8bdf1e145533808d9d8594c1817a124c3cf5c9e.tar.xz |
Add TODO
-rw-r--r-- | crypto/src/asn1/Asn1Utilities.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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<TState, TResult>(Asn1Sequence sequence, ref int sequencePosition, int tagClass, int tagNo, TState state, Func<Asn1TaggedObject, TState, TResult> 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); |