summary refs log tree commit diff
path: root/crypto/src/asn1/DERSequenceParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DERSequenceParser.cs')
-rw-r--r--crypto/src/asn1/DERSequenceParser.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/crypto/src/asn1/DERSequenceParser.cs b/crypto/src/asn1/DERSequenceParser.cs
index 69c2b9b2d..a373fcf32 100644
--- a/crypto/src/asn1/DERSequenceParser.cs
+++ b/crypto/src/asn1/DERSequenceParser.cs
@@ -1,24 +1,26 @@
+using System;
+
 namespace Org.BouncyCastle.Asn1
 {
-	public class DerSequenceParser
+    // TODO[asn1] Should be renamed/replaced with DLSequenceParser
+    public class DerSequenceParser
 		: Asn1SequenceParser
 	{
-		private readonly Asn1StreamParser _parser;
+		private readonly Asn1StreamParser m_parser;
 
-		internal DerSequenceParser(
-			Asn1StreamParser parser)
+		internal DerSequenceParser(Asn1StreamParser parser)
 		{
-			this._parser = parser;
+			this.m_parser = parser;
 		}
 
 		public IAsn1Convertible ReadObject()
 		{
-			return _parser.ReadObject();
+			return m_parser.ReadObject();
 		}
 
 		public Asn1Object ToAsn1Object()
 		{
-			return new DerSequence(_parser.ReadVector());
+            return DLSequence.FromVector(m_parser.ReadVector());
 		}
 	}
 }