diff options
author | Simo Sorce <simo@redhat.com> | 2012-03-30 12:13:38 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-04-02 23:56:54 -0400 |
commit | be13a48d8929c6edcc7525749d57ce450204d657 (patch) | |
tree | 0afd5b0c304627e6a02d7c8efa2a30eb20b14c54 /proxy/src/gp_config.c | |
parent | 14ef713434acb89e8c715eed7ba180a38fd604a9 (diff) | |
download | gss-proxy-be13a48d8929c6edcc7525749d57ce450204d657.tar.gz gss-proxy-be13a48d8929c6edcc7525749d57ce450204d657.tar.xz gss-proxy-be13a48d8929c6edcc7525749d57ce450204d657.zip |
Debug: Add debugging macro and config options
Ticket #43
Diffstat (limited to 'proxy/src/gp_config.c')
-rw-r--r-- | proxy/src/gp_config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c index ca0f2c1..f20a7b8 100644 --- a/proxy/src/gp_config.c +++ b/proxy/src/gp_config.c @@ -286,6 +286,15 @@ int load_config(struct gp_config *cfg) return ENOENT; } + tmpstr = iniparser_getstring(d, "gssproxy:debug", NULL); + if (tmpstr) { + if (strcasecmp(tmpstr, "1") == 0 || + strcasecmp(tmpstr, "on") == 0 || + strcasecmp(tmpstr, "true") == 0) { + gp_debug_enable(); + } + } + tmpstr = iniparser_getstring(d, "gssproxy:socket", NULL); if (tmpstr) { cfg->socket_name = strdup(tmpstr); |