diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-03-28 22:36:44 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-03-28 22:36:44 +0200 |
| commit | d01e13c9dee53c3ab4faf70a215f4d1dcfed9e87 (patch) | |
| tree | 90975d8502a6c610a58f5d3cd8014bcf8443c0e9 /configure.ac | |
| parent | 87774d8981ae7a079492d8949e205065ba72a8e4 (diff) | |
MITM SSL Interception support using mbedtls
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 753af8a..18d3ed1 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,24 @@ THREAD_LIBS= AC_SUBST([THREAD_CFLAGS]) AC_SUBST([THREAD_LIBS]) +# SSL + +have_ssl=0 +AC_CHECK_HEADERS( + [mbedtls/ssl.h], + [AC_CHECK_LIB( + [mbedtls], [mbedtls_ssl_init], + [AC_CHECK_LIB( + [mbedx509], [mbedtls_x509_crt_init], + [AC_CHECK_LIB( + [mbedcrypto], [mbedtls_ctr_drbg_random], + [have_ssl=1])])])]) +SSL_CFLAGS= +SSL_LIBS="-lmbedtls -lmbedx509 -lmbedcrypto" +AC_SUBST([SSL_CFLAGS]) +AC_SUBST([SSL_LIBS]) +AM_CONDITIONAL([HAVE_SSL],[test "x$have_ssl" = "x1"]) + # Finish up AC_CONFIG_HEADERS([src/config.h]) |
