I have checked openssl sources, loogs as BIO_printf and BIO_write function to not use lock mechanism.

The solution would be to either have a lock around and do every time: lock, open file, write, close, unlock;

Why we cannot open file once and use logic inside childs

lock, write, unlock

I also noticed that the file name is reallocated in pkg using a local variable in a function and not freed.

is memory allocated here and not freed?

@@ -636,6 +710,7 @@ int tls_h_mod_pre_init_f(void)
 #endif
        SSL_load_error_strings();
        tls_mod_preinitialized=1;
+       prepare_keylog_file(cfg_get(tls, tls_cfg, session_keylog_filename));
        return 0;
 }


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.