summaryrefslogtreecommitdiffstats
path: root/proxy/src/mechglue
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-02-21 18:28:42 +0100
committerGünther Deschner <gd@samba.org>2013-02-22 15:31:01 +0100
commit6e526fdf7df67dfced8a9b26f611493c07e3264c (patch)
treec9414cf0562462e31f1eb3f21ce3273daff2713b /proxy/src/mechglue
parenta5e95b5446a35ba72909cfbaf81af9152c5d25eb (diff)
downloadgss-proxy-6e526fdf7df67dfced8a9b26f611493c07e3264c.tar.gz
gss-proxy-6e526fdf7df67dfced8a9b26f611493c07e3264c.tar.xz
gss-proxy-6e526fdf7df67dfced8a9b26f611493c07e3264c.zip
mechglue: fix gssi_set_cred_option() arguments.
Diffstat (limited to 'proxy/src/mechglue')
-rw-r--r--proxy/src/mechglue/gpp_creds.c6
-rw-r--r--proxy/src/mechglue/gss_plugin.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/proxy/src/mechglue/gpp_creds.c b/proxy/src/mechglue/gpp_creds.c
index f37fd18..6a880f1 100644
--- a/proxy/src/mechglue/gpp_creds.c
+++ b/proxy/src/mechglue/gpp_creds.c
@@ -259,7 +259,7 @@ OM_uint32 gssi_inquire_cred_by_oid(OM_uint32 *minor_status,
}
OM_uint32 gssi_set_cred_option(OM_uint32 *minor_status,
- gss_cred_id_t cred_handle,
+ gss_cred_id_t *cred_handle,
const gss_OID desired_object,
const gss_buffer_t value)
{
@@ -267,10 +267,10 @@ OM_uint32 gssi_set_cred_option(OM_uint32 *minor_status,
OM_uint32 maj, min;
*minor_status = 0;
- if (cred_handle == GSS_C_NO_CREDENTIAL) {
+ if (*cred_handle == GSS_C_NO_CREDENTIAL) {
return GSS_S_CALL_INACCESSIBLE_READ;
}
- cred = (struct gpp_cred_handle *)cred_handle;
+ cred = (struct gpp_cred_handle *)*cred_handle;
/* NOTE: For now we can do this only for local credentials */
if (!cred->local) {
diff --git a/proxy/src/mechglue/gss_plugin.h b/proxy/src/mechglue/gss_plugin.h
index a27c8eb..02f6adc 100644
--- a/proxy/src/mechglue/gss_plugin.h
+++ b/proxy/src/mechglue/gss_plugin.h
@@ -128,7 +128,7 @@ OM_uint32 gssi_inquire_cred_by_oid(OM_uint32 *minor_status,
gss_buffer_set_t *data_set);
OM_uint32 gssi_set_cred_option(OM_uint32 *minor_status,
- gss_cred_id_t cred_handle,
+ gss_cred_id_t *cred_handle,
const gss_OID desired_object,
const gss_buffer_t value);