1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

fixed type warnings (#309)

This commit is contained in:
Will Cosgrove
2019-03-07 11:17:06 -08:00
committed by GitHub
parent bc00a288a8
commit e1d9bd49e4
3 changed files with 3 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ _libssh2_ed25519_new_private(libssh2_ed25519_ctx **ed_ctx,
int
_libssh2_ed25519_new_public(libssh2_ed25519_ctx **ed_ctx,
LIBSSH2_SESSION *session,
const char *raw_pub_key, const uint8_t key_len);
const unsigned char *raw_pub_key, const uint8_t key_len);
int
_libssh2_ed25519_sign(libssh2_ed25519_ctx *ctx, LIBSSH2_SESSION *session,

View File

@@ -795,7 +795,7 @@ hostkey_method_ssh_ed25519_init(LIBSSH2_SESSION * session,
size_t hostkey_data_len,
void **abstract)
{
const char *s;
const unsigned char *s;
unsigned long len, key_len;
libssh2_ed25519_ctx *ctx = NULL;

View File

@@ -1778,7 +1778,7 @@ _libssh2_ed25519_new_private_frommemory(libssh2_ed25519_ctx ** ed_ctx,
int
_libssh2_ed25519_new_public(libssh2_ed25519_ctx ** ed_ctx,
LIBSSH2_SESSION * session,
const char *raw_pub_key, const uint8_t key_len)
const unsigned char *raw_pub_key, const uint8_t key_len)
{
libssh2_ed25519_ctx *ctx = NULL;
EVP_PKEY *public_key = NULL;