summaryrefslogtreecommitdiffstats
path: root/proxy/src/mechglue/gss_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/mechglue/gss_plugin.c')
-rw-r--r--proxy/src/mechglue/gss_plugin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c
index 4f7ad62..ac9f678 100644
--- a/proxy/src/mechglue/gss_plugin.c
+++ b/proxy/src/mechglue/gss_plugin.c
@@ -100,8 +100,11 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
/* avoid looping in the gssproxy daemon by avoiding to interpose
* any mechanism */
- envval = getenv("_GSSPROXY_LOOPS");
- if (envval && strcmp(envval, "NO") == 0) {
+ envval = getenv("GSS_USE_PROXY");
+ if (!envval) {
+ return NULL;
+ }
+ if ((strcmp(envval, "YES") != 0) && (strcmp(envval, "1") != 0)) {
return NULL;
}