diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-07-16 11:44:02 +0200 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-07-16 11:44:09 +0200 |
commit | c8db8e1724cd189d3865823dc3f0f1154e3a8868 (patch) | |
tree | 30dab8ece42f053f463aff7efaeca0bec4ccbba5 /lib/global.h | |
parent | 9ba468c457478c1c1fbdd772b45c1564584a160e (diff) | |
download | gnutls-tmp-keylog-threadsafe.tar.gz |
Fix race condition when logging keystmp-keylog-threadsafe
Moves keylog initialization to _gnutls_global_init().
That means SSLKEYLOGFILE has to be set before starting the
application - or more exactly - before library initialization.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/global.h')
-rw-r--r-- | lib/global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/global.h b/lib/global.h index d9a09d8cdd..63133c49a8 100644 --- a/lib/global.h +++ b/lib/global.h @@ -44,6 +44,7 @@ extern int _gnutls_log_level; extern int gnutls_crypto_init(void); extern void gnutls_crypto_deinit(void); extern void _gnutls_tpm_global_deinit(void); +extern void _gnutls_nss_keylog_init(void); extern void _gnutls_nss_keylog_deinit(void); extern void _gnutls_load_system_priorities(void); |