diff options
Diffstat (limited to 'crypto/src/asn1/cmp/PKIBody.cs')
-rw-r--r-- | crypto/src/asn1/cmp/PKIBody.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/cmp/PKIBody.cs b/crypto/src/asn1/cmp/PKIBody.cs index 2a92053b5..19a1a03a1 100644 --- a/crypto/src/asn1/cmp/PKIBody.cs +++ b/crypto/src/asn1/cmp/PKIBody.cs @@ -87,7 +87,7 @@ namespace Org.BouncyCastle.Asn1.Cmp private PkiBody(Asn1TaggedObject taggedObject) { m_tagNo = taggedObject.TagNo; - m_body = GetBodyForType(m_tagNo, taggedObject.GetObject()); + m_body = GetBodyForType(m_tagNo, taggedObject.GetExplicitBaseObject()); } /** @@ -202,9 +202,6 @@ namespace Org.BouncyCastle.Asn1.Cmp * </pre> * @return a basic ASN.1 object representation. */ - public override Asn1Object ToAsn1Object() - { - return new DerTaggedObject(true, m_tagNo, m_body); - } + public override Asn1Object ToAsn1Object() => new DerTaggedObject(true, m_tagNo, m_body); } } |