summary refs log tree commit diff
path: root/crypto/src/asn1/x509/X509Extensions.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-01-02 17:19:19 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-01-02 17:19:19 +0700
commit165f6ce1f276080e1a871cf7eba2f41b381abb3c (patch)
tree9e8b85b81098c4599f68a21da480e546ee27ed3d /crypto/src/asn1/x509/X509Extensions.cs
parentUpdate X509NameTests, including some TODOs (diff)
downloadBouncyCastle.NET-ed25519-165f6ce1f276080e1a871cf7eba2f41b381abb3c.tar.xz
Refactoring around Asn1TaggedObject
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/x509/X509Extensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/X509Extensions.cs b/crypto/src/asn1/x509/X509Extensions.cs
index af0655f8e..6396f9ddc 100644
--- a/crypto/src/asn1/x509/X509Extensions.cs
+++ b/crypto/src/asn1/x509/X509Extensions.cs
@@ -216,7 +216,7 @@ namespace Org.BouncyCastle.Asn1.X509
 
             // TODO[api] Rename this class to just Extensions and drop support for this
             if (obj is Asn1TaggedObject taggedObject)
-                return GetInstance(Asn1Utilities.CheckContextTag(taggedObject).GetBaseObject().ToAsn1Object());
+                return GetInstance(Asn1Utilities.CheckContextTagClass(taggedObject).GetBaseObject().ToAsn1Object());
 
             throw new ArgumentException("unknown object in factory: " + Platform.GetTypeName(obj), nameof(obj));
         }