diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.46 2003/08/28 12:54:34 markus Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.49 2004/01/30 09:48:57 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -52,6 +52,7 @@ struct Authctxt { | |||
52 | int valid; /* user exists and is allowed to login */ | 52 | int valid; /* user exists and is allowed to login */ |
53 | int attempt; | 53 | int attempt; |
54 | int failures; | 54 | int failures; |
55 | int force_pwchange; | ||
55 | char *user; /* username sent by the client */ | 56 | char *user; /* username sent by the client */ |
56 | char *service; | 57 | char *service; |
57 | struct passwd *pw; /* set if 'valid' */ | 58 | struct passwd *pw; /* set if 'valid' */ |
@@ -102,9 +103,9 @@ int auth_rhosts(struct passwd *, const char *); | |||
102 | int | 103 | int |
103 | auth_rhosts2(struct passwd *, const char *, const char *, const char *); | 104 | auth_rhosts2(struct passwd *, const char *, const char *, const char *); |
104 | 105 | ||
105 | int auth_rhosts_rsa(struct passwd *, char *, Key *); | 106 | int auth_rhosts_rsa(Authctxt *, char *, Key *); |
106 | int auth_password(Authctxt *, const char *); | 107 | int auth_password(Authctxt *, const char *); |
107 | int auth_rsa(struct passwd *, BIGNUM *); | 108 | int auth_rsa(Authctxt *, BIGNUM *); |
108 | int auth_rsa_challenge_dialog(Key *); | 109 | int auth_rsa_challenge_dialog(Key *); |
109 | BIGNUM *auth_rsa_generate_challenge(Key *); | 110 | BIGNUM *auth_rsa_generate_challenge(Key *); |
110 | int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]); | 111 | int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]); |
@@ -118,15 +119,21 @@ int user_key_allowed(struct passwd *, Key *); | |||
118 | int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); | 119 | int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); |
119 | int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); | 120 | int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); |
120 | int auth_krb5_password(Authctxt *authctxt, const char *password); | 121 | int auth_krb5_password(Authctxt *authctxt, const char *password); |
121 | void krb5_cleanup_proc(void *authctxt); | 122 | void krb5_cleanup_proc(Authctxt *authctxt); |
122 | #endif /* KRB5 */ | 123 | #endif /* KRB5 */ |
123 | 124 | ||
125 | #if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE) | ||
126 | #include <shadow.h> | ||
127 | int auth_shadow_acctexpired(struct spwd *); | ||
128 | int auth_shadow_pwexpired(Authctxt *); | ||
129 | #endif | ||
130 | |||
124 | #include "auth-pam.h" | 131 | #include "auth-pam.h" |
132 | void disable_forwarding(void); | ||
125 | 133 | ||
126 | Authctxt *do_authentication(void); | 134 | void do_authentication(Authctxt *); |
127 | Authctxt *do_authentication2(void); | 135 | void do_authentication2(Authctxt *); |
128 | 136 | ||
129 | Authctxt *authctxt_new(void); | ||
130 | void auth_log(Authctxt *, int, char *, char *); | 137 | void auth_log(Authctxt *, int, char *, char *); |
131 | void userauth_finish(Authctxt *, int, char *); | 138 | void userauth_finish(Authctxt *, int, char *); |
132 | int auth_root_allowed(char *); | 139 | int auth_root_allowed(char *); |
@@ -149,8 +156,6 @@ char *get_challenge(Authctxt *); | |||
149 | int verify_response(Authctxt *, const char *); | 156 | int verify_response(Authctxt *, const char *); |
150 | void abandon_challenge_response(Authctxt *); | 157 | void abandon_challenge_response(Authctxt *); |
151 | 158 | ||
152 | struct passwd * auth_get_user(void); | ||
153 | |||
154 | char *expand_filename(const char *, struct passwd *); | 159 | char *expand_filename(const char *, struct passwd *); |
155 | char *authorized_keys_file(struct passwd *); | 160 | char *authorized_keys_file(struct passwd *); |
156 | char *authorized_keys_file2(struct passwd *); | 161 | char *authorized_keys_file2(struct passwd *); |