diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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 *); | |||
120 | int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); | 122 | int hostbased_key_allowed(struct passwd *, const char *, char *, Key *); |
121 | int user_key_allowed(struct passwd *, Key *); | 123 | int user_key_allowed(struct passwd *, Key *); |
122 | 124 | ||
125 | struct stat; | ||
126 | int auth_secure_path(const char *, struct stat *, const char *, uid_t, | ||
127 | char *, size_t); | ||
128 | |||
123 | #ifdef KRB5 | 129 | #ifdef KRB5 |
124 | int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); | 130 | int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); |
125 | int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); | 131 | int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); |
@@ -142,12 +148,17 @@ void disable_forwarding(void); | |||
142 | void do_authentication(Authctxt *); | 148 | void do_authentication(Authctxt *); |
143 | void do_authentication2(Authctxt *); | 149 | void do_authentication2(Authctxt *); |
144 | 150 | ||
145 | void auth_log(Authctxt *, int, char *, char *); | 151 | void auth_log(Authctxt *, int, int, const char *, const char *, |
146 | void userauth_finish(Authctxt *, int, char *); | 152 | const char *); |
153 | void userauth_finish(Authctxt *, int, const char *, const char *); | ||
154 | int auth_root_allowed(const char *); | ||
155 | |||
147 | void userauth_send_banner(const char *); | 156 | void userauth_send_banner(const char *); |
148 | int auth_root_allowed(char *); | ||
149 | 157 | ||
150 | char *auth2_read_banner(void); | 158 | char *auth2_read_banner(void); |
159 | int auth2_methods_valid(const char *, int); | ||
160 | int auth2_update_methods_lists(Authctxt *, const char *); | ||
161 | int auth2_setup_methods_lists(Authctxt *); | ||
151 | 162 | ||
152 | void privsep_challenge_enable(void); | 163 | void privsep_challenge_enable(void); |
153 | 164 | ||