version 1.138, 2017/05/30 14:18:15 |
version 1.139, 2017/05/30 14:23:52 |
|
|
|
|
/* protocol */ |
/* protocol */ |
|
|
static int input_service_request(int, u_int32_t, void *); |
static int input_service_request(int, u_int32_t, struct ssh *); |
static int input_userauth_request(int, u_int32_t, void *); |
static int input_userauth_request(int, u_int32_t, struct ssh *); |
|
|
/* helper */ |
/* helper */ |
static Authmethod *authmethod_lookup(Authctxt *, const char *); |
static Authmethod *authmethod_lookup(Authctxt *, const char *); |
|
|
|
|
/*ARGSUSED*/ |
/*ARGSUSED*/ |
static int |
static int |
input_service_request(int type, u_int32_t seq, void *ctxt) |
input_service_request(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
Authctxt *authctxt = ssh->authctxt; |
Authctxt *authctxt = ssh->authctxt; |
u_int len; |
u_int len; |
int acceptit = 0; |
int acceptit = 0; |
|
|
|
|
/*ARGSUSED*/ |
/*ARGSUSED*/ |
static int |
static int |
input_userauth_request(int type, u_int32_t seq, void *ctxt) |
input_userauth_request(int type, u_int32_t seq, struct ssh *ssh) |
{ |
{ |
struct ssh *ssh = ctxt; |
|
Authctxt *authctxt = ssh->authctxt; |
Authctxt *authctxt = ssh->authctxt; |
Authmethod *m = NULL; |
Authmethod *m = NULL; |
char *user, *service, *method, *style = NULL; |
char *user, *service, *method, *style = NULL; |