Skip to content

Commit

Permalink
Fix type in PEM+SSH decoder
Browse files Browse the repository at this point in the history
9b6bf32 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 <s@jaeckel.eu>
  • Loading branch information
sjaeckel committed Oct 7, 2024
1 parent 24fc92b commit 3df7a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/pem/pem_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 3df7a96

Please sign in to comment.