diff options
author | markus@openbsd.org <markus@openbsd.org> | 2017-05-30 14:23:52 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-05-31 10:50:05 +1000 |
commit | 2ae666a8fc20b3b871b2f1b90ad65cc027336ccd (patch) | |
tree | f13f1c949ae60c16160acebbfb680c3dc7b13fe5 /auth2.c | |
parent | 94583beb24a6c5fd19cedb9104ab2d2d5cd052b6 (diff) |
upstream commit
protocol handlers all get struct ssh passed; ok djm@
Upstream-ID: 0ca9ea2a5d01a6d2ded94c5024456a930c5bfb5d
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2.c,v 1.138 2017/05/30 14:18:15 markus Exp $ */ | 1 | /* $OpenBSD: auth2.c,v 1.139 2017/05/30 14:23:52 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -87,8 +87,8 @@ Authmethod *authmethods[] = { | |||
87 | 87 | ||
88 | /* protocol */ | 88 | /* protocol */ |
89 | 89 | ||
90 | static int input_service_request(int, u_int32_t, void *); | 90 | static int input_service_request(int, u_int32_t, struct ssh *); |
91 | static int input_userauth_request(int, u_int32_t, void *); | 91 | static int input_userauth_request(int, u_int32_t, struct ssh *); |
92 | 92 | ||
93 | /* helper */ | 93 | /* helper */ |
94 | static Authmethod *authmethod_lookup(Authctxt *, const char *); | 94 | static Authmethod *authmethod_lookup(Authctxt *, const char *); |
@@ -178,9 +178,8 @@ do_authentication2(Authctxt *authctxt) | |||
178 | 178 | ||
179 | /*ARGSUSED*/ | 179 | /*ARGSUSED*/ |
180 | static int | 180 | static int |
181 | input_service_request(int type, u_int32_t seq, void *ctxt) | 181 | input_service_request(int type, u_int32_t seq, struct ssh *ssh) |
182 | { | 182 | { |
183 | struct ssh *ssh = ctxt; | ||
184 | Authctxt *authctxt = ssh->authctxt; | 183 | Authctxt *authctxt = ssh->authctxt; |
185 | u_int len; | 184 | u_int len; |
186 | int acceptit = 0; | 185 | int acceptit = 0; |
@@ -214,9 +213,8 @@ input_service_request(int type, u_int32_t seq, void *ctxt) | |||
214 | 213 | ||
215 | /*ARGSUSED*/ | 214 | /*ARGSUSED*/ |
216 | static int | 215 | static int |
217 | input_userauth_request(int type, u_int32_t seq, void *ctxt) | 216 | input_userauth_request(int type, u_int32_t seq, struct ssh *ssh) |
218 | { | 217 | { |
219 | struct ssh *ssh = ctxt; | ||
220 | Authctxt *authctxt = ssh->authctxt; | 218 | Authctxt *authctxt = ssh->authctxt; |
221 | Authmethod *m = NULL; | 219 | Authmethod *m = NULL; |
222 | char *user, *service, *method, *style = NULL; | 220 | char *user, *service, *method, *style = NULL; |