Mercurial > dropbear
diff kex.h @ 1278:0c47d97aa9d5
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 16 Mar 2016 22:53:27 +0800 |
parents | 9169e4e7cbee |
children | 750ec4ec4cbe |
line wrap: on
line diff
--- a/kex.h Tue Mar 15 23:23:31 2016 +0800 +++ b/kex.h Wed Mar 16 22:53:27 2016 +0800 @@ -29,40 +29,40 @@ #include "algo.h" #include "signkey.h" -void send_msg_kexinit(); -void recv_msg_kexinit(); -void send_msg_newkeys(); -void recv_msg_newkeys(); -void kexfirstinitialise(); +void send_msg_kexinit(void); +void recv_msg_kexinit(void); +void send_msg_newkeys(void); +void recv_msg_newkeys(void); +void kexfirstinitialise(void); -struct kex_dh_param *gen_kexdh_param(); +struct kex_dh_param *gen_kexdh_param(void); void free_kexdh_param(struct kex_dh_param *param); void kexdh_comb_key(struct kex_dh_param *param, mp_int *dh_pub_them, sign_key *hostkey); #ifdef DROPBEAR_ECDH -struct kex_ecdh_param *gen_kexecdh_param(); +struct kex_ecdh_param *gen_kexecdh_param(void); void free_kexecdh_param(struct kex_ecdh_param *param); void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them, sign_key *hostkey); #endif #ifdef DROPBEAR_CURVE25519 -struct kex_curve25519_param *gen_kexcurve25519_param(); +struct kex_curve25519_param *gen_kexcurve25519_param(void); void free_kexcurve25519_param(struct kex_curve25519_param *param); void kexcurve25519_comb_key(struct kex_curve25519_param *param, buffer *pub_them, sign_key *hostkey); #endif #ifndef DISABLE_ZLIB -int is_compress_trans(); -int is_compress_recv(); +int is_compress_trans(void); +int is_compress_recv(void); #endif -void recv_msg_kexdh_init(); /* server */ +void recv_msg_kexdh_init(void); /* server */ -void send_msg_kexdh_init(); /* client */ -void recv_msg_kexdh_reply(); /* client */ +void send_msg_kexdh_init(void); /* client */ +void recv_msg_kexdh_reply(void); /* client */ struct KEXState {