summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-13 18:13:44 -0500
committerGünther Deschner <gdeschner@redhat.com>2013-11-19 14:04:09 +0100
commitb8901d1d20a5d0ef1a3118bfe5816e04c09e6cf5 (patch)
tree168fcfd29f3ca30a6b1de2cc2a553f7d9e2956d3
parent122b35f7adf37bc81f6d53bb5f9e058b68334cbb (diff)
downloadgss-proxy-b8901d1d20a5d0ef1a3118bfe5816e04c09e6cf5.tar.gz
gss-proxy-b8901d1d20a5d0ef1a3118bfe5816e04c09e6cf5.tar.xz
gss-proxy-b8901d1d20a5d0ef1a3118bfe5816e04c09e6cf5.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. https://fedorahosted.org/gss-proxy/ticket/107 Reviewed-by: Günther Deschner <gdeschner@redhat.com>
-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);