diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-02-08 12:46:47 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-02-23 17:06:58 -0800 |
| commit | ee0b44406d2b658886760ea08c0af12781ab7e3a (patch) | |
| tree | 674d2d31df7a62c367c161261c942e96f7909166 /src/supplemental/tls/wolfssl | |
| parent | 56bcc0310c4710bb21802719566926c2ccd2262a (diff) | |
| download | nng-ee0b44406d2b658886760ea08c0af12781ab7e3a.tar.gz nng-ee0b44406d2b658886760ea08c0af12781ab7e3a.tar.bz2 nng-ee0b44406d2b658886760ea08c0af12781ab7e3a.zip | |
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.
Diffstat (limited to 'src/supplemental/tls/wolfssl')
| -rw-r--r-- | src/supplemental/tls/wolfssl/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/supplemental/tls/wolfssl/CMakeLists.txt b/src/supplemental/tls/wolfssl/CMakeLists.txt new file mode 100644 index 00000000..f0b48d9a --- /dev/null +++ b/src/supplemental/tls/wolfssl/CMakeLists.txt @@ -0,0 +1,26 @@ +# +# Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> +# +# This software is supplied under the terms of the MIT License, a +# copy of which should be located in the distribution where this +# file was obtained (LICENSE.txt). A copy of the license may also be +# found online at https://opensource.org/licenses/MIT. +# + +# Enabling wolfSSL requires that the extern/nng-wolfssl submodule +# be populated. Note also that this action changes the licensing +# restrictions around the resulting library! + +if (NNG_TLS_ENGINE STREQUAL "wolf") + add_subdirectory(${PROJECT_SOURCE_DIR}/extern/nng-wolfssl nng-wolfssl) + target_include_directories(nng-wolfssl PRIVATE ) + target_link_libraries(nng PRIVATE nng-wolfssl) + if (TARGET nng_testlib) + target_link_libraries(nng_testlib PRIVATE nng-wolfssl) + endif () + + nng_defines(NNG_TLS_ENGINE_INIT=nng_tls_engine_init_wolf) + nng_defines(NNG_TLS_ENGINE_FINI=nng_tls_engine_fini_wolf) + nng_defines(NNG_SUPP_TLS) + +endif () |
