diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-03-18 23:21:19 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 22:51:31 -0400 |
commit | cb753ec5b51bda3f5630409e18205f874ecce7c7 (patch) | |
tree | e959902183887aa49a4ac53590ce93d3e9e5a337 /SConstruct | |
parent | 7de51cc77bc0d7ed7f93e65ee9cbd91c5f963c1b (diff) | |
download | lighttpd-git-cb753ec5b51bda3f5630409e18205f874ecce7c7.tar.gz |
[mod_mbedtls] mbedTLS option for TLS
(experimental)
mod_mbedtls supports most ssl.* config options supported by mod_openssl
thx Ward Willats for the initial discussion and attempt in the comments
https://redmine.lighttpd.net/boards/3/topics/7029
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -252,6 +252,7 @@ vars.AddVariables( BoolVariable('with_memcached', 'enable memcached support', 'no'), PackageVariable('with_mysql', 'enable mysql support', 'no'), BoolVariable('with_openssl', 'enable openssl support', 'no'), + PackageVariable('with_mbedtls', 'enable mbedTLS support', 'no'), PackageVariable('with_wolfssl', 'enable wolfSSL support', 'no'), BoolVariable('with_nettle', 'enable Nettle support', 'no'), BoolVariable('with_pam', 'enable PAM auth support', 'no'), @@ -341,6 +342,7 @@ if 1: LIBSQLITE3 = '', LIBSSL = '', LIBUUID = '', + LIBX509 = '', LIBXML2 = '', LIBZ = '', ) @@ -609,6 +611,16 @@ if 1: LIBCRYPTO = 'wolfssl', ) + if env['with_mbedtls']: + if not autoconf.CheckLibWithHeader('mbedtls', 'mbedtls/ssl.h', 'C'): + fail("Couldn't find mbedtls") + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_LIBMBEDCRYPTO' ], + LIBSSL = 'mbedtls', + LIBX509 = 'mbedx509', + LIBCRYPTO = 'mbedcrypto', + ) + if env['with_nettle']: if not autoconf.CheckLibWithHeader('nettle', 'nettle/nettle-types.h', 'C'): fail("Couldn't find Nettle") |