summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/auth.h b/auth.h
index 90802a5eb..8f13bdf48 100644
--- a/auth.h
+++ b/auth.h
@@ -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
134int auth_password(struct ssh *, const char *); 134int auth_password(struct ssh *, const char *);
135 135
136int hostbased_key_allowed(struct passwd *, const char *, char *, 136int hostbased_key_allowed(struct ssh *, struct passwd *,
137 struct sshkey *); 137 const char *, char *, struct sshkey *);
138int user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int, 138int user_key_allowed(struct ssh *, struct passwd *, struct sshkey *, int,
139 struct sshauthopt **); 139 struct sshauthopt **);
140int auth2_key_already_used(Authctxt *, const struct sshkey *); 140int 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"
168void remove_kbdint_device(const char *); 168void remove_kbdint_device(const char *);
169 169
170void do_authentication2(Authctxt *); 170void do_authentication2(struct ssh *);
171 171
172void auth_log(Authctxt *, int, int, const char *, const char *); 172void auth_log(struct ssh *, int, int, const char *, const char *);
173void auth_maxtries_exceeded(Authctxt *) __attribute__((noreturn)); 173void auth_maxtries_exceeded(struct ssh *) __attribute__((noreturn));
174void userauth_finish(struct ssh *, int, const char *, const char *); 174void userauth_finish(struct ssh *, int, const char *, const char *);
175int auth_root_allowed(struct ssh *, const char *); 175int auth_root_allowed(struct ssh *, const char *);
176 176
177void userauth_send_banner(const char *);
178
179char *auth2_read_banner(void); 177char *auth2_read_banner(void);
180int auth2_methods_valid(const char *, int); 178int auth2_methods_valid(const char *, int);
181int auth2_update_methods_lists(Authctxt *, const char *, const char *); 179int auth2_update_methods_lists(Authctxt *, const char *, const char *);
@@ -189,8 +187,8 @@ void auth2_challenge_stop(struct ssh *);
189int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **); 187int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **);
190int bsdauth_respond(void *, u_int, char **); 188int bsdauth_respond(void *, u_int, char **);
191 189
192int allowed_user(struct passwd *); 190int allowed_user(struct ssh *, struct passwd *);
193struct passwd * getpwnamallow(const char *user); 191struct passwd * getpwnamallow(struct ssh *, const char *user);
194 192
195char *expand_authorized_keys(const char *, struct passwd *pw); 193char *expand_authorized_keys(const char *, struct passwd *pw);
196char *authorized_principals_file(struct passwd *); 194char *authorized_principals_file(struct passwd *);
@@ -211,8 +209,8 @@ struct sshkey *get_hostkey_public_by_index(int, struct ssh *);
211struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *); 209struct sshkey *get_hostkey_public_by_type(int, int, struct ssh *);
212struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *); 210struct sshkey *get_hostkey_private_by_type(int, int, struct ssh *);
213int get_hostkey_index(struct sshkey *, int, struct ssh *); 211int get_hostkey_index(struct sshkey *, int, struct ssh *);
214int sshd_hostkey_sign(struct sshkey *, struct sshkey *, u_char **, 212int 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 */
218const struct sshauthopt *auth_options(struct ssh *); 216const 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 */
226void auth_debug_add(const char *fmt,...) 224void auth_debug_add(const char *fmt,...)
227 __attribute__((format(printf, 1, 2))); 225 __attribute__((format(printf, 1, 2)));
228void auth_debug_send(void); 226void auth_debug_send(struct ssh *);
229void auth_debug_reset(void); 227void auth_debug_reset(void);
230 228
231struct passwd *fakepw(void); 229struct passwd *fakepw(void);