summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2017-05-30 14:23:52 +0000
committerDamien Miller <djm@mindrot.org>2017-05-31 10:50:05 +1000
commit2ae666a8fc20b3b871b2f1b90ad65cc027336ccd (patch)
treef13f1c949ae60c16160acebbfb680c3dc7b13fe5 /auth2.c
parent94583beb24a6c5fd19cedb9104ab2d2d5cd052b6 (diff)
upstream commit
protocol handlers all get struct ssh passed; ok djm@ Upstream-ID: 0ca9ea2a5d01a6d2ded94c5024456a930c5bfb5d
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/auth2.c b/auth2.c
index 13ff95eac..cfbf9d250 100644
--- a/auth2.c
+++ b/auth2.c
@@ -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
90static int input_service_request(int, u_int32_t, void *); 90static int input_service_request(int, u_int32_t, struct ssh *);
91static int input_userauth_request(int, u_int32_t, void *); 91static int input_userauth_request(int, u_int32_t, struct ssh *);
92 92
93/* helper */ 93/* helper */
94static Authmethod *authmethod_lookup(Authctxt *, const char *); 94static Authmethod *authmethod_lookup(Authctxt *, const char *);
@@ -178,9 +178,8 @@ do_authentication2(Authctxt *authctxt)
178 178
179/*ARGSUSED*/ 179/*ARGSUSED*/
180static int 180static int
181input_service_request(int type, u_int32_t seq, void *ctxt) 181input_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*/
216static int 215static int
217input_userauth_request(int type, u_int32_t seq, void *ctxt) 216input_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;