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:
@@ -191,7 +191,7 @@ _libssh2_ed25519_new_private(libssh2_ed25519_ctx **ed_ctx,
|
|||||||
int
|
int
|
||||||
_libssh2_ed25519_new_public(libssh2_ed25519_ctx **ed_ctx,
|
_libssh2_ed25519_new_public(libssh2_ed25519_ctx **ed_ctx,
|
||||||
LIBSSH2_SESSION *session,
|
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
|
int
|
||||||
_libssh2_ed25519_sign(libssh2_ed25519_ctx *ctx, LIBSSH2_SESSION *session,
|
_libssh2_ed25519_sign(libssh2_ed25519_ctx *ctx, LIBSSH2_SESSION *session,
|
||||||
|
|||||||
@@ -795,7 +795,7 @@ hostkey_method_ssh_ed25519_init(LIBSSH2_SESSION * session,
|
|||||||
size_t hostkey_data_len,
|
size_t hostkey_data_len,
|
||||||
void **abstract)
|
void **abstract)
|
||||||
{
|
{
|
||||||
const char *s;
|
const unsigned char *s;
|
||||||
unsigned long len, key_len;
|
unsigned long len, key_len;
|
||||||
libssh2_ed25519_ctx *ctx = NULL;
|
libssh2_ed25519_ctx *ctx = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -1778,7 +1778,7 @@ _libssh2_ed25519_new_private_frommemory(libssh2_ed25519_ctx ** ed_ctx,
|
|||||||
int
|
int
|
||||||
_libssh2_ed25519_new_public(libssh2_ed25519_ctx ** ed_ctx,
|
_libssh2_ed25519_new_public(libssh2_ed25519_ctx ** ed_ctx,
|
||||||
LIBSSH2_SESSION * session,
|
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;
|
libssh2_ed25519_ctx *ctx = NULL;
|
||||||
EVP_PKEY *public_key = NULL;
|
EVP_PKEY *public_key = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user