summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/auth.h b/auth.h
index 4b029f9cc..bf4787b68 100644
--- a/auth.h
+++ b/auth.h
@@ -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 @@
29typedef struct Authctxt Authctxt; 29typedef struct Authctxt Authctxt;
30struct Authctxt { 30struct 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 {
43void do_authentication(void); 45void do_authentication(void);
44void do_authentication2(void); 46void do_authentication2(void);
45 47
46void userauth_log(Authctxt *authctxt, int authenticated, char *method); 48Authctxt *authctxt_new(void);
49void auth_log(Authctxt *authctxt, int authenticated, char *method, char *info);
47void userauth_reply(Authctxt *authctxt, int authenticated); 50void userauth_reply(Authctxt *authctxt, int authenticated);
51int auth_root_allowed(void);
48 52
49int auth2_skey(Authctxt *authctxt); 53int auth2_challenge(Authctxt *authctxt, char *devs);
50 54
51int allowed_user(struct passwd * pw); 55int allowed_user(struct passwd * pw);
56
57char *get_challenge(Authctxt *authctxt, char *devs);
58int verify_response(Authctxt *authctxt, char *response);
59
52struct passwd * auth_get_user(void); 60struct passwd * auth_get_user(void);
61struct 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)