summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1OutputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/Asn1OutputStream.cs')
-rw-r--r--crypto/src/asn1/Asn1OutputStream.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/crypto/src/asn1/Asn1OutputStream.cs b/crypto/src/asn1/Asn1OutputStream.cs
index 096b569e3..1a69d7c2c 100644
--- a/crypto/src/asn1/Asn1OutputStream.cs
+++ b/crypto/src/asn1/Asn1OutputStream.cs
@@ -1,10 +1,12 @@
 using System;
 using System.IO;
 
+using Org.BouncyCastle.Utilities.IO;
+
 namespace Org.BouncyCastle.Asn1
 {
     public class Asn1OutputStream
-        : DerOutputStream
+        : FilterStream
     {
         internal const int EncodingBer = 1;
         internal const int EncodingDer = 2;
@@ -18,7 +20,7 @@ namespace Org.BouncyCastle.Asn1
         {
             if (Asn1Encodable.Der.Equals(encoding))
             {
-                return new DerOutputStreamNew(output);
+                return new DerOutputStream(output);
             }
             else
             {
@@ -26,13 +28,12 @@ namespace Org.BouncyCastle.Asn1
             }
         }
 
-        [Obsolete("Use static Create method(s)")]
-        public Asn1OutputStream(Stream os)
+        internal Asn1OutputStream(Stream os)
             : base(os)
         {
         }
 
-        public override void WriteObject(Asn1Encodable asn1Encodable)
+        public virtual void WriteObject(Asn1Encodable asn1Encodable)
         {
             if (null == asn1Encodable)
                 throw new ArgumentNullException("asn1Encodable");
@@ -41,7 +42,7 @@ namespace Org.BouncyCastle.Asn1
             FlushInternal();
         }
 
-        public override void WriteObject(Asn1Object asn1Object)
+        public virtual void WriteObject(Asn1Object asn1Object)
         {
             if (null == asn1Object)
                 throw new ArgumentNullException("asn1Object");