diff options
Diffstat (limited to 'crypto/src/asn1/x509/CRLDistPoint.cs')
-rw-r--r-- | crypto/src/asn1/x509/CRLDistPoint.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/crypto/src/asn1/x509/CRLDistPoint.cs b/crypto/src/asn1/x509/CRLDistPoint.cs index 518bf3f00..889769f29 100644 --- a/crypto/src/asn1/x509/CRLDistPoint.cs +++ b/crypto/src/asn1/x509/CRLDistPoint.cs @@ -41,24 +41,17 @@ namespace Org.BouncyCastle.Asn1.X509 seq = new DerSequence(points); } - /** + /** * Return the distribution points making up the sequence. * * @return DistributionPoint[] */ public DistributionPoint[] GetDistributionPoints() { - DistributionPoint[] dp = new DistributionPoint[seq.Count]; - - for (int i = 0; i != seq.Count; ++i) - { - dp[i] = DistributionPoint.GetInstance(seq[i]); - } - - return dp; + return seq.MapElements(DistributionPoint.GetInstance); } - /** + /** * Produce an object suitable for an Asn1OutputStream. * <pre> * CrlDistPoint ::= Sequence SIZE {1..MAX} OF DistributionPoint |