diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-11 23:36:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-11 23:36:32 +0700 |
commit | 8ed01d5f6322defa0b3dbb1e149b05736f54f832 (patch) | |
tree | fde48f03f14134ecd9b9ece814309bda07e85371 /crypto/src/asn1/cms/SCVPReqRes.cs | |
parent | Obsolete unused segmentLimit (diff) | |
download | BouncyCastle.NET-ed25519-8ed01d5f6322defa0b3dbb1e149b05736f54f832.tar.xz |
Refactoring in Asn1 classes
Diffstat (limited to 'crypto/src/asn1/cms/SCVPReqRes.cs')
-rw-r--r-- | crypto/src/asn1/cms/SCVPReqRes.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/cms/SCVPReqRes.cs b/crypto/src/asn1/cms/SCVPReqRes.cs index 6544c852b..8b5f858a6 100644 --- a/crypto/src/asn1/cms/SCVPReqRes.cs +++ b/crypto/src/asn1/cms/SCVPReqRes.cs @@ -19,9 +19,9 @@ namespace Org.BouncyCastle.Asn1.Cms private ScvpReqRes(Asn1Sequence seq) { - if (seq[0] is Asn1TaggedObject) + if (seq[0] is Asn1TaggedObject taggedObject) { - this.request = ContentInfo.GetInstance(Asn1TaggedObject.GetInstance(seq[0]), true); + this.request = ContentInfo.GetInstance(taggedObject, true); this.response = ContentInfo.GetInstance(seq[1]); } else |