From 4d9ade7d08091fdfad3bcaf56f75612267d023b3 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 18 Jul 2023 13:40:07 +0700 Subject: Custom encoding classes for tagged objects --- crypto/src/asn1/DLTaggedObject.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/asn1/DLTaggedObject.cs') diff --git a/crypto/src/asn1/DLTaggedObject.cs b/crypto/src/asn1/DLTaggedObject.cs index 30e3334e2..09a370690 100644 --- a/crypto/src/asn1/DLTaggedObject.cs +++ b/crypto/src/asn1/DLTaggedObject.cs @@ -46,7 +46,7 @@ namespace Org.BouncyCastle.Asn1 if (!IsExplicit()) return baseObject.GetEncodingImplicit(encoding, TagClass, TagNo); - return new ConstructedDLEncoding(TagClass, TagNo, new IAsn1Encoding[]{ baseObject.GetEncoding(encoding) }); + return new TaggedDLEncoding(TagClass, TagNo, baseObject.GetEncoding(encoding)); } internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo) @@ -59,7 +59,7 @@ namespace Org.BouncyCastle.Asn1 if (!IsExplicit()) return baseObject.GetEncodingImplicit(encoding, tagClass, tagNo); - return new ConstructedDLEncoding(tagClass, tagNo, new IAsn1Encoding[]{ baseObject.GetEncoding(encoding) }); + return new TaggedDLEncoding(tagClass, tagNo, baseObject.GetEncoding(encoding)); } internal override Asn1Sequence RebuildConstructed(Asn1Object asn1Object) -- cgit 1.4.1