CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2018/11/28 08:51:32

Modified files:
        lib/libcrypto  : crypto_init.c crypto_lock.c 

Log message:
Correct lock initialisation for libcrypto.

The current crypto_lock_init() function is not called early enough, meaning
that locks are already in use before it gets called. Worse, locks could be
in use when they are then initialised. Furthermore, since functions like
CRYPTO_lock() are public API, these could be called directly bypassing
initialisation.

Avoid these issues by using static initialisers.

ok bcook@

Reply via email to