From be13a48d8929c6edcc7525749d57ce450204d657 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 30 Mar 2012 12:13:38 -0400 Subject: Debug: Add debugging macro and config options Ticket #43 --- proxy/src/gp_debug.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'proxy/src/gp_debug.c') diff --git a/proxy/src/gp_debug.c b/proxy/src/gp_debug.c index 2f94738..dbf7c49 100644 --- a/proxy/src/gp_debug.c +++ b/proxy/src/gp_debug.c @@ -24,8 +24,18 @@ */ #include "config.h" +#include #include "gp_debug.h" +/* global debug switch */ +int gp_debug; + +void gp_debug_enable(void) +{ + gp_debug = 1; + GPDEBUG("Debug Enabled\n"); +} + void gp_log_failure(gss_OID mech, uint32_t maj, uint32_t min) { uint32_t msgctx; -- cgit