version 1.30, 2016/09/12 01:22:38 |
version 1.31, 2017/05/30 14:23:52 |
|
|
#include "sshbuf.h" |
#include "sshbuf.h" |
#include "misc.h" |
#include "misc.h" |
|
|
static int input_kex_dh_gex_request(int, u_int32_t, void *); |
static int input_kex_dh_gex_request(int, u_int32_t, struct ssh *); |
static int input_kex_dh_gex_init(int, u_int32_t, void *); |
static int input_kex_dh_gex_init(int, u_int32_t, struct ssh *); |
|
|
int |
int |
kexgex_server(struct ssh *ssh) |
kexgex_server(struct ssh *ssh) |
|
|
} |
} |
|
|
static int |
static int |
input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt) |
input_kex_dh_gex_request(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; |
u_int min = 0, max = 0, nbits = 0; |
u_int min = 0, max = 0, nbits = 0; |
|
|
} |
} |
|
|
static int |
static int |
input_kex_dh_gex_init(int type, u_int32_t seq, void *ctxt) |
input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
struct kex *kex = ssh->kex; |
struct kex *kex = ssh->kex; |
BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; |
BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; |
struct sshkey *server_host_public, *server_host_private; |
struct sshkey *server_host_public, *server_host_private; |