diff options
author | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
commit | 84a1abd2bb12af82623c136243240e52a88e0bf4 (patch) | |
tree | 5a9828c8785a54c5b293ba484bdd0e2f2431600f /crypto/src/asn1/Asn1OutputStream.cs | |
parent | Update copyright (diff) | |
download | BouncyCastle.NET-ed25519-84a1abd2bb12af82623c136243240e52a88e0bf4.tar.xz |
ObsoleteAttribute cleanup
Diffstat (limited to 'crypto/src/asn1/Asn1OutputStream.cs')
-rw-r--r-- | crypto/src/asn1/Asn1OutputStream.cs | 13 |
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"); |