From a3f7b8ba1349d1e518661aa2723e64f595dfb3df Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 21 Jun 2024 17:21:34 +0700 Subject: ASN.1: GetTagged method for all universal types --- crypto/src/asn1/DerEnumerated.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/src/asn1/DerEnumerated.cs') diff --git a/crypto/src/asn1/DerEnumerated.cs b/crypto/src/asn1/DerEnumerated.cs index 9ec1d1919..5025336bf 100644 --- a/crypto/src/asn1/DerEnumerated.cs +++ b/crypto/src/asn1/DerEnumerated.cs @@ -83,6 +83,11 @@ namespace Org.BouncyCastle.Asn1 return null; } + public static DerEnumerated GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) + { + return (DerEnumerated)Meta.Instance.GetTagged(taggedObject, declaredExplicit); + } + private readonly byte[] contents; private readonly int start; -- cgit 1.4.1