summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Utilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 19:31:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 19:31:27 +0700
commit545bd8d72f1be98af7ce0dc85f713a5f47b01d9d (patch)
treeb598906898b019c9c1f60cf2f66b89583fe3c966 /crypto/src/asn1/Asn1Utilities.cs
parentAdd Asn1Utilities class (diff)
downloadBouncyCastle.NET-ed25519-545bd8d72f1be98af7ce0dc85f713a5f47b01d9d.tar.xz
Add TagClass property to Asn1TaggedObject
Diffstat (limited to 'crypto/src/asn1/Asn1Utilities.cs')
-rw-r--r--crypto/src/asn1/Asn1Utilities.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/asn1/Asn1Utilities.cs b/crypto/src/asn1/Asn1Utilities.cs
index bdeb46483..dca2253ec 100644
--- a/crypto/src/asn1/Asn1Utilities.cs
+++ b/crypto/src/asn1/Asn1Utilities.cs
@@ -6,8 +6,7 @@ namespace Org.BouncyCastle.Asn1
     {
         public static string GetTagText(Asn1TaggedObject taggedObject)
         {
-            // TODO[asn1] Implement and use taggedObject.TagClass
-            return GetTagText(Asn1Tags.ContextSpecific, taggedObject.TagNo);
+            return GetTagText(taggedObject.TagClass, taggedObject.TagNo);
         }
 
         public static string GetTagText(int tagClass, int tagNo)