summary refs log tree commit diff
path: root/crypto/src/x509/X509CrlParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/x509/X509CrlParser.cs')
-rw-r--r--crypto/src/x509/X509CrlParser.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/crypto/src/x509/X509CrlParser.cs b/crypto/src/x509/X509CrlParser.cs
index a60a591c4..53a02393b 100644
--- a/crypto/src/x509/X509CrlParser.cs
+++ b/crypto/src/x509/X509CrlParser.cs
@@ -14,15 +14,18 @@ namespace Org.BouncyCastle.X509
 	{
 		private static readonly PemParser PemCrlParser = new PemParser("CRL");
 
-		private readonly bool lazyAsn1;
-
 		private Asn1Set sCrlData;
 		private int sCrlDataObjectCount;
 		private Stream currentCrlStream;
 
-		public X509CrlParser(bool lazyAsn1 = false)
+        public X509CrlParser()
+		{
+		}
+
+		/// <remarks>Value of <paramref name="lazyAsn1"/> is ignored.</remarks>
+		[Obsolete("Will be removed")]
+        public X509CrlParser(bool lazyAsn1)
 		{
-			this.lazyAsn1 = lazyAsn1;
 		}
 
 		private X509Crl ReadDerCrl(Asn1InputStream dIn)
@@ -130,11 +133,7 @@ namespace Org.BouncyCastle.X509
                 if (tag != 0x30)	// assume ascii PEM encoded.
 					return ReadPemCrl(inStream);
 
-				Asn1InputStream asn1 = lazyAsn1
-					?	new LazyAsn1InputStream(inStream, int.MaxValue, leaveOpen: true)
-					:	new Asn1InputStream(inStream, int.MaxValue, leaveOpen: true);
-
-                using (asn1)
+                using (var asn1 = new Asn1InputStream(inStream, int.MaxValue, leaveOpen: true))
                 {
                     return ReadDerCrl(asn1);
                 }