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.c | |
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.c')
-rw-r--r-- | lib/global.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/global.c b/lib/global.c index 334148342e..2db225360e 100644 --- a/lib/global.c +++ b/lib/global.c @@ -369,6 +369,7 @@ static int _gnutls_global_init(unsigned constructor) _gnutls_register_accel_crypto(); _gnutls_cryptodev_init(); _gnutls_load_system_priorities(); + _gnutls_nss_keylog_init(); #ifdef ENABLE_FIPS140 /* These self tests are performed on the overridden algorithms |