diff options
Diffstat (limited to 'crypto/src/asn1/cmp/PKIHeaderBuilder.cs')
-rw-r--r-- | crypto/src/asn1/cmp/PKIHeaderBuilder.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/asn1/cmp/PKIHeaderBuilder.cs b/crypto/src/asn1/cmp/PKIHeaderBuilder.cs index 6c7a2db63..914c8a8fa 100644 --- a/crypto/src/asn1/cmp/PKIHeaderBuilder.cs +++ b/crypto/src/asn1/cmp/PKIHeaderBuilder.cs @@ -176,7 +176,8 @@ namespace Org.BouncyCastle.Asn1.Cmp */ public virtual PkiHeader Build() { - Asn1EncodableVector v = new Asn1EncodableVector(pvno, sender, recipient); + Asn1EncodableVector v = new Asn1EncodableVector(12); + v.Add(pvno, sender, recipient); v.AddOptionalTagged(true, 0, messageTime); v.AddOptionalTagged(true, 1, protectionAlg); v.AddOptionalTagged(true, 2, senderKID); |