summary refs log tree commit diff
path: root/crypto/src/x509
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-07 16:03:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-07 16:03:07 +0700
commite47f41dbe4e61cb190154693b72bc99eb6ca6c3e (patch)
treed92fd90fc444d6141745c8ae0d60838f92502e06 /crypto/src/x509
parentAdd BasicGcmMultiplier.IsHardwareAccelerated (diff)
downloadBouncyCastle.NET-ed25519-e47f41dbe4e61cb190154693b72bc99eb6ca6c3e.tar.xz
Remove lazy ASN.1 behaviour
Diffstat (limited to 'crypto/src/x509')
-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);
                 }