summary refs log tree commit diff
path: root/crypto/src/asn1/DerUniversalString.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-07 22:30:33 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-07 22:30:33 +0700
commitcc8742fd7e36c6bc7b773c75a797e478f21aa1df (patch)
treee7ac8d41b18e30f9168271beb404dc1a9dcba34c /crypto/src/asn1/DerUniversalString.cs
parentRewrite DerExternal (diff)
downloadBouncyCastle.NET-ed25519-cc8742fd7e36c6bc7b773c75a797e478f21aa1df.tar.xz
Add EncodeConstructed method
Diffstat (limited to 'crypto/src/asn1/DerUniversalString.cs')
-rw-r--r--crypto/src/asn1/DerUniversalString.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerUniversalString.cs b/crypto/src/asn1/DerUniversalString.cs
index 2e9baa76e..e9188b202 100644
--- a/crypto/src/asn1/DerUniversalString.cs
+++ b/crypto/src/asn1/DerUniversalString.cs
@@ -86,6 +86,11 @@ namespace Org.BouncyCastle.Asn1
             return (byte[]) str.Clone();
         }
 
+        internal override bool EncodeConstructed()
+        {
+            return false;
+        }
+
         internal override int EncodedLength(bool withID)
         {
             return Asn1OutputStream.GetLengthOfEncodingDL(withID, this.str.Length);
@@ -96,7 +101,7 @@ namespace Org.BouncyCastle.Asn1
             asn1Out.WriteEncodingDL(withID, Asn1Tags.UniversalString, this.str);
         }
 
-		protected override bool Asn1Equals(
+        protected override bool Asn1Equals(
 			Asn1Object asn1Object)
 		{
 			DerUniversalString other = asn1Object as DerUniversalString;