Lines Matching refs:gssctxt

51 static void userauth_gssapi_finish(Authctxt *authctxt, Gssctxt *gssctxt);
196 Gssctxt *gssctxt; in input_gssapi_token() local
207 gssctxt = authctxt->method->method_data; in input_gssapi_token()
211 maj_status = ssh_gssapi_accept_ctx(gssctxt, &recv_tok, &send_tok); in input_gssapi_token()
215 ssh_gssapi_userauth_error(gssctxt); in input_gssapi_token()
248 Gssctxt *gssctxt; in input_gssapi_errtok() local
257 gssctxt = authctxt->method->method_data; in input_gssapi_errtok()
262 (void) ssh_gssapi_accept_ctx(gssctxt, &recv_tok, &send_tok); in input_gssapi_errtok()
265 ssh_gssapi_last_error(gssctxt, NULL, NULL)); in input_gssapi_errtok()
288 Gssctxt *gssctxt; in input_gssapi_mic() local
300 gssctxt = authctxt->method->method_data; in input_gssapi_mic()
315 maj_status = gss_verify_mic(&min_status, gssctxt->context, in input_gssapi_mic()
324 userauth_gssapi_finish(authctxt, gssctxt); in input_gssapi_mic()
327 if (xxx_gssctxt != gssctxt) in input_gssapi_mic()
331 if (gssctxt->deleg_creds == GSS_C_NO_CREDENTIAL) in input_gssapi_mic()
332 ssh_gssapi_delete_ctx(&gssctxt); in input_gssapi_mic()
334 xxx_gssctxt = gssctxt; in input_gssapi_mic()
352 Gssctxt *gssctxt; in input_gssapi_exchange_complete() local
360 gssctxt = authctxt->method->method_data; in input_gssapi_exchange_complete()
385 authctxt->method->authenticated = ssh_gssapi_userok(gssctxt, in input_gssapi_exchange_complete()
389 if (xxx_gssctxt != gssctxt) in input_gssapi_exchange_complete()
390 ssh_gssapi_delete_ctx(&gssctxt); in input_gssapi_exchange_complete()
391 ssh_gssapi_delete_ctx(&gssctxt); in input_gssapi_exchange_complete()
425 userauth_gssapi_finish(Authctxt *authctxt, Gssctxt *gssctxt) in userauth_gssapi_finish() argument
432 ssh_gssapi_userok(gssctxt, authctxt->user)) { in userauth_gssapi_finish()
439 local_user = ssh_gssapi_localname(gssctxt); in userauth_gssapi_finish()
442 gssctxt->default_creds = 1; /* store creds as default */ in userauth_gssapi_finish()
449 if ((local_user = ssh_gssapi_localname(gssctxt)) == NULL) in userauth_gssapi_finish()
455 gssctxt->default_creds = 1; /* store creds as default */ in userauth_gssapi_finish()
465 major = gss_display_name(&gssctxt->minor, gssctxt->src_name, in userauth_gssapi_finish()
471 ssh_gssapi_oid_to_name(gssctxt->actual_mech), in userauth_gssapi_finish()
474 (void) gss_release_buffer(&gssctxt->minor, &dispname); in userauth_gssapi_finish()