From b8901d1d20a5d0ef1a3118bfe5816e04c09e6cf5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 13 Nov 2013 18:13:44 -0500 Subject: Fix calling gpm_inquire_cred_by_mech MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to pass the real mechanism oid here, not the spcial oid. special oids are used exclusively by the interposer and gssapi machinery that calls the interposer, they must never be propagated to clients or servers. https://fedorahosted.org/gss-proxy/ticket/107 Reviewed-by: Günther Deschner --- proxy/src/mechglue/gpp_creds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/mechglue/gpp_creds.c b/proxy/src/mechglue/gpp_creds.c index aaaf577..dff9c44 100644 --- a/proxy/src/mechglue/gpp_creds.c +++ b/proxy/src/mechglue/gpp_creds.c @@ -213,7 +213,8 @@ OM_uint32 gssi_inquire_cred_by_mech(OM_uint32 *minor_status, initiator_lifetime, acceptor_lifetime, cred_usage); } else if (cred->remote) { - maj = gpm_inquire_cred_by_mech(&min, cred->remote, mech_type, + maj = gpm_inquire_cred_by_mech(&min, cred->remote, + gpp_unspecial_mech(mech_type), gpname ? &gpname->remote : NULL, initiator_lifetime, acceptor_lifetime, cred_usage); -- cgit