summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src')
-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);
-			}
-		}
 	}
 }