mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
4574a7fd8d
Some primitives are designed to be used in a multi-threaded environment, if supported, e.g., Argon2. This patch adds support for preemptive threading and basic synchronization primitives for platforms compliant with POSIX threads or Windows CRT. Native functions are wrapped to provide a common (internal) API. Threading support can be disabled at compile time. If enabled, threading is disabled by default and needs to be explicitly enabled by the user. Thread enablement requires an explicit limit on the number of threads that OpenSSL may spawn (non-negative integer/infinity). The limit may be changed. Signed-off-by: Čestmír Kalina <ckalina@redhat.com> Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12255)
9 lines
209 B
Plaintext
9 lines
209 B
Plaintext
LIBS=../../libcrypto
|
|
|
|
$THREADS=\
|
|
api.c internal.c arch.c \
|
|
arch/thread_win.c arch/thread_posix.c arch/thread_none.c
|
|
|
|
SOURCE[../../libcrypto]=$THREADS
|
|
SOURCE[../../providers/libfips.a]=$THREADS
|