diff options
-rw-r--r-- | include/libssh/libssh.h | 2 | ||||
-rw-r--r-- | include/libssh/priv.h | 2 | ||||
-rw-r--r-- | libssh/dh.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 9bde42e5..de90833c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -198,7 +198,7 @@ void *string_data(STRING *str); void string_free(STRING *str); /* deprecated */ -void ssh_crypto_init(); +void ssh_crypto_init(void); /* useful for debug */ void ssh_print_hexa(char *descr, const unsigned char *what, int len); diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 436c8830..70f94241 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -499,7 +499,7 @@ void ssh_print_bignum(char *which,bignum num); void dh_generate_x(SSH_SESSION *session); void dh_generate_y(SSH_SESSION *session); void dh_generate_f(SSH_SESSION *session); -void ssh_crypto_finalize(); +void ssh_crypto_finalize(void); STRING *dh_get_e(SSH_SESSION *session); STRING *dh_get_f(SSH_SESSION *session); void dh_import_f(SSH_SESSION *session,STRING *f_string); diff --git a/libssh/dh.c b/libssh/dh.c index e248433d..67e25ecd 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -84,7 +84,7 @@ int ssh_get_random(void *where, int len, int strong){ /* it inits the values g and p which are used for DH key agreement */ -void ssh_crypto_init(){ +void ssh_crypto_init(void){ if(ssh_crypto_inited == 0){ #ifdef HAVE_LIBGCRYPT gcry_check_version(NULL); @@ -107,7 +107,7 @@ void ssh_crypto_init(){ } } -void ssh_crypto_finalize(){ +void ssh_crypto_finalize(void){ if(ssh_crypto_inited){ bignum_free(g); bignum_free(p); @@ -486,7 +486,7 @@ int ssh_get_pubkey_hash(SSH_SESSION *session,unsigned char hash[MD5_DIGEST_LEN]) /** \deprecated same as ssh_get_pubkey_hash() */ -int pubkey_get_hash(SSH_SESSION *session, unsigned char hash[MD5_DIGEST_LEN]){ +static int pubkey_get_hash(SSH_SESSION *session, unsigned char hash[MD5_DIGEST_LEN]){ return ssh_get_pubkey_hash(session,hash); } |