From 3df7a9625850a6bd0f45e13471bf14096534940a Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 3 Oct 2024 11:56:48 +0200 Subject: [PATCH] Fix type in PEM+SSH decoder 9b6bf32f887899e88eda88dfb4727daaba4fd370 changed the type of the length argument of a `LTC_SSHDATA_STRING` from `ulong32` to `unsigned long` and usage of this wrong type survived multiple re-factors and code moves. This fixes #669 Signed-off-by: Steffen Jaeckel --- src/misc/pem/pem_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/pem/pem_ssh.c b/src/misc/pem/pem_ssh.c index 00ae44805..2ec386bdc 100644 --- a/src/misc/pem/pem_ssh.c +++ b/src/misc/pem/pem_ssh.c @@ -53,7 +53,7 @@ struct kdf_options { const char *name; const struct blockcipher_info *cipher; unsigned char salt[64]; - ulong32 saltlen; + unsigned long saltlen; ulong32 num_rounds; struct password pw; };