diff options
author | markus@openbsd.org <markus@openbsd.org> | 2017-05-30 14:29:59 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-05-31 10:50:33 +1000 |
commit | eb272ea4099fd6157846f15c129ac5727933aa69 (patch) | |
tree | 7c721828dc6504e4adaa6517ce65840eaaba06ef /auth.h | |
parent | 5a146bbd4fdf5c571f9fb438e5210d28cead76d9 (diff) |
upstream commit
switch auth2 to ssh_dispatch API; ok djm@
Upstream-ID: a752ca19e2782900dd83060b5c6344008106215f
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.90 2017/05/30 08:52:19 markus Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.91 2017/05/30 14:29:59 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -91,7 +91,7 @@ struct Authctxt { | |||
91 | 91 | ||
92 | struct Authmethod { | 92 | struct Authmethod { |
93 | char *name; | 93 | char *name; |
94 | int (*userauth)(Authctxt *authctxt); | 94 | int (*userauth)(struct ssh *); |
95 | int *enabled; | 95 | int *enabled; |
96 | }; | 96 | }; |
97 | 97 | ||
@@ -155,7 +155,7 @@ void auth_info(Authctxt *authctxt, const char *, ...) | |||
155 | __attribute__((__nonnull__ (2))); | 155 | __attribute__((__nonnull__ (2))); |
156 | void auth_log(Authctxt *, int, int, const char *, const char *); | 156 | void auth_log(Authctxt *, int, int, const char *, const char *); |
157 | void auth_maxtries_exceeded(Authctxt *) __attribute__((noreturn)); | 157 | void auth_maxtries_exceeded(Authctxt *) __attribute__((noreturn)); |
158 | void userauth_finish(Authctxt *, int, const char *, const char *); | 158 | void userauth_finish(struct ssh *, int, const char *, const char *); |
159 | int auth_root_allowed(const char *); | 159 | int auth_root_allowed(const char *); |
160 | 160 | ||
161 | void userauth_send_banner(const char *); | 161 | void userauth_send_banner(const char *); |
@@ -168,8 +168,8 @@ int auth2_method_allowed(Authctxt *, const char *, const char *); | |||
168 | 168 | ||
169 | void privsep_challenge_enable(void); | 169 | void privsep_challenge_enable(void); |
170 | 170 | ||
171 | int auth2_challenge(Authctxt *, char *); | 171 | int auth2_challenge(struct ssh *, char *); |
172 | void auth2_challenge_stop(Authctxt *); | 172 | void auth2_challenge_stop(struct ssh *); |
173 | int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **); | 173 | int bsdauth_query(void *, char **, char **, u_int *, char ***, u_int **); |
174 | int bsdauth_respond(void *, u_int, char **); | 174 | int bsdauth_respond(void *, u_int, char **); |
175 | int skey_query(void *, char **, char **, u_int *, char ***, u_int **); | 175 | int skey_query(void *, char **, char **, u_int *, char ***, u_int **); |