From 682b256d86d95624f6add86c41aacf6ed1ede858 Mon Sep 17 00:00:00 2001 From: jbasney Date: Sun, 23 Jul 2006 21:18:13 +0000 Subject: [PATCH] gss_ctx_id_t needed in ssh_gssapi_client struct to pass to globus_gss_assist_map_and_authorize() --- openssh/gss-serv.c | 4 ++++ openssh/ssh-gss.h | 1 + 2 files changed, 5 insertions(+) diff --git a/openssh/gss-serv.c b/openssh/gss-serv.c index 54183da..90c3ef1 100644 --- a/openssh/gss-serv.c +++ b/openssh/gss-serv.c @@ -276,6 +276,10 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client) /* We can't copy this structure, so we just move the pointer to it */ client->creds = ctx->client_creds; ctx->client_creds = GSS_C_NO_CREDENTIAL; + + /* needed for globus_gss_assist_map_and_authorize() */ + client->context = ctx->context; + return (ctx->major); } diff --git a/openssh/ssh-gss.h b/openssh/ssh-gss.h index c1a8dc9..8b510ad 100644 --- a/openssh/ssh-gss.h +++ b/openssh/ssh-gss.h @@ -87,6 +87,7 @@ typedef struct { gss_cred_id_t creds; struct ssh_gssapi_mech_struct *mech; ssh_gssapi_ccache store; + gss_ctx_id_t context; } ssh_gssapi_client; typedef struct ssh_gssapi_mech_struct { -- 2.45.1