bind9/lib/isc/netmgr
Ondřej Surý 2f0f531ee8 Use library constructor/destructor to initialize OpenSSL
Instead of calling isc_tls_initialize()/isc_tls_destroy() explicitly use
gcc/clang attributes on POSIX and DLLMain on Windows to initialize and
shutdown OpenSSL library.

This resolves the issue when isc_nm_create() / isc_nm_destroy() was
called multiple times and it would call OpenSSL library destructors from
isc_nm_destroy().

At the same time, since we now have introduced the ctor/dtor for libisc,
this commit moves the isc_mem API initialization (the list of the
contexts) and changes the isc_mem_checkdestroyed() to schedule the
checking of memory context on library unload instead of executing the
code immediately.
2021-02-26 17:18:06 +01:00
..
Makefile.in Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
netmgr-int.h Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
netmgr.c Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
tcp.c Fix HAVE_SO_REUSEPORT_LB macro name definition 2020-12-09 10:46:16 +01:00
tcpdns.c Fix the invalid condition variable 2021-02-26 17:07:09 +01:00
tlsdns.c Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
udp.c Fix HAVE_SO_REUSEPORT_LB macro name definition 2020-12-09 10:46:16 +01:00
uv-compat.c Use sock->nchildren instead of mgr->nworkers when initializing NM 2020-12-09 10:46:16 +01:00
uv-compat.h Refactor netmgr and add more unit tests 2020-12-09 10:46:16 +01:00
uverr2result.c Distribute queries among threads even on platforms without lb sockets 2020-12-09 10:46:16 +01:00