diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-05-14 02:03:14 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 22:51:31 -0400 |
commit | bf4054f8ecb7ce88118a4e3631a617dba0600da0 (patch) | |
tree | f4b3833a06711dae5e39e9422f4db019a3c1e40d /SConstruct | |
parent | 68d626fa9fe44dd08026727442210f3ba0a71e9f (diff) | |
download | lighttpd-git-bf4054f8ecb7ce88118a4e3631a617dba0600da0.tar.gz |
[mod_gnutls] GnuTLS option for TLS (fixes #109)
(experimental)
mod_gnutls supports most ssl.* config options supported by mod_openssl
x-ref:
"GnuTLS support for the mod_ssl"
https://redmine.lighttpd.net/issues/109
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 14 |
1 files changed, 14 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_gnutls', 'enable GnuTLS support', 'no'), PackageVariable('with_mbedtls', 'enable mbedTLS support', 'no'), PackageVariable('with_wolfssl', 'enable wolfSSL support', 'no'), BoolVariable('with_nettle', 'enable Nettle support', 'no'), @@ -328,6 +329,7 @@ if 1: LIBDL = '', LIBFCGI = '', LIBGDBM = '', + LIBGNUTLS = '', LIBGSSAPI_KRB5 = '', LIBKRB5 = '', LIBLBER = '', @@ -629,6 +631,18 @@ if 1: LIBCRYPTO = 'nettle', ) + if env['with_gnutls']: + if not autoconf.CheckLibWithHeader('gnutls', 'gnutls/crypto.h', 'C'): + fail("Couldn't find gnutls") + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_GNUTLS_CRYPTO_H' ], + LIBGNUTLS = 'gnutls', + ) + if not autoconf.env.exists('LIBCRYPTO'): + autoconf.env.Append( + LIBCRYPTO = 'gnutls', + ) + if env['with_pam']: if not autoconf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'C'): fail("Couldn't find pam") |