summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-02-05 07:59:02 +0100
committerWerner Koch <wk@gnupg.org>2024-02-05 08:00:20 +0100
commit214d3ffe0f91b1a4ce11a278289fedef18323bb1 (patch)
treeb920a82f8ae6b8c471e21d0f7cc7051f60f0f4f0 /sm
parentgpgsm: cleanup on error paths (diff)
downloadgnupg2-214d3ffe0f91b1a4ce11a278289fedef18323bb1.tar.xz
gnupg2-214d3ffe0f91b1a4ce11a278289fedef18323bb1.zip
gpgsm: Increase salt size in pkcs#12 parser.
* sm/minip12.c (parse_bag_encrypted_data): Need 32 bytes. -- GnuPG-bug-id: 6757
Diffstat (limited to '')
-rw-r--r--sm/minip12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/minip12.c b/sm/minip12.c
index 84a5f423c..4a1fab050 100644
--- a/sm/minip12.c
+++ b/sm/minip12.c
@@ -677,7 +677,7 @@ parse_bag_encrypted_data (struct p12_parse_ctx_s *ctx, tlv_parser_t tlv)
const unsigned char *data;
size_t datalen;
int intval;
- char salt[20];
+ char salt[32];
size_t saltlen;
char iv[16];
unsigned int iter;