Module: wine Branch: master Commit: 99511bde634a9d5c47401d53ec88ceadb1e949ae URL: https://gitlab.winehq.org/wine/wine/-/commit/99511bde634a9d5c47401d53ec88cea...
Author: Daniel Lehman dlehman25@gmail.com Date: Mon May 20 20:23:29 2024 -0700
crypt32: Allow overriding GnuTLS debug level.
---
dlls/crypt32/unixlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c index 72770caab5f..5a255442fdf 100644 --- a/dlls/crypt32/unixlib.c +++ b/dlls/crypt32/unixlib.c @@ -130,7 +130,9 @@ static NTSTATUS process_attach( void *args )
if (TRACE_ON( crypt )) { - 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 ); }