summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-04-26 14:17:50 +0200
committerGünther Deschner <gdeschner@redhat.com>2013-04-26 14:48:11 +0200
commit4631c9d7a6399bc442597df12b8b7d274540205b (patch)
tree24627f5667173cbcd2bce1591e2e12628a0e10ca /proxy/src
parent770be8b5e2a57a94503d302600ae4229568c9f90 (diff)
downloadgss-proxy-master-env.tar.gz
gss-proxy-master-env.tar.xz
gss-proxy-master-env.zip
Use gp_boolean_is_true from interposer plugin's GSS_USE_PROXY check.master-env
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/mechglue/gss_plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c
index 5713320..aac213e 100644
--- a/proxy/src/mechglue/gss_plugin.c
+++ b/proxy/src/mechglue/gss_plugin.c
@@ -105,7 +105,8 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
if (!envval) {
return NULL;
}
- if ((strcmp(envval, "YES") != 0) && (strcmp(envval, "1") != 0)) {
+
+ if (!gp_boolean_is_true(envval)) {
return NULL;
}