summaryrefslogtreecommitdiffstats
path: root/src/configure.ac
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-03-07 08:49:27 -0800
committerDave Barach <openvpp@barachs.net>2018-03-08 21:53:33 +0000
commitd77eee64b17762bf21f8dbe0b9f955513f81f1a5 (patch)
treedf26a38a15be4537fec42082083b755e79418202 /src/configure.ac
parent00f44cc1f7f3cc10c0d6b147c0bceb831a9e97fb (diff)
tls: make tls engines pluggable
- add infra for pluggable tls "engines" - makes mbedtls specific code a plugin Change-Id: I2c5b099e2b69d2be0038e3ef02b208ff907727e7 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/configure.ac')
-rw-r--r--src/configure.ac16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 1ee55e7ba68..041849e4312 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -230,6 +230,7 @@ PLUGIN_ENABLED(srv6ad)
PLUGIN_ENABLED(srv6am)
PLUGIN_ENABLED(srv6as)
PLUGIN_ENABLED(stn)
+PLUGIN_ENABLED(tlsmbedtls)
###############################################################################
# Dependency checks
@@ -288,15 +289,24 @@ AM_COND_IF([ENABLE_MARVELL_PLUGIN],
])
])
-AM_COND_IF([WITH_MBEDTLS],
+AM_COND_IF([WITH_MBEDTLS], [],
+[
+ AC_MSG_WARN([mbedtls not enabled. Disabling tlsmbedtls plugin])
+ enable_tlsmbedtls_plugin=no
+ AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false)
+])
+
+AM_COND_IF([ENABLE_TLSMBEDTLS_PLUGIN],
[
AC_CHECK_HEADERS([mbedtls/ssl.h], [],
[
- AC_MSG_WARN([mbedtls headers not found. TLS app disabled])
- AM_CONDITIONAL(WITH_MBEDTLS, false)
+ AC_MSG_WARN([mbedtls headers not found. TLS engine implementation disabled])
+ enable_tlsmbedtls_plugin=no
+ AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false)
], [])
])
+
###############################################################################
# JAVA
###############################################################################