diff options
Diffstat (limited to 'crypto/src/asn1/pkcs/CertBag.cs')
-rw-r--r-- | crypto/src/asn1/pkcs/CertBag.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/pkcs/CertBag.cs b/crypto/src/asn1/pkcs/CertBag.cs index 81868fef6..129a73ada 100644 --- a/crypto/src/asn1/pkcs/CertBag.cs +++ b/crypto/src/asn1/pkcs/CertBag.cs @@ -23,7 +23,7 @@ namespace Org.BouncyCastle.Asn1.Pkcs throw new ArgumentException("Wrong number of elements in sequence", nameof(seq)); this.m_certID = DerObjectIdentifier.GetInstance(seq[0]); - this.m_certValue = Asn1TaggedObject.GetInstance(seq[1]).GetObject(); + this.m_certValue = Asn1TaggedObject.GetInstance(seq[1]).GetExplicitBaseObject().ToAsn1Object(); } public CertBag(DerObjectIdentifier certID, Asn1Object certValue) |