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 20:32:09 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 20:32:09 +0700
commit01bb4608ef0431edd7fbcde053ea93d3b1a35a8e (patch)
treeab85eea14e58a1a9527d009deed2e065a9967ff2 /crypto/src/asn1/BerNull.cs
parentMore ASN.1 updates from bc-java (diff)
downloadBouncyCastle.NET-ed25519-01bb4608ef0431edd7fbcde053ea93d3b1a35a8e.tar.xz
Fix and Obsolete BerNull
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/BerNull.cs16
1 files changed, 3 insertions, 13 deletions
diff --git a/crypto/src/asn1/BerNull.cs b/crypto/src/asn1/BerNull.cs
index 346fea02e..90067d4cd 100644
--- a/crypto/src/asn1/BerNull.cs
+++ b/crypto/src/asn1/BerNull.cs
@@ -5,26 +5,16 @@ namespace Org.BouncyCastle.Asn1
 	/**
 	 * A BER Null object.
 	 */
+    [Obsolete("Use 'DerNull' instead")]
 	public class BerNull
 		: DerNull
 	{
-		public static new readonly BerNull Instance = new BerNull();
+        [Obsolete("Use 'DerNull.Instance' instead")]
+        public static new readonly BerNull Instance = new BerNull();
 
 		private BerNull()
             : base()
 		{
 		}
-
-		internal override void Encode(Asn1OutputStream asn1Out)
-		{
-            if (asn1Out.IsBer)
-			{
-				asn1Out.WriteByte(Asn1Tags.Null);
-			}
-			else
-			{
-				base.Encode(asn1Out);
-			}
-		}
 	}
 }