summaryrefslogtreecommitdiff
path: root/auth2-gss.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-gss.c
parent94583beb24a6c5fd19cedb9104ab2d2d5cd052b6 (diff)
upstream commit
protocol handlers all get struct ssh passed; ok djm@ Upstream-ID: 0ca9ea2a5d01a6d2ded94c5024456a930c5bfb5d
Diffstat (limited to 'auth2-gss.c')
-rw-r--r--auth2-gss.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/auth2-gss.c b/auth2-gss.c
index 5bfcb9b46..a762747d6 100644
--- a/auth2-gss.c
+++ b/auth2-gss.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2-gss.c,v 1.23 2017/05/30 14:18:15 markus Exp $ */ 1/* $OpenBSD: auth2-gss.c,v 1.24 2017/05/30 14:23:52 markus Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. 4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -48,10 +48,10 @@
48 48
49extern ServerOptions options; 49extern ServerOptions options;
50 50
51static int input_gssapi_token(int type, u_int32_t plen, void *ctxt); 51static int input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh);
52static int input_gssapi_mic(int type, u_int32_t plen, void *ctxt); 52static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
53static int input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt); 53static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
54static int input_gssapi_errtok(int, u_int32_t, void *); 54static int input_gssapi_errtok(int, u_int32_t, struct ssh *);
55 55
56/* 56/*
57 * We only support those mechanisms that we know about (ie ones that we know 57 * We only support those mechanisms that we know about (ie ones that we know
@@ -127,9 +127,8 @@ userauth_gssapi(Authctxt *authctxt)
127} 127}
128 128
129static int 129static int
130input_gssapi_token(int type, u_int32_t plen, void *ctxt) 130input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh)
131{ 131{
132 struct ssh *ssh = ctxt;
133 Authctxt *authctxt = ssh->authctxt; 132 Authctxt *authctxt = ssh->authctxt;
134 Gssctxt *gssctxt; 133 Gssctxt *gssctxt;
135 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; 134 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
@@ -183,9 +182,8 @@ input_gssapi_token(int type, u_int32_t plen, void *ctxt)
183} 182}
184 183
185static int 184static int
186input_gssapi_errtok(int type, u_int32_t plen, void *ctxt) 185input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh)
187{ 186{
188 struct ssh *ssh = ctxt;
189 Authctxt *authctxt = ssh->authctxt; 187 Authctxt *authctxt = ssh->authctxt;
190 Gssctxt *gssctxt; 188 Gssctxt *gssctxt;
191 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; 189 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
@@ -225,9 +223,8 @@ input_gssapi_errtok(int type, u_int32_t plen, void *ctxt)
225 */ 223 */
226 224
227static int 225static int
228input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt) 226input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh)
229{ 227{
230 struct ssh *ssh = ctxt;
231 Authctxt *authctxt = ssh->authctxt; 228 Authctxt *authctxt = ssh->authctxt;
232 int authenticated; 229 int authenticated;
233 230
@@ -253,9 +250,8 @@ input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt)
253} 250}
254 251
255static int 252static int
256input_gssapi_mic(int type, u_int32_t plen, void *ctxt) 253input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh)
257{ 254{
258 struct ssh *ssh = ctxt;
259 Authctxt *authctxt = ssh->authctxt; 255 Authctxt *authctxt = ssh->authctxt;
260 Gssctxt *gssctxt; 256 Gssctxt *gssctxt;
261 int authenticated = 0; 257 int authenticated = 0;