version 1.88, 2001/12/19 07:18:56 |
version 1.89, 2001/12/20 22:50:24 |
|
|
int *batch_flag; /* flag in option struct that disables method */ |
int *batch_flag; /* flag in option struct that disables method */ |
}; |
}; |
|
|
void input_userauth_success(int, int, void *); |
void input_userauth_success(int, int, u_int32_t, void *); |
void input_userauth_failure(int, int, void *); |
void input_userauth_failure(int, int, u_int32_t, void *); |
void input_userauth_banner(int, int, void *); |
void input_userauth_banner(int, int, u_int32_t, void *); |
void input_userauth_error(int, int, void *); |
void input_userauth_error(int, int, u_int32_t, void *); |
void input_userauth_info_req(int, int, void *); |
void input_userauth_info_req(int, int, u_int32_t, void *); |
void input_userauth_pk_ok(int, int, void *); |
void input_userauth_pk_ok(int, int, u_int32_t, void *); |
|
|
int userauth_none(Authctxt *); |
int userauth_none(Authctxt *); |
int userauth_pubkey(Authctxt *); |
int userauth_pubkey(Authctxt *); |
|
|
} |
} |
} |
} |
void |
void |
input_userauth_error(int type, int plen, void *ctxt) |
input_userauth_error(int type, int plen, 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, int plen, void *ctxt) |
input_userauth_banner(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
char *msg, *lang; |
char *msg, *lang; |
debug3("input_userauth_banner"); |
debug3("input_userauth_banner"); |
|
|
xfree(lang); |
xfree(lang); |
} |
} |
void |
void |
input_userauth_success(int type, int plen, void *ctxt) |
input_userauth_success(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
if (authctxt == NULL) |
if (authctxt == NULL) |
|
|
authctxt->success = 1; /* break out */ |
authctxt->success = 1; /* break out */ |
} |
} |
void |
void |
input_userauth_failure(int type, int plen, void *ctxt) |
input_userauth_failure(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
char *authlist = NULL; |
char *authlist = NULL; |
|
|
userauth(authctxt, authlist); |
userauth(authctxt, authlist); |
} |
} |
void |
void |
input_userauth_pk_ok(int type, int plen, void *ctxt) |
input_userauth_pk_ok(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
Key *key = NULL; |
Key *key = NULL; |
|
|
* parse INFO_REQUEST, prompt user and send INFO_RESPONSE |
* parse INFO_REQUEST, prompt user and send INFO_RESPONSE |
*/ |
*/ |
void |
void |
input_userauth_info_req(int type, int plen, void *ctxt) |
input_userauth_info_req(int type, int plen, u_int32_t seq, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
char *name, *inst, *lang, *prompt, *response; |
char *name, *inst, *lang, *prompt, *response; |