version 1.48, 2001/03/21 11:43:44 |
version 1.49, 2001/03/28 22:43:31 |
|
|
|
|
/* auth */ |
/* auth */ |
void userauth_banner(void); |
void userauth_banner(void); |
|
void userauth_reply(Authctxt *authctxt, int authenticated); |
int userauth_none(Authctxt *authctxt); |
int userauth_none(Authctxt *authctxt); |
int userauth_passwd(Authctxt *authctxt); |
int userauth_passwd(Authctxt *authctxt); |
int userauth_pubkey(Authctxt *authctxt); |
int userauth_pubkey(Authctxt *authctxt); |
|
|
debug2("input_userauth_request: try method %s", method); |
debug2("input_userauth_request: try method %s", method); |
authenticated = m->userauth(authctxt); |
authenticated = m->userauth(authctxt); |
} |
} |
|
userauth_finish(authctxt, authenticated, method); |
|
|
|
xfree(service); |
|
xfree(user); |
|
xfree(method); |
|
} |
|
|
|
void |
|
userauth_finish(Authctxt *authctxt, int authenticated, char *method) |
|
{ |
if (!authctxt->valid && authenticated) |
if (!authctxt->valid && authenticated) |
fatal("INTERNAL ERROR: authenticated invalid user %s", |
fatal("INTERNAL ERROR: authenticated invalid user %s", |
authctxt->user); |
authctxt->user); |
|
|
|
|
if (!authctxt->postponed) |
if (!authctxt->postponed) |
userauth_reply(authctxt, authenticated); |
userauth_reply(authctxt, authenticated); |
|
|
xfree(service); |
|
xfree(user); |
|
xfree(method); |
|
} |
} |
|
|
void |
void |