diff options
author | Simo Sorce <simo@redhat.com> | 2012-05-30 16:42:35 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-08-28 08:25:51 +0200 |
commit | 11fb3f6ecd6156a1eedb0310739c743c4aac003c (patch) | |
tree | 2f7b9d170027166a77bc05fd58a74d880b415281 /proxy/src/mechglue/gss_plugin.c | |
parent | db54e7aed0c92b8daade55e70c93e3c0818a8c92 (diff) | |
download | gss-proxy-11fb3f6ecd6156a1eedb0310739c743c4aac003c.tar.gz gss-proxy-11fb3f6ecd6156a1eedb0310739c743c4aac003c.tar.xz gss-proxy-11fb3f6ecd6156a1eedb0310739c743c4aac003c.zip |
Add loop avoidance in proxy daemon and gssapi plugin
Diffstat (limited to 'proxy/src/mechglue/gss_plugin.c')
-rw-r--r-- | proxy/src/mechglue/gss_plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c index 8612dc6..ba41e80 100644 --- a/proxy/src/mechglue/gss_plugin.c +++ b/proxy/src/mechglue/gss_plugin.c @@ -66,6 +66,14 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type) { gss_OID_set interposed_mechs; OM_uint32 maj, min; + char *envval; + + /* avoid looping in the gssproxy daemon by avoiding to interpose + * any mechanism */ + envval = getenv("_GSSPROXY_LOOPS"); + if (envval && strcmp(envval, "NO") == 0) { + return NULL; + } interposed_mechs = NULL; maj = 0; |