diff options
Diffstat (limited to 'crypto/src/asn1/cms/Evidence.cs')
-rw-r--r-- | crypto/src/asn1/cms/Evidence.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/cms/Evidence.cs b/crypto/src/asn1/cms/Evidence.cs index 2e39054d6..54d498cb9 100644 --- a/crypto/src/asn1/cms/Evidence.cs +++ b/crypto/src/asn1/cms/Evidence.cs @@ -41,14 +41,14 @@ namespace Org.BouncyCastle.Asn1.Cms return evidence; if (obj is Asn1TaggedObject taggedObject) - return new Evidence(taggedObject); + return new Evidence(Asn1Utilities.CheckTagClass(taggedObject, Asn1Tags.ContextSpecific)); throw new ArgumentException("Unknown object in GetInstance: " + Platform.GetTypeName(obj), "obj"); } public static Evidence GetInstance(Asn1TaggedObject obj, bool isExplicit) { - return GetInstance(obj.GetObject()); // must be explicitly tagged + return Asn1Utilities.GetInstanceFromChoice(obj, isExplicit, GetInstance); } public virtual TimeStampTokenEvidence TstEvidence |