summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-03-18 23:21:19 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 22:51:31 -0400
commitcb753ec5b51bda3f5630409e18205f874ecce7c7 (patch)
treee959902183887aa49a4ac53590ce93d3e9e5a337 /SConstruct
parent7de51cc77bc0d7ed7f93e65ee9cbd91c5f963c1b (diff)
downloadlighttpd-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--SConstruct12
1 files changed, 12 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index bcac49fe..7e593528 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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")