1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

hostkey.c: Fix 'unsigned int'/'uint32_t' mismatch (#461)

File: hostkey.c

Notes: 
These types are the same size so most compilers are fine with it, but CodeWarrior (on classic MacOS) throws an ‘illegal implicit conversion’ error

Credit: Brendan Shanks
This commit is contained in:
Brendan Shanks
2020-04-06 10:13:54 -07:00
committed by GitHub
parent 159d4c8138
commit bfcac7ccda

View File

@@ -647,7 +647,7 @@ hostkey_method_ssh_ecdsa_sig_verify(LIBSSH2_SESSION * session,
{ {
unsigned char *r, *s, *name; unsigned char *r, *s, *name;
size_t r_len, s_len, name_len; size_t r_len, s_len, name_len;
unsigned int len; uint32_t len;
struct string_buf buf; struct string_buf buf;
libssh2_ecdsa_ctx *ctx = (libssh2_ecdsa_ctx *) (*abstract); libssh2_ecdsa_ctx *ctx = (libssh2_ecdsa_ctx *) (*abstract);