summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/auth.h b/auth.h
index 65bf7ae10..c4a8ac544 100644
--- a/auth.h
+++ b/auth.h
@@ -24,17 +24,29 @@
24#ifndef AUTH_H 24#ifndef AUTH_H
25#define AUTH_H 25#define AUTH_H
26 26
27typedef struct Authctxt Authctxt;
28struct Authctxt {
29 int success;
30 int valid;
31 int attempt;
32 char *user;
33 char *service;
34 struct passwd *pw;
35};
36
27void do_authentication(void); 37void do_authentication(void);
28void do_authentication2(void); 38void do_authentication2(void);
29 39
30struct passwd * 40void userauth_log(Authctxt *authctxt, int authenticated, char *method);
31auth_get_user(void); 41void userauth_reply(Authctxt *authctxt, int authenticated);
42
43int auth2_skey(Authctxt *authctxt);
32 44
33int allowed_user(struct passwd * pw); 45int allowed_user(struct passwd * pw);
46struct passwd * auth_get_user(void);
34 47
35#define AUTH_FAIL_MAX 6 48#define AUTH_FAIL_MAX 6
36#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) 49#define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2)
37#define AUTH_FAIL_MSG "Too many authentication failures for %.100s" 50#define AUTH_FAIL_MSG "Too many authentication failures for %.100s"
38 51
39#endif 52#endif
40