summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/auth.h b/auth.h
index 0d786c4d5..c6fe84722 100644
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.h,v 1.69 2011/05/23 03:30:07 djm Exp $ */ 1/* $OpenBSD: auth.h,v 1.72 2012/12/02 20:34:09 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -64,6 +64,8 @@ struct Authctxt {
64#ifdef BSD_AUTH 64#ifdef BSD_AUTH
65 auth_session_t *as; 65 auth_session_t *as;
66#endif 66#endif
67 char **auth_methods; /* modified from server config */
68 u_int num_auth_methods;
67#ifdef KRB5 69#ifdef KRB5
68 krb5_context krb5_ctx; 70 krb5_context krb5_ctx;
69 krb5_ccache krb5_fwd_ccache; 71 krb5_ccache krb5_fwd_ccache;
@@ -120,6 +122,10 @@ int auth_rhosts_rsa_key_allowed(struct passwd *, char *, char *, Key *);
120int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); 122int hostbased_key_allowed(struct passwd *, const char *, char *, Key *);
121int user_key_allowed(struct passwd *, Key *); 123int user_key_allowed(struct passwd *, Key *);
122 124
125struct stat;
126int auth_secure_path(const char *, struct stat *, const char *, uid_t,
127 char *, size_t);
128
123#ifdef KRB5 129#ifdef KRB5
124int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); 130int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *);
125int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); 131int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt);
@@ -142,12 +148,17 @@ void disable_forwarding(void);
142void do_authentication(Authctxt *); 148void do_authentication(Authctxt *);
143void do_authentication2(Authctxt *); 149void do_authentication2(Authctxt *);
144 150
145void auth_log(Authctxt *, int, char *, char *); 151void auth_log(Authctxt *, int, int, const char *, const char *,
146void userauth_finish(Authctxt *, int, char *); 152 const char *);
153void userauth_finish(Authctxt *, int, const char *, const char *);
154int auth_root_allowed(const char *);
155
147void userauth_send_banner(const char *); 156void userauth_send_banner(const char *);
148int auth_root_allowed(char *);
149 157
150char *auth2_read_banner(void); 158char *auth2_read_banner(void);
159int auth2_methods_valid(const char *, int);
160int auth2_update_methods_lists(Authctxt *, const char *);
161int auth2_setup_methods_lists(Authctxt *);
151 162
152void privsep_challenge_enable(void); 163void privsep_challenge_enable(void);
153 164