summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/gp_debug.h')
-rw-r--r--proxy/src/gp_debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/proxy/src/gp_debug.h b/proxy/src/gp_debug.h
index 5f1a525..3bcc3bd 100644
--- a/proxy/src/gp_debug.h
+++ b/proxy/src/gp_debug.h
@@ -29,6 +29,16 @@
#include <gssapi/gssapi.h>
#include "rpcgen/gss_proxy.h"
+extern int gp_debug;
+
+void gp_debug_enable(void);
+
+#define GPDEBUG(...) do { \
+ if (gp_debug) { \
+ fprintf(stderr, __VA_ARGS__); \
+ } \
+} while(0)
+
void gp_log_failure(gss_OID mech, uint32_t maj, uint32_t min);
#endif /* _GP_DEBUG_H_ */