summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-13 18:13:44 -0500
committerSimo Sorce <simo@redhat.com>2013-11-16 17:28:51 -0500
commitbeb51858fd47acb0d71fb9774f846bfcd1585569 (patch)
tree0ea201f19fd90ed1fe65c95ab61025a4616ce0ee /proxy/src
parent8d9705ed63a36dada9b0cec066b5af903db30cfb (diff)
downloadgss-proxy-beb51858fd47acb0d71fb9774f846bfcd1585569.tar.gz
gss-proxy-beb51858fd47acb0d71fb9774f846bfcd1585569.tar.xz
gss-proxy-beb51858fd47acb0d71fb9774f846bfcd1585569.zip
Fix calling gpm_inquire_cred_by_mech
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.
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/mechglue/gpp_creds.c3
1 files changed, 2 insertions, 1 deletions
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);