summary refs log tree commit diff
path: root/crypto/src/asn1/DerApplicationSpecific.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-20 18:44:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-20 18:44:07 +0700
commitfe0abc8e4f4eb407a7fff3e5d567a51ce49a4baf (patch)
tree33f1beb1702c99430a033cd52b568b283319c487 /crypto/src/asn1/DerApplicationSpecific.cs
parentASN:1 tagged object parser updates from bc-java (diff)
downloadBouncyCastle.NET-ed25519-fe0abc8e4f4eb407a7fff3e5d567a51ce49a4baf.tar.xz
ASN.1: Tagged object parser improvements
- add DLTaggedObjectParser
- refactoring of Asn1InputStream/Asn1StreamParser
Diffstat (limited to 'crypto/src/asn1/DerApplicationSpecific.cs')
-rw-r--r--crypto/src/asn1/DerApplicationSpecific.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerApplicationSpecific.cs b/crypto/src/asn1/DerApplicationSpecific.cs
index 92443b917..d474034ed 100644
--- a/crypto/src/asn1/DerApplicationSpecific.cs
+++ b/crypto/src/asn1/DerApplicationSpecific.cs
@@ -126,6 +126,11 @@ namespace Org.BouncyCastle.Asn1
             return m_taggedObject.ParseBaseUniversal(declaredExplicit, baseTagNo);
         }
 
+        public IAsn1Convertible ParseExplicitBaseObject()
+        {
+            return TaggedObject.ParseExplicitBaseObject();
+        }
+
         public Asn1TaggedObjectParser ParseExplicitBaseTagged()
         {
             return m_taggedObject.ParseExplicitBaseTagged();
@@ -160,7 +165,7 @@ namespace Org.BouncyCastle.Asn1
         public IAsn1Convertible ReadObject()
         {
             // NOTE: No way to say you're looking for an implicitly-tagged object via IAsn1ApplicationSpecificParser
-            return m_taggedObject.GetBaseObject();
+            return ParseExplicitBaseObject();
         }
 
         public int TagClass