diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.96 2018/04/10 00:10:49 djm Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.99 2019/01/19 21:43:56 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -133,8 +133,8 @@ auth_rhosts2(struct passwd *, const char *, const char *, const char *); | |||
133 | 133 | ||
134 | int auth_password(struct ssh *, const char *); | 134 | int auth_password(struct ssh *, const char *); |
135 | 135 | ||
136 | int hostbased_key_allowed(struct passwd *, const char *, char *, | 136 | int hostbased_key_allowed(struct ssh *, struct passwd *, |
137 | struct sshkey *); | 137 | const char *, char *, struct sshkey *); |
138 | int user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int, | 138 | int user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int, |
139 | struct sshauthopt **); | 139 | struct sshauthopt **); |
140 | int auth2_key_already_used(Authctxt *, const struct sshkey *); | 140 | int auth2_key_already_used(Authctxt *, const struct sshkey *); |
@@ -167,15 +167,13 @@ int auth_shadow_pwexpired(Authctxt *); | |||
167 | #include "audit.h" | 167 | #include "audit.h" |
168 | void remove_kbdint_device(const char *); | 168 | void remove_kbdint_device(const char *); |
169 | 169 | ||
170 | void do_authentication2(Authctxt *); | 170 | void do_authentication2(struct ssh *); |
171 | 171 | ||
172 | void auth_log(Authctxt *, int, int, const char *, const char *); | 172 | void auth_log(struct ssh *, int, int, const char *, const char *); |
173 | void auth_maxtries_exceeded(Authctxt *) __attribute__((noreturn)); | 173 | void auth_maxtries_exceeded(struct ssh *) __attribute__((noreturn)); |
174 | void userauth_finish(struct ssh *, int, const char *, const char *); | 174 | void userauth_finish(struct ssh *, int, const char *, const char *); |
175 | int auth_root_allowed(struct ssh *, const char *); | 175 | int auth_root_allowed(struct ssh *, const char *); |
176 | 176 | ||
177 | void userauth_send_banner(const char *); | ||
178 | |||
179 | char *auth2_read_banner(void); | 177 | char *auth2_read_banner(void); |
180 | int auth2_methods_valid(const char *, int); | 178 | int auth2_methods_valid(const char *, int); |
181 | int auth2_update_methods_lists(Authctxt *, const char *, const char *); | 179 | int auth2_update_methods_lists(Authctxt *, const char *, const char *); |
@@ -189,8 +187,8 @@ void auth2_challenge_stop(struct ssh *); | |||
189 | int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **); | 187 | int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **); |
190 | int bsdauth_respond(void *, u_int, char **); | 188 | int bsdauth_respond(void *, u_int, char **); |
191 | 189 | ||
192 | int allowed_user(struct passwd *); | 190 | int allowed_user(struct ssh *, struct passwd *); |
193 | struct passwd * getpwnamallow(const char *user); | 191 | struct passwd * getpwnamallow(struct ssh *, const char *user); |
194 | 192 | ||
195 | char *expand_authorized_keys(const char *, struct passwd *pw); | 193 | char *expand_authorized_keys(const char *, struct passwd *pw); |
196 | char *authorized_principals_file(struct passwd *); | 194 | char *authorized_principals_file(struct passwd *); |
@@ -211,8 +209,8 @@ struct sshkey *get_hostkey_public_by_index(int, struct ssh *); | |||
211 | struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *); | 209 | struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *); |
212 | struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *); | 210 | struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *); |
213 | int get_hostkey_index(struct sshkey *, int, struct ssh *); | 211 | int get_hostkey_index(struct sshkey *, int, struct ssh *); |
214 | int sshd_hostkey_sign(struct sshkey *, struct sshkey *, u_char **, | 212 | int sshd_hostkey_sign(struct ssh *, struct sshkey *, struct sshkey *, |
215 | size_t *, const u_char *, size_t, const char *, u_int); | 213 | u_char **, size_t *, const u_char *, size_t, const char *); |
216 | 214 | ||
217 | /* Key / cert options linkage to auth layer */ | 215 | /* Key / cert options linkage to auth layer */ |
218 | const struct sshauthopt *auth_options(struct ssh *); | 216 | const struct sshauthopt *auth_options(struct ssh *); |
@@ -225,7 +223,7 @@ void auth_log_authopts(const char *, const struct sshauthopt *, int); | |||
225 | /* debug messages during authentication */ | 223 | /* debug messages during authentication */ |
226 | void auth_debug_add(const char *fmt,...) | 224 | void auth_debug_add(const char *fmt,...) |
227 | __attribute__((format(printf, 1, 2))); | 225 | __attribute__((format(printf, 1, 2))); |
228 | void auth_debug_send(void); | 226 | void auth_debug_send(struct ssh *); |
229 | void auth_debug_reset(void); | 227 | void auth_debug_reset(void); |
230 | 228 | ||
231 | struct passwd *fakepw(void); | 229 | struct passwd *fakepw(void); |