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/cms/Evidence.cs | |
parent | Update X509NameTests, including some TODOs (diff) | |
download | BouncyCastle.NET-ed25519-165f6ce1f276080e1a871cf7eba2f41b381abb3c.tar.xz |
Refactoring around Asn1TaggedObject
Diffstat (limited to 'crypto/src/asn1/cms/Evidence.cs')
-rw-r--r-- | crypto/src/asn1/cms/Evidence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/cms/Evidence.cs b/crypto/src/asn1/cms/Evidence.cs index d240d234b..baa93d6b9 100644 --- a/crypto/src/asn1/cms/Evidence.cs +++ b/crypto/src/asn1/cms/Evidence.cs @@ -15,7 +15,7 @@ namespace Org.BouncyCastle.Asn1.Cms if (obj is Evidence evidence) return evidence; if (obj is Asn1TaggedObject taggedObject) - return new Evidence(Asn1Utilities.CheckContextTag(taggedObject)); + return new Evidence(Asn1Utilities.CheckContextTagClass(taggedObject)); throw new ArgumentException("Unknown object in GetInstance: " + Platform.GetTypeName(obj), nameof(obj)); } |