summary refs log tree commit diff
path: root/crypto/src/asn1/DERSequenceGenerator.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-06-09 21:32:35 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-06-09 21:32:35 +0700
commita2d8f592f92109116e5ea7b12d7db9705152cb85 (patch)
tree6b84d351dfeeffd7d7d3f1761f5c2c02596294a4 /crypto/src/asn1/DERSequenceGenerator.cs
parentUpdate from bc-java (diff)
downloadBouncyCastle.NET-ed25519-a2d8f592f92109116e5ea7b12d7db9705152cb85.tar.xz
Overload AddObject for Asn1Object
Diffstat (limited to 'crypto/src/asn1/DERSequenceGenerator.cs')
-rw-r--r--crypto/src/asn1/DERSequenceGenerator.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/src/asn1/DERSequenceGenerator.cs b/crypto/src/asn1/DERSequenceGenerator.cs
index 4c2bfd012..c4348c78d 100644
--- a/crypto/src/asn1/DERSequenceGenerator.cs
+++ b/crypto/src/asn1/DERSequenceGenerator.cs
@@ -27,7 +27,13 @@ namespace Org.BouncyCastle.Asn1
 			new DerOutputStream(_bOut).WriteObject(obj);
 		}
 
-		public override Stream GetRawOutputStream()
+        public override void AddObject(
+            Asn1Object obj)
+        {
+            new DerOutputStream(_bOut).WriteObject(obj);
+        }
+
+        public override Stream GetRawOutputStream()
 		{
 			return _bOut;
 		}