From 3914c4b1bd9a94dc9998e7e1a7105a9835da84e0 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 9 Aug 2014 16:17:48 -0400 Subject: Add debug helpers to be used to trace gss-ntlmssp If the GSSNTLMSSP_DEBUG environment variable is set to a file that can be opened for writing, then trace information will be written to that file whenever DEBUG macros are called in the code. --- tests/ntlmssptest.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/ntlmssptest.c b/tests/ntlmssptest.c index 8a61a2f..ddc9d75 100644 --- a/tests/ntlmssptest.c +++ b/tests/ntlmssptest.c @@ -1975,6 +1975,9 @@ int main(int argc, const char *argv[]) struct ntlm_ctx *ctx; int ret; + /* enable trace debugging by dfault in tests */ + setenv("GSSNTLMSSP_DEBUG", "tests-trace.log", 0); + ret = ntlm_init_ctx(&ctx); if (ret) goto done; -- cgit