diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-18 12:06:03 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-18 12:06:03 +0700 |
commit | 913eada3ad9394f1327a1feb80a3261f7c6e55bb (patch) | |
tree | 6366c1e196ad2ac249edf12a4d41d52ee2d28629 /crypto/src/asn1/cmp/KeyRecRepContent.cs | |
parent | Refactoring around PrivateKeyInfo (diff) | |
download | BouncyCastle.NET-ed25519-913eada3ad9394f1327a1feb80a3261f7c6e55bb.tar.xz |
Deprecated Asn1TaggedObject.GetObject and refactor
Diffstat (limited to 'crypto/src/asn1/cmp/KeyRecRepContent.cs')
-rw-r--r-- | crypto/src/asn1/cmp/KeyRecRepContent.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/asn1/cmp/KeyRecRepContent.cs b/crypto/src/asn1/cmp/KeyRecRepContent.cs index 880eb9895..8121988d2 100644 --- a/crypto/src/asn1/cmp/KeyRecRepContent.cs +++ b/crypto/src/asn1/cmp/KeyRecRepContent.cs @@ -30,18 +30,18 @@ namespace Org.BouncyCastle.Asn1.Cmp for (int pos = 1; pos < seq.Count; ++pos) { - Asn1TaggedObject tObj = Asn1TaggedObject.GetInstance(seq[pos]); + Asn1TaggedObject tObj = Asn1TaggedObject.GetInstance(seq[pos], Asn1Tags.ContextSpecific); switch (tObj.TagNo) { case 0: - m_newSigCert = CmpCertificate.GetInstance(tObj.GetObject()); + m_newSigCert = CmpCertificate.GetInstance(tObj.GetExplicitBaseObject()); break; case 1: - m_caCerts = Asn1Sequence.GetInstance(tObj.GetObject()); + m_caCerts = Asn1Sequence.GetInstance(tObj.GetExplicitBaseObject()); break; case 2: - m_keyPairHist = Asn1Sequence.GetInstance(tObj.GetObject()); + m_keyPairHist = Asn1Sequence.GetInstance(tObj.GetExplicitBaseObject()); break; default: throw new ArgumentException("unknown tag number: " + tObj.TagNo, "seq"); |