version 1.8, 2000/12/28 14:25:51 |
version 1.9, 2001/01/18 16:59:59 |
|
|
typedef struct Authctxt Authctxt; |
typedef struct Authctxt Authctxt; |
struct Authctxt { |
struct Authctxt { |
int success; |
int success; |
|
int postponed; |
int valid; |
int valid; |
int attempt; |
int attempt; |
int failures; |
int failures; |
char *user; |
char *user; |
char *service; |
char *service; |
struct passwd *pw; |
struct passwd *pw; |
|
char *style; |
}; |
}; |
|
|
void do_authentication(void); |
void do_authentication(void); |
void do_authentication2(void); |
void do_authentication2(void); |
|
|
void userauth_log(Authctxt *authctxt, int authenticated, char *method); |
Authctxt *authctxt_new(void); |
|
void auth_log(Authctxt *authctxt, int authenticated, char *method, char *info); |
void userauth_reply(Authctxt *authctxt, int authenticated); |
void userauth_reply(Authctxt *authctxt, int authenticated); |
|
int auth_root_allowed(void); |
|
|
int auth2_skey(Authctxt *authctxt); |
int auth2_challenge(Authctxt *authctxt, char *devs); |
|
|
int allowed_user(struct passwd * pw); |
int allowed_user(struct passwd * pw); |
|
|
|
char *get_challenge(Authctxt *authctxt, char *devs); |
|
int verify_response(Authctxt *authctxt, char *response); |
|
|
struct passwd * auth_get_user(void); |
struct passwd * auth_get_user(void); |
|
struct passwd * pwcopy(struct passwd *pw); |
|
|
#define AUTH_FAIL_MAX 6 |
#define AUTH_FAIL_MAX 6 |
#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |
#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |