From 371ca50a74a9c4f1b74c4c1b65c6fdec610fcfc3 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 21 Feb 2018 12:07:41 -0800 Subject: session: first approximation implementation of tls It consists of two main parts. First, add an application transport type whereby applications can offer transport to other applications. For instance, a tls app can offer transport services to other applications. And second, a tls transport app that leverages the mbedtls library for tls protocol implementation. Change-Id: I616996c6e6539a9e2368fab8a1ac874d7c5d9838 Signed-off-by: Florin Coras --- src/configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/configure.ac') diff --git a/src/configure.ac b/src/configure.ac index c213454dbda..37e1bb2f626 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -137,6 +137,7 @@ DISABLE_ARG(vom, [Disable VPP object model bindings]) # --without-X WITHOUT_ARG(libssl, [Disable libssl]) WITHOUT_ARG(apicli, [Disable binary api CLI]) +WITHOUT_ARG(mbedtls, [Disable mbedtls]) AC_ARG_WITH(unix, AC_HELP_STRING([--with-unix],[Compile unix version of clib]), @@ -196,6 +197,7 @@ AC_SUBST(APICLI, [-DVPP_API_TEST_BUILTIN=${n_with_apicli}]) AC_DEFINE_UNQUOTED(DPDK_SHARED_LIB, [${n_enable_dpdk_shared}]) AC_DEFINE_UNQUOTED(WITH_LIBSSL, [${n_with_libssl}]) +AC_DEFINE_UNQUOTED(WITH_MBEDTLS, [${n_with_mbedtls}]) # Silence following noise: @@ -307,6 +309,15 @@ AM_COND_IF([ENABLE_MARVELL_PLUGIN], ]) ]) +AM_COND_IF([WITH_MBEDTLS], +[ + AC_CHECK_HEADERS([mbedtls/ssl.h], [], + [ + AC_MSG_WARN([mbedtls headers not found. TLS app disabled]) + AM_CONDITIONAL(WITH_MBEDTLS, false) + ], []) +]) + AC_PATH_PROG([VPPAPIGEN], [vppapigen], [no]) if test "$VPPAPIGEN" = "no"; then VPPAPIGEN=\$\(top_srcdir\)/tools/vppapigen/vppapigen -- cgit 1.2.3-korg