diff options
Diffstat (limited to 'crypto/src/asn1/x509/CertificatePolicies.cs')
-rw-r--r-- | crypto/src/asn1/x509/CertificatePolicies.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/src/asn1/x509/CertificatePolicies.cs b/crypto/src/asn1/x509/CertificatePolicies.cs index 97214bd3f..1deef19d3 100644 --- a/crypto/src/asn1/x509/CertificatePolicies.cs +++ b/crypto/src/asn1/x509/CertificatePolicies.cs @@ -49,12 +49,7 @@ namespace Org.BouncyCastle.Asn1.X509 private CertificatePolicies(Asn1Sequence seq) { - this.policyInformation = new PolicyInformation[seq.Count]; - - for (int i = 0; i < seq.Count; ++i) - { - policyInformation[i] = PolicyInformation.GetInstance(seq[i]); - } + this.policyInformation = seq.MapElements(PolicyInformation.GetInstance); } public virtual PolicyInformation[] GetPolicyInformation() |