haproxy/include
Emeric Brun 821bb9beaa MAJOR: threads/ssl: Make SSL part thread-safe
First, OpenSSL is now initialized to be thread-safe. This is done by setting 2
callbacks. The first one is ssl_locking_function. It handles the locks and
unlocks. The second one is ssl_id_function. It returns the current thread
id. During the init step, we create as much as R/W locks as needed, ie the
number returned by CRYPTO_num_locks function.

Next, The reusable SSL session in the server context is now thread-local.

Shctx is now also initialized if HAProxy is started with several threads.

And finally, a global lock has been added to protect the LRU cache used to store
generated certificates. The function ssl_sock_get_generated_cert is now
deprecated because the retrieved certificate can be removed by another threads
in same time. Instead, a new function has been added,
ssl_sock_assign_generated_cert. It must be used to search a certificate in the
cache and set it immediatly if found.
2017-10-31 13:58:32 +01:00
..
common MAJOR: threads/ssl: Make SSL part thread-safe 2017-10-31 13:58:32 +01:00
import MINOR: threads: Add atomic-ops and plock includes in import dir 2017-10-31 11:36:13 +01:00
proto MAJOR: threads/ssl: Make SSL part thread-safe 2017-10-31 13:58:32 +01:00
types MAJOR: threads/ssl: Make SSL part thread-safe 2017-10-31 13:58:32 +01:00