summary refs log tree commit diff
path: root/crypto/src/asn1/BerOutputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BerOutputStream.cs')
-rw-r--r--crypto/src/asn1/BerOutputStream.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/src/asn1/BerOutputStream.cs b/crypto/src/asn1/BerOutputStream.cs
index 54b72cf06..1486368e0 100644
--- a/crypto/src/asn1/BerOutputStream.cs
+++ b/crypto/src/asn1/BerOutputStream.cs
@@ -13,9 +13,14 @@ namespace Org.BouncyCastle.Asn1
         {
         }
 
-        internal override bool IsBer
+        public override void WriteObject(Asn1Encodable encodable)
         {
-            get { return true; }
+            Asn1OutputStream.Create(s).WriteObject(encodable);
+        }
+
+        public override void WriteObject(Asn1Object primitive)
+        {
+            Asn1OutputStream.Create(s).WriteObject(primitive);
         }
     }
 }