diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-05-31 11:35:16 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-05-31 11:35:16 +0000 |
commit | 2f26707206b0bc229f968f77e14258ae16bc0d26 (patch) | |
tree | 24eae060ab281e7118cc2e3451dd652029882ee3 /usr.bin/ssh/auth.h | |
parent | 8b48465ebb506f47a600e5af2baf6b377326ac09 (diff) |
move Authmethod definitons to per-method file.
Diffstat (limited to 'usr.bin/ssh/auth.h')
-rw-r--r-- | usr.bin/ssh/auth.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ssh/auth.h b/usr.bin/ssh/auth.h index cf2f1fe2c7f..ea5354c2239 100644 --- a/usr.bin/ssh/auth.h +++ b/usr.bin/ssh/auth.h @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.h,v 1.38 2002/05/25 18:51:07 markus Exp $ */ +/* $OpenBSD: auth.h,v 1.39 2002/05/31 11:35:15 markus Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. @@ -43,6 +43,7 @@ #endif typedef struct Authctxt Authctxt; +typedef struct Authmethod Authmethod; typedef struct KbdintDevice KbdintDevice; struct Authctxt { @@ -71,6 +72,12 @@ struct Authctxt { #endif }; +struct Authmethod { + char *name; + int (*userauth)(Authctxt *authctxt); + int *enabled; +}; + /* * Keyboard interactive device: * init_ctx returns: non NULL upon success @@ -100,13 +107,6 @@ BIGNUM *auth_rsa_generate_challenge(Key *); int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]); int auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **); -/* ssh2 methods */ -int userauth_none(Authctxt *); -int userauth_passwd(Authctxt *); -int userauth_pubkey(Authctxt *); -int userauth_hostbased(Authctxt *); -int userauth_kbdint(Authctxt *); - int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *); int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); int user_key_allowed(struct passwd *, Key *); |