version 1.5, 2000/09/07 20:27:49 |
version 1.6, 2000/10/11 20:14:38 |
|
|
#ifndef AUTH_H |
#ifndef AUTH_H |
#define AUTH_H |
#define AUTH_H |
|
|
|
typedef struct Authctxt Authctxt; |
|
struct Authctxt { |
|
int success; |
|
int valid; |
|
int attempt; |
|
char *user; |
|
char *service; |
|
struct passwd *pw; |
|
}; |
|
|
void do_authentication(void); |
void do_authentication(void); |
void do_authentication2(void); |
void do_authentication2(void); |
|
|
struct passwd * |
void userauth_log(Authctxt *authctxt, int authenticated, char *method); |
auth_get_user(void); |
void userauth_reply(Authctxt *authctxt, int authenticated); |
|
|
int allowed_user(struct passwd * pw); |
int auth2_skey(Authctxt *authctxt); |
|
|
|
int allowed_user(struct passwd * pw); |
|
struct passwd * auth_get_user(void); |
|
|
#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) |
#define AUTH_FAIL_MSG "Too many authentication failures for %.100s" |
#define AUTH_FAIL_MSG "Too many authentication failures for %.100s" |
|
|
#endif |
#endif |
|
|