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/gssproxy.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/gssproxy.c')
-rw-r--r-- | proxy/src/gssproxy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c index 311cc52..f8a0834 100644 --- a/proxy/src/gssproxy.c +++ b/proxy/src/gssproxy.c @@ -36,6 +36,7 @@ int main(int argc, const char *argv[]) int opt_interactive = 0; int opt_version = 0; char *opt_config_file = NULL; + int opt_debug = 0; verto_ctx *vctx; verto_ev *ev; int vflags; @@ -51,6 +52,8 @@ int main(int argc, const char *argv[]) _("Run interactive (not a daemon)"), NULL}, \ {"config", 'c', POPT_ARG_STRING, &opt_config_file, 0, \ _("Specify a non-default config file"), NULL}, \ + {"debug", 'd', POPT_ARG_NONE, &opt_debug, 0, \ + _("Specify a non-default config file"), NULL}, \ {"version", '\0', POPT_ARG_NONE, &opt_version, 0, \ _("Print version number and exit"), NULL }, \ POPT_TABLEEND @@ -72,6 +75,10 @@ int main(int argc, const char *argv[]) return 0; } + if (opt_debug) { + gp_debug_enable(); + } + if (opt_daemon && opt_interactive) { fprintf(stderr, "Option -i|--interactive is not allowed together with -D|--daemon\n"); poptPrintUsage(pc, stderr, 0); |