summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorČestmír Kalina <ckalina@redhat.com>2021-09-27 22:42:11 +0200
committerMatt Caswell <matt@openssl.org>2022-10-17 10:45:39 +0200
commit4574a7fd8dda070b129d76defca07703cab53842 (patch)
treea6e03446b0f784e550010a2c51efe5b7861e9473 /util
parentci: add thread-pool and default-thread-pool (diff)
downloadopenssl-4574a7fd8dda070b129d76defca07703cab53842.tar.xz
openssl-4574a7fd8dda070b129d76defca07703cab53842.zip
crypto: add preemptive threading support
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)
Diffstat (limited to 'util')
-rw-r--r--util/libcrypto.num3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/libcrypto.num b/util/libcrypto.num
index ba44622210..f5951d59e5 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -5466,3 +5466,6 @@ EVP_PKEY_auth_decapsulate_init ? 3_2_0 EXIST::FUNCTION:
PKCS12_SAFEBAG_set0_attrs ? 3_2_0 EXIST::FUNCTION:
PKCS12_create_ex2 ? 3_2_0 EXIST::FUNCTION:
OSSL_sleep ? 3_2_0 EXIST::FUNCTION:
+OSSL_get_thread_support_flags ? 3_2_0 EXIST::FUNCTION:
+OSSL_set_max_threads ? 3_2_0 EXIST::FUNCTION:
+OSSL_get_max_threads ? 3_2_0 EXIST::FUNCTION: