summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-06 20:52:37 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-06 20:52:37 +0000
commit511bb24c5b4c11c2930464ff02bff9f4577566cb (patch)
tree457779aeeaf518dbb46cddc5665a71e51886fd65 /auth.h
parentcec2ea8d020bc2fe0ee6de1a6cf0230b529ce05c (diff)
- markus@cvs.openbsd.org 2002/05/31 11:35:15
[auth.h auth2.c] move Authmethod definitons to per-method file. NOTE: The rest of this patch is with the import of the auth2-*.c files.
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/auth.h b/auth.h
index 59646ebe4..d98547d02 100644
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.h,v 1.38 2002/05/25 18:51:07 markus Exp $ */ 1/* $OpenBSD: auth.h,v 1.39 2002/05/31 11:35:15 markus Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -43,6 +43,7 @@
43#endif 43#endif
44 44
45typedef struct Authctxt Authctxt; 45typedef struct Authctxt Authctxt;
46typedef struct Authmethod Authmethod;
46typedef struct KbdintDevice KbdintDevice; 47typedef struct KbdintDevice KbdintDevice;
47 48
48struct Authctxt { 49struct Authctxt {
@@ -71,6 +72,12 @@ struct Authctxt {
71#endif 72#endif
72}; 73};
73 74
75struct Authmethod {
76 char *name;
77 int (*userauth)(Authctxt *authctxt);
78 int *enabled;
79};
80
74/* 81/*
75 * Keyboard interactive device: 82 * Keyboard interactive device:
76 * init_ctx returns: non NULL upon success 83 * init_ctx returns: non NULL upon success
@@ -100,13 +107,6 @@ BIGNUM *auth_rsa_generate_challenge(Key *);
100int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]); 107int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]);
101int auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **); 108int auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **);
102 109
103/* ssh2 methods */
104int userauth_none(Authctxt *);
105int userauth_passwd(Authctxt *);
106int userauth_pubkey(Authctxt *);
107int userauth_hostbased(Authctxt *);
108int userauth_kbdint(Authctxt *);
109
110int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *); 110int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *);
111int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); 111int hostbased_key_allowed(struct passwd *, const char *, char *, Key *);
112int user_key_allowed(struct passwd *, Key *); 112int user_key_allowed(struct passwd *, Key *);