diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-01-02 17:19:19 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-01-02 17:19:19 +0700 |
commit | 165f6ce1f276080e1a871cf7eba2f41b381abb3c (patch) | |
tree | 9e8b85b81098c4599f68a21da480e546ee27ed3d /crypto/src/asn1/x509/X509Extensions.cs | |
parent | Update X509NameTests, including some TODOs (diff) | |
download | BouncyCastle.NET-ed25519-165f6ce1f276080e1a871cf7eba2f41b381abb3c.tar.xz |
Refactoring around Asn1TaggedObject
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/x509/X509Extensions.cs | 2 |
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)); } |