diff options
Diffstat (limited to 'crypto/src/asn1/crmf/PKIArchiveOptions.cs')
-rw-r--r-- | crypto/src/asn1/crmf/PKIArchiveOptions.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/PKIArchiveOptions.cs b/crypto/src/asn1/crmf/PKIArchiveOptions.cs index 7f756b39a..a702d6dc2 100644 --- a/crypto/src/asn1/crmf/PKIArchiveOptions.cs +++ b/crypto/src/asn1/crmf/PKIArchiveOptions.cs @@ -35,14 +35,17 @@ namespace Org.BouncyCastle.Asn1.Crmf { if (element == null) throw new ArgumentNullException(nameof(element)); + if (element is PkiArchiveOptions pkiArchiveOptions) return pkiArchiveOptions; + if (element is Asn1TaggedObject taggedObject) { Asn1Encodable baseObject = GetOptionalBaseObject(taggedObject); if (baseObject != null) return new PkiArchiveOptions(taggedObject.TagNo, baseObject); } + return null; } |