version 1.77, 2001/12/19 07:18:56 |
version 1.78, 2001/12/20 22:50:24 |
|
|
|
|
/* protocol */ |
/* protocol */ |
|
|
static void input_service_request(int, int, void *); |
static void input_service_request(int, int, u_int32_t, void *); |
static void input_userauth_request(int, int, void *); |
static void input_userauth_request(int, int, u_int32_t, void *); |
static void protocol_error(int, int, void *); |
static void protocol_error(int, int, u_int32_t, void *); |
|
|
/* helper */ |
/* helper */ |
static Authmethod *authmethod_lookup(const char *); |
static Authmethod *authmethod_lookup(const char *); |
|
|
} |
} |
|
|
static void |
static void |
protocol_error(int type, int plen, void *ctxt) |
protocol_error(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
log("auth: protocol error: type %d plen %d", type, plen); |
log("auth: protocol error: type %d plen %d", type, plen); |
packet_start(SSH2_MSG_UNIMPLEMENTED); |
packet_start(SSH2_MSG_UNIMPLEMENTED); |
packet_put_int(0); |
packet_put_int(seq); |
packet_send(); |
packet_send(); |
packet_write_wait(); |
packet_write_wait(); |
} |
} |
|
|
static void |
static void |
input_service_request(int type, int plen, void *ctxt) |
input_service_request(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
u_int len; |
u_int len; |
|
|
} |
} |
|
|
static void |
static void |
input_userauth_request(int type, int plen, void *ctxt) |
input_userauth_request(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
Authmethod *m = NULL; |
Authmethod *m = NULL; |