[PATCH 0/1] MR5690: secur32: Allow overriding GnuTLS debug level.
From: Daniel Lehman <dlehman25(a)gmail.com> --- dlls/secur32/schannel_gnutls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c index fc16ded7a64..1af0682b269 100644 --- a/dlls/secur32/schannel_gnutls.c +++ b/dlls/secur32/schannel_gnutls.c @@ -1576,7 +1576,9 @@ static NTSTATUS process_attach( void *args ) if (TRACE_ON(secur32)) { - pgnutls_global_set_log_level(4); + char *env = getenv("GNUTLS_DEBUG_LEVEL"); + int level = env ? atoi(env) : 4; + pgnutls_global_set_log_level(level); pgnutls_global_set_log_function(gnutls_log); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5690
bcrypt and crypt32 also use GnutTLS and set the log level to 4. If either of these dlls is loaded after secur32, setting GNUTLS_DEBUG_LEVEL to anything else will not take effect. We probably want to apply the same patch to bcrypt and crypt32 to avoid confusion. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5690#note_70906
participants (3)
-
Daniel Lehman -
Daniel Lehman (@dlehman25) -
Hans Leidekker (@hans)