From cc8742fd7e36c6bc7b773c75a797e478f21aa1df Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 7 Nov 2021 22:30:33 +0700 Subject: Add EncodeConstructed method --- crypto/src/asn1/DerPrintableString.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crypto/src/asn1/DerPrintableString.cs') diff --git a/crypto/src/asn1/DerPrintableString.cs b/crypto/src/asn1/DerPrintableString.cs index f450e2896..e930e2845 100644 --- a/crypto/src/asn1/DerPrintableString.cs +++ b/crypto/src/asn1/DerPrintableString.cs @@ -100,6 +100,11 @@ namespace Org.BouncyCastle.Asn1 return Strings.ToAsciiByteArray(str); } + internal override bool EncodeConstructed() + { + return false; + } + internal override int EncodedLength(bool withID) { return Asn1OutputStream.GetLengthOfEncodingDL(withID, str.Length); @@ -110,7 +115,7 @@ namespace Org.BouncyCastle.Asn1 asn1Out.WriteEncodingDL(withID, Asn1Tags.PrintableString, GetOctets()); } - protected override bool Asn1Equals( + protected override bool Asn1Equals( Asn1Object asn1Object) { DerPrintableString other = asn1Object as DerPrintableString; -- cgit 1.4.1