]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: DNS over TLS
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 5 Jul 2023 09:37:37 +0000 (11:37 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:26 +0000 (13:28 +0100)
meson.build
meson/dot/meson.build [new file with mode: 0644]
meson_options.txt

index 655c54c14ef9581e17f92768d4a1c34b93293be8..8404892714105e53fe3872cac97897d9ae17cc9c 100644 (file)
@@ -36,6 +36,7 @@ subdir('meson/libdecaf')        # Libdecaf-based signers
 subdir('meson/libcrypto')       # OpenSSL-based signers
 subdir('meson/libssl')          # OpenSSL libssl
 subdir('meson/gnutls')          # GnuTLS
+subdir('meson/dot')             # DNS over TLS
 
 # Generate config.h ----------------------------------------------------------------------
 config_h = configure_file(configuration: conf, output: 'config.h')
diff --git a/meson/dot/meson.build b/meson/dot/meson.build
new file mode 100644 (file)
index 0000000..904a74e
--- /dev/null
@@ -0,0 +1,11 @@
+# DNS over TLS
+# Inputs: conf dep_libssl dep_gnutls
+
+opt_dot = get_option('dns-over-tls')
+conf.set10('HAVE_DNS_OVER_TLS', opt_dot, description: 'Whether DNS over TLS is enabled')
+
+if opt_dot and not dep_libssl.found() and not dep_gnutls.found()
+  error('DNS over TLS support was requested but neither OpenSSL libssl nor GnuTLS support is enabled')
+endif
+
+summary('DNS over TLS', opt_dot, bool_yn: true, section: 'Configuration')
index 331acc1b165a2abf8c3d9ff585675f0f82747702..08c82df7d6ca10623dc4c2fe37b8894101bd1b7d 100644 (file)
@@ -7,3 +7,4 @@ option('libdecaf', type: 'feature', value: 'auto', description: 'Build support f
 option('libcrypto', type: 'string', value: 'auto', description: 'Build support for libcrypto-based signers (auto, yes, no, or a path)')
 option('libssl', type: 'feature', value: 'auto', description: 'Build support for libssl')
 option('gnutls', type: 'feature', value: 'auto', description: 'Build support for GnuTLS')
+option('dns-over-tls', type: 'boolean', value: false, description: 'Enable DNS over TLS (requires GnuTLS or OpenSSL)')