aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/tls/mbedtls
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-02 16:38:49 -0800
committerGarrett D'Amore <garrett@damore.org>2018-03-02 17:15:47 -0800
commit6ea6b8659ffc2bdff325a3d71c67cc1cfb854c51 (patch)
treeef6f6fc35e71f2279b118e6b9cbfecd275b696cf /src/supplemental/tls/mbedtls
parent48a1033794eb423c3f216bba02abd61240306e0d (diff)
downloadnng-6ea6b8659ffc2bdff325a3d71c67cc1cfb854c51.tar.gz
nng-6ea6b8659ffc2bdff325a3d71c67cc1cfb854c51.tar.bz2
nng-6ea6b8659ffc2bdff325a3d71c67cc1cfb854c51.zip
Isolate TLS functions into separate tls.h header file.
Diffstat (limited to 'src/supplemental/tls/mbedtls')
-rw-r--r--src/supplemental/tls/mbedtls/tls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/supplemental/tls/mbedtls/tls.c b/src/supplemental/tls/mbedtls/tls.c
index 1e008668..8faf4e46 100644
--- a/src/supplemental/tls/mbedtls/tls.c
+++ b/src/supplemental/tls/mbedtls/tls.c
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <string.h>
+
#include "mbedtls/version.h" // Must be first in order to pick up version
#include "mbedtls/error.h"
@@ -29,6 +30,7 @@
#include "core/nng_impl.h"
#include "supplemental/tls/tls.h"
+#include "supplemental/tls/tls_api.h"
// Implementation note. This implementation buffers data between the TLS
// encryption layer (mbedTLS) and the underlying TCP socket. As a result,
@@ -980,4 +982,4 @@ void
nng_tls_config_free(nng_tls_config *cfg)
{
nni_tls_config_fini(cfg);
-} \ No newline at end of file
+}