From 79e7c8eb5d35559e3cef9037e07c7c79903c86f1 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 8 Sep 2008 22:39:47 +0200 Subject: secur32: Allow gnutls debug output to be shown --- dlls/secur32/schannel.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c index 940410d..46a50e4 100644 --- a/dlls/secur32/schannel.c +++ b/dlls/secur32/schannel.c @@ -434,6 +434,11 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW( return ret; } +static void schan_gnutls_log(int level, const char *msg) +{ + TRACE("<%d> %s", level, msg); +} + static const SecurityFunctionTableA schanTableA = { 1, NULL, /* EnumerateSecurityPackagesA */ @@ -538,6 +543,11 @@ void SECUR32_initSchannelSP(void) schan_handle_table_size = 64; gnutls_global_init(); + if (TRACE_ON(secur32)) + { + gnutls_global_set_log_level(4); + gnutls_global_set_log_function(schan_gnutls_log); + } } } -- 1.5.6.4