Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1264:a20b6af6f182 | 1278:0c47d97aa9d5 |
---|---|
27 | 27 |
28 #include "includes.h" | 28 #include "includes.h" |
29 #include "algo.h" | 29 #include "algo.h" |
30 #include "signkey.h" | 30 #include "signkey.h" |
31 | 31 |
32 void send_msg_kexinit(); | 32 void send_msg_kexinit(void); |
33 void recv_msg_kexinit(); | 33 void recv_msg_kexinit(void); |
34 void send_msg_newkeys(); | 34 void send_msg_newkeys(void); |
35 void recv_msg_newkeys(); | 35 void recv_msg_newkeys(void); |
36 void kexfirstinitialise(); | 36 void kexfirstinitialise(void); |
37 | 37 |
38 struct kex_dh_param *gen_kexdh_param(); | 38 struct kex_dh_param *gen_kexdh_param(void); |
39 void free_kexdh_param(struct kex_dh_param *param); | 39 void free_kexdh_param(struct kex_dh_param *param); |
40 void kexdh_comb_key(struct kex_dh_param *param, mp_int *dh_pub_them, | 40 void kexdh_comb_key(struct kex_dh_param *param, mp_int *dh_pub_them, |
41 sign_key *hostkey); | 41 sign_key *hostkey); |
42 | 42 |
43 #ifdef DROPBEAR_ECDH | 43 #ifdef DROPBEAR_ECDH |
44 struct kex_ecdh_param *gen_kexecdh_param(); | 44 struct kex_ecdh_param *gen_kexecdh_param(void); |
45 void free_kexecdh_param(struct kex_ecdh_param *param); | 45 void free_kexecdh_param(struct kex_ecdh_param *param); |
46 void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them, | 46 void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them, |
47 sign_key *hostkey); | 47 sign_key *hostkey); |
48 #endif | 48 #endif |
49 | 49 |
50 #ifdef DROPBEAR_CURVE25519 | 50 #ifdef DROPBEAR_CURVE25519 |
51 struct kex_curve25519_param *gen_kexcurve25519_param(); | 51 struct kex_curve25519_param *gen_kexcurve25519_param(void); |
52 void free_kexcurve25519_param(struct kex_curve25519_param *param); | 52 void free_kexcurve25519_param(struct kex_curve25519_param *param); |
53 void kexcurve25519_comb_key(struct kex_curve25519_param *param, buffer *pub_them, | 53 void kexcurve25519_comb_key(struct kex_curve25519_param *param, buffer *pub_them, |
54 sign_key *hostkey); | 54 sign_key *hostkey); |
55 #endif | 55 #endif |
56 | 56 |
57 #ifndef DISABLE_ZLIB | 57 #ifndef DISABLE_ZLIB |
58 int is_compress_trans(); | 58 int is_compress_trans(void); |
59 int is_compress_recv(); | 59 int is_compress_recv(void); |
60 #endif | 60 #endif |
61 | 61 |
62 void recv_msg_kexdh_init(); /* server */ | 62 void recv_msg_kexdh_init(void); /* server */ |
63 | 63 |
64 void send_msg_kexdh_init(); /* client */ | 64 void send_msg_kexdh_init(void); /* client */ |
65 void recv_msg_kexdh_reply(); /* client */ | 65 void recv_msg_kexdh_reply(void); /* client */ |
66 | 66 |
67 struct KEXState { | 67 struct KEXState { |
68 | 68 |
69 unsigned sentkexinit : 1; /*set when we've sent/recv kexinit packet */ | 69 unsigned sentkexinit : 1; /*set when we've sent/recv kexinit packet */ |
70 unsigned recvkexinit : 1; | 70 unsigned recvkexinit : 1; |