version 1.104, 2002/06/19 00:27:55 |
version 1.105, 2002/06/23 03:30:17 |
|
|
} |
} |
} |
} |
} |
} |
|
|
void |
void |
input_userauth_error(int type, u_int32_t seq, void *ctxt) |
input_userauth_error(int type, u_int32_t seq, void *ctxt) |
{ |
{ |
fatal("input_userauth_error: bad message during authentication: " |
fatal("input_userauth_error: bad message during authentication: " |
"type %d", type); |
"type %d", type); |
} |
} |
|
|
void |
void |
input_userauth_banner(int type, u_int32_t seq, void *ctxt) |
input_userauth_banner(int type, u_int32_t seq, void *ctxt) |
{ |
{ |
|
|
xfree(msg); |
xfree(msg); |
xfree(lang); |
xfree(lang); |
} |
} |
|
|
void |
void |
input_userauth_success(int type, u_int32_t seq, void *ctxt) |
input_userauth_success(int type, u_int32_t seq, void *ctxt) |
{ |
{ |
|
|
clear_auth_state(authctxt); |
clear_auth_state(authctxt); |
authctxt->success = 1; /* break out */ |
authctxt->success = 1; /* break out */ |
} |
} |
|
|
void |
void |
input_userauth_failure(int type, u_int32_t seq, void *ctxt) |
input_userauth_failure(int type, u_int32_t seq, void *ctxt) |
{ |
{ |
|
|
} |
} |
packet_check_eom(); |
packet_check_eom(); |
|
|
debug("input_userauth_pk_ok: pkalg %s blen %d lastkey %p hint %d", |
debug("input_userauth_pk_ok: pkalg %s blen %u lastkey %p hint %d", |
pkalg, blen, authctxt->last_key, authctxt->last_key_hint); |
pkalg, blen, authctxt->last_key, authctxt->last_key_hint); |
|
|
do { |
do { |
|
|
} |
} |
|
|
static int |
static int |
ssh_keysign( |
ssh_keysign(Key *key, u_char **sigp, u_int *lenp, |
Key *key, |
|
u_char **sigp, u_int *lenp, |
|
u_char *data, u_int datalen) |
u_char *data, u_int datalen) |
{ |
{ |
Buffer b; |
Buffer b; |
|
|
static Authmethod *current = NULL; |
static Authmethod *current = NULL; |
static char *supported = NULL; |
static char *supported = NULL; |
static char *preferred = NULL; |
static char *preferred = NULL; |
|
|
/* |
/* |
* Given the authentication method list sent by the server, return the |
* Given the authentication method list sent by the server, return the |
* next method we should try. If the server initially sends a nil list, |
* next method we should try. If the server initially sends a nil list, |