From f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 6 Nov 2021 23:39:42 +0700 Subject: Rewrite DerExternal --- crypto/src/asn1/BerSequence.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'crypto/src/asn1/BerSequence.cs') diff --git a/crypto/src/asn1/BerSequence.cs b/crypto/src/asn1/BerSequence.cs index 068f0a2a8..1795025f2 100644 --- a/crypto/src/asn1/BerSequence.cs +++ b/crypto/src/asn1/BerSequence.cs @@ -43,6 +43,11 @@ namespace Org.BouncyCastle.Asn1 { } + internal BerSequence(Asn1Encodable[] elements, bool clone) + : base(elements, clone) + { + } + internal override int EncodedLength(bool withID) { throw Platform.CreateNotImplementedException("BerSequence.EncodedLength"); @@ -59,5 +64,12 @@ namespace Org.BouncyCastle.Asn1 base.Encode(asn1Out, withID); } } - } + + internal override DerExternal ToAsn1External() + { + // TODO There is currently no BerExternal class (or ToDLObject/ToDerObject) + //return ((Asn1Sequence)ToDLObject()).ToAsn1External(); + return new DerSequence(elements, false).ToAsn1External(); + } + } } -- cgit 1.4.1