summary refs log tree commit diff
path: root/crypto/src/asn1/BerNull.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 13:03:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 13:03:27 +0700
commitcbf1038241e3a2b895813ccee83d559525b01630 (patch)
tree385fedc4e1614ae0c87324a2caa04a084b0bc09c /crypto/src/asn1/BerNull.cs
parentASN.1 Obsolete cleanup (diff)
downloadBouncyCastle.NET-ed25519-cbf1038241e3a2b895813ccee83d559525b01630.tar.xz
Obsolete BerOutputStream
Diffstat (limited to 'crypto/src/asn1/BerNull.cs')
-rw-r--r--crypto/src/asn1/BerNull.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/BerNull.cs b/crypto/src/asn1/BerNull.cs
index cf669914b..8df088d0c 100644
--- a/crypto/src/asn1/BerNull.cs
+++ b/crypto/src/asn1/BerNull.cs
@@ -17,7 +17,7 @@ namespace Org.BouncyCastle.Asn1
 
 		internal override void Encode(DerOutputStream derOut)
 		{
-			if (derOut is Asn1OutputStream || derOut is BerOutputStream)
+            if (derOut.IsBer)
 			{
 				derOut.WriteByte(Asn1Tags.Null);
 			}