From ee0b44406d2b658886760ea08c0af12781ab7e3a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 8 Feb 2020 12:46:47 -0800 Subject: fixes #1005 TLS 1.3 support This introduces support for an external wolfSSL plugin, and generally creates the framework for pluggable TLS implementations. The wolfSSL engine is provided via an external module (git submodule), available either under a GPLv3 license or a commercial license. --- src/core/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core') diff --git a/src/core/init.c b/src/core/init.c index 4749516f..7be879f5 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -18,6 +18,9 @@ static nni_mtx nni_init_mtx; static nni_list nni_init_list; static bool nni_inited = false; +extern int nni_tls_sys_init(void); +extern void nni_tls_sys_fini(void); + static int nni_init_helper(void) { @@ -36,6 +39,7 @@ nni_init_helper(void) ((rv = nni_listener_sys_init()) != 0) || ((rv = nni_dialer_sys_init()) != 0) || ((rv = nni_pipe_sys_init()) != 0) || + ((rv = nni_tls_sys_init()) != 0) || ((rv = nni_proto_sys_init()) != 0) || ((rv = nni_tran_sys_init()) != 0)) { nni_fini(); @@ -71,6 +75,7 @@ nni_fini(void) } nni_tran_sys_fini(); nni_proto_sys_fini(); + nni_tls_sys_fini(); nni_pipe_sys_fini(); nni_dialer_sys_fini(); nni_listener_sys_fini(); -- cgit v1.2.3-70-g09d2