version 1.132, 2017/04/30 23:10:43 |
version 1.133, 2017/05/30 14:23:52 |
|
|
|
|
/* prototype */ |
/* prototype */ |
static int kex_choose_conf(struct ssh *); |
static int kex_choose_conf(struct ssh *); |
static int kex_input_newkeys(int, u_int32_t, void *); |
static int kex_input_newkeys(int, u_int32_t, struct ssh *); |
|
|
static const char *proposal_names[PROPOSAL_MAX] = { |
static const char *proposal_names[PROPOSAL_MAX] = { |
"KEX algorithms", |
"KEX algorithms", |
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |
kex_protocol_error(int type, u_int32_t seq, void *ctxt) |
kex_protocol_error(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = active_state; /* XXX */ |
|
int r; |
int r; |
|
|
error("kex protocol error: type %d seq %u", type, seq); |
error("kex protocol error: type %d seq %u", type, seq); |
|
|
} |
} |
|
|
int |
int |
kex_input_ext_info(int type, u_int32_t seq, void *ctxt) |
kex_input_ext_info(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
struct kex *kex = ssh->kex; |
struct kex *kex = ssh->kex; |
u_int32_t i, ninfo; |
u_int32_t i, ninfo; |
char *name, *val, *found; |
char *name, *val, *found; |
|
|
} |
} |
|
|
static int |
static int |
kex_input_newkeys(int type, u_int32_t seq, void *ctxt) |
kex_input_newkeys(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
struct kex *kex = ssh->kex; |
struct kex *kex = ssh->kex; |
int r; |
int r; |
|
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
kex_input_kexinit(int type, u_int32_t seq, void *ctxt) |
kex_input_kexinit(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
struct kex *kex = ssh->kex; |
struct kex *kex = ssh->kex; |
const u_char *ptr; |
const u_char *ptr; |
u_int i; |
u_int i; |