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
Этот коммит содержится в:
родитель
5db7ec356b
Коммит
5e03a95a93
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user