diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -21,7 +21,7 @@ | |||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | * | 23 | * |
24 | * $OpenBSD: auth.h,v 1.8 2000/12/28 14:25:51 markus Exp $ | 24 | * $OpenBSD: auth.h,v 1.9 2001/01/18 16:59:59 markus Exp $ |
25 | */ | 25 | */ |
26 | #ifndef AUTH_H | 26 | #ifndef AUTH_H |
27 | #define AUTH_H | 27 | #define AUTH_H |
@@ -29,12 +29,14 @@ | |||
29 | typedef struct Authctxt Authctxt; | 29 | typedef struct Authctxt Authctxt; |
30 | struct Authctxt { | 30 | struct Authctxt { |
31 | int success; | 31 | int success; |
32 | int postponed; | ||
32 | int valid; | 33 | int valid; |
33 | int attempt; | 34 | int attempt; |
34 | int failures; | 35 | int failures; |
35 | char *user; | 36 | char *user; |
36 | char *service; | 37 | char *service; |
37 | struct passwd *pw; | 38 | struct passwd *pw; |
39 | char *style; | ||
38 | }; | 40 | }; |
39 | 41 | ||
40 | #include "auth-pam.h" | 42 | #include "auth-pam.h" |
@@ -43,13 +45,20 @@ struct Authctxt { | |||
43 | void do_authentication(void); | 45 | void do_authentication(void); |
44 | void do_authentication2(void); | 46 | void do_authentication2(void); |
45 | 47 | ||
46 | void userauth_log(Authctxt *authctxt, int authenticated, char *method); | 48 | Authctxt *authctxt_new(void); |
49 | void auth_log(Authctxt *authctxt, int authenticated, char *method, char *info); | ||
47 | void userauth_reply(Authctxt *authctxt, int authenticated); | 50 | void userauth_reply(Authctxt *authctxt, int authenticated); |
51 | int auth_root_allowed(void); | ||
48 | 52 | ||
49 | int auth2_skey(Authctxt *authctxt); | 53 | int auth2_challenge(Authctxt *authctxt, char *devs); |
50 | 54 | ||
51 | int allowed_user(struct passwd * pw); | 55 | int allowed_user(struct passwd * pw); |
56 | |||
57 | char *get_challenge(Authctxt *authctxt, char *devs); | ||
58 | int verify_response(Authctxt *authctxt, char *response); | ||
59 | |||
52 | struct passwd * auth_get_user(void); | 60 | struct passwd * auth_get_user(void); |
61 | struct passwd * pwcopy(struct passwd *pw); | ||
53 | 62 | ||
54 | #define AUTH_FAIL_MAX 6 | 63 | #define AUTH_FAIL_MAX 6 |
55 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) | 64 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |