CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/11/10 23:41:28
Modified files:
distrib/special/libstubs: Makefile
lib/libcrypto : Makefile cryptlib.c crypto.h crypto_init.c
lib/libcrypto/engine: engine.h
regress/lib/libssl/ssl: ssltest.c
usr.bin/openssl: openssl.c
Added files:
distrib/special/libstubs: pthread_mutex.c
lib/libcrypto : crypto_lock.c
Log message:
Add automatic threading initialization for libcrypto.
This implements automatic thread support initialization in libcrypto.
This does not remove any functions from the ABI, but does turn them into
no-ops. Stub implementations of pthread_mutex_(init|lock|unlock) are
provided for ramdisks.
This does not implement the new OpenSSL 1.1 thread API internally,
keeping the original CRYTPO_lock / CRYPTO_add_lock functions for library
locking. For -portable, crypto_lock.c can be reimplemented with
OS-specific primitives as needed.
ok beck@, tb@, looks sane guenther@