From 192a98faa4536772b03a5cd59b6e4ab4a2ec2461 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 1 Jul 2024 20:31:14 +0700 Subject: Asn1Sequence subclass static methods --- crypto/src/asn1/esf/OtherSigningCertificate.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'crypto/src/asn1/esf/OtherSigningCertificate.cs') diff --git a/crypto/src/asn1/esf/OtherSigningCertificate.cs b/crypto/src/asn1/esf/OtherSigningCertificate.cs index 78fda76d1..f9333eb6c 100644 --- a/crypto/src/asn1/esf/OtherSigningCertificate.cs +++ b/crypto/src/asn1/esf/OtherSigningCertificate.cs @@ -54,15 +54,8 @@ namespace Org.BouncyCastle.Asn1.Esf public OtherSigningCertificate(OtherCertID[] certs, params PolicyInformation[] policies) { - if (certs == null) - throw new ArgumentNullException(nameof(certs)); - m_certs = DerSequence.FromElements(certs); - - if (policies != null) - { - m_policies = DerSequence.FromElements(policies); - } + m_policies = DerSequence.FromElementsOptional(policies); } public OtherSigningCertificate(IEnumerable certs) -- cgit 1.4.1