aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-11-09 14:09:14 -0800
committerGarrett D'Amore <garrett@damore.org>2017-11-20 21:49:09 -0800
commit02178a8b5843a2c5a59fb7b104e4f9f5df1ff5ee (patch)
tree122ee2bebf060aa26d6fa0778b877a6b7ca9b864 /src/core
parente8694d15d0a108895bf869f292d59e11d834361e (diff)
downloadnng-02178a8b5843a2c5a59fb7b104e4f9f5df1ff5ee.tar.gz
nng-02178a8b5843a2c5a59fb7b104e4f9f5df1ff5ee.tar.bz2
nng-02178a8b5843a2c5a59fb7b104e4f9f5df1ff5ee.zip
fixes #3 TLS transport
This introduces a new transport (compatible with the TLS transport from mangos), using TLS v1.2. To use the new transport, you must have the mbed TLS library available on your system (Xenial libmbedtls-dev). You can use version 2.x or newer -- 1.3.x and PolarSSL versions are not supported. You enable the TLS transport with -DNNG_TRANSPORT_TLS=ON in the CMake configuration. You must configure the server certificate by default, and this can only be done using nng options. See the nng_tls man page for details. This work is experimental, and was made possible by Capitar IT Group BV, and Staysail Systems, Inc.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/transport.c b/src/core/transport.c
index af9c93fb..359b03fd 100644
--- a/src/core/transport.c
+++ b/src/core/transport.c
@@ -12,6 +12,7 @@
#include "transport/inproc/inproc.h"
#include "transport/ipc/ipc.h"
#include "transport/tcp/tcp.h"
+#include "transport/tls/tls.h"
#include "transport/zerotier/zerotier.h"
#include <stdio.h>
@@ -150,6 +151,9 @@ static nni_tran_ctor nni_tran_ctors[] = {
#ifdef NNG_HAVE_TCP
nng_tcp_register,
#endif
+#ifdef NNG_HAVE_TLS
+ nng_tls_register,
+#endif
#ifdef NNI_HAVE_ZEROTIER
nng_zt_register,
#endif