1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

Fix compiler warnings.

Aris please check if ssh_crypto_init, ssh_crypto_finalize and
pubkey_get_hash could be removed.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@213 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-02-02 15:45:48 +00:00
parent 5db7ec356b
commit 5e03a95a93
3 changed files with 5 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ void *string_data(STRING *str);
void string_free(STRING *str); void string_free(STRING *str);
/* deprecated */ /* deprecated */
void ssh_crypto_init(); void ssh_crypto_init(void);
/* useful for debug */ /* useful for debug */
void ssh_print_hexa(char *descr, const unsigned char *what, int len); void ssh_print_hexa(char *descr, const unsigned char *what, int len);

View File

@@ -499,7 +499,7 @@ void ssh_print_bignum(char *which,bignum num);
void dh_generate_x(SSH_SESSION *session); void dh_generate_x(SSH_SESSION *session);
void dh_generate_y(SSH_SESSION *session); void dh_generate_y(SSH_SESSION *session);
void dh_generate_f(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_e(SSH_SESSION *session);
STRING *dh_get_f(SSH_SESSION *session); STRING *dh_get_f(SSH_SESSION *session);
void dh_import_f(SSH_SESSION *session,STRING *f_string); void dh_import_f(SSH_SESSION *session,STRING *f_string);

View File

@@ -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 */ /* 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){ if(ssh_crypto_inited == 0){
#ifdef HAVE_LIBGCRYPT #ifdef HAVE_LIBGCRYPT
gcry_check_version(NULL); 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){ if(ssh_crypto_inited){
bignum_free(g); bignum_free(g);
bignum_free(p); 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() /** \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); return ssh_get_pubkey_hash(session,hash);
} }