diff options
Diffstat (limited to 'crypto/src/asn1/crmf/CertReqMessages.cs')
-rw-r--r-- | crypto/src/asn1/crmf/CertReqMessages.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/src/asn1/crmf/CertReqMessages.cs b/crypto/src/asn1/crmf/CertReqMessages.cs index 422950b9e..d49b90fe3 100644 --- a/crypto/src/asn1/crmf/CertReqMessages.cs +++ b/crypto/src/asn1/crmf/CertReqMessages.cs @@ -32,12 +32,7 @@ namespace Org.BouncyCastle.Asn1.Crmf public virtual CertReqMsg[] ToCertReqMsgArray() { - CertReqMsg[] result = new CertReqMsg[content.Count]; - for (int i = 0; i != result.Length; ++i) - { - result[i] = CertReqMsg.GetInstance(content[i]); - } - return result; + return content.MapElements(CertReqMsg.GetInstance); } /** |