]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Cleanup libssl module
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Aug 2023 12:14:02 +0000 (14:14 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:40 +0000 (13:28 +0100)
meson.build
meson/libssl/meson.build
meson_options.txt

index ed8ac40267474b68d29274e2d5d96594e606a5db..e6d5f370abdaf2faf0b073de670afc5429dededc 100644 (file)
@@ -191,6 +191,7 @@ deps = [
   dep_libsodium,
   dep_libdecaf,
   dep_libcrypto,
+  dep_libssl,
   dep_gss_tsig,
   dep_pkcs11,
   dep_yahttp,
index e6b274cc990e7633fa74882917755a2cda4464af..d852add885b4096e8f6e5190cb95cd14e3f3873d 100644 (file)
@@ -1,9 +1,5 @@
-# OpenSSL libssl
-# Inputs: conf deps
-
 opt_libssl = get_option('tls-libssl')
 dep_libssl = dependency('libssl', required: opt_libssl)
-deps += dep_libssl
 
 if dep_libssl.found()
   funcs = [
@@ -22,13 +18,20 @@ if dep_libssl.found()
 
   foreach func: funcs
     has = cxx.has_function(func, dependencies: dep_libssl)
-    conf.set10('HAVE_' + func.to_upper(), has, description: 'Whether we have ' + func)
+    conf.set('HAVE_' + func.to_upper(), has, description: 'Have OpenSSL libssl ' + func)
   endforeach
 endif
 
-has = cxx.has_header_symbol('openssl/ssl.h', 'SSL_CTX_set_min_proto_version', dependencies: dep_libssl)
-conf.set10('HAVE_SSL_CTX_SET_MIN_PROTO_VERSION', has, description: 'Whether we have SSL_CTX_set_min_proto_version')
+has = cxx.has_header_symbol(
+  'openssl/ssl.h',
+  'SSL_CTX_set_min_proto_version',
+  dependencies: dep_libssl,
+)
+conf.set(
+  'HAVE_SSL_CTX_SET_MIN_PROTO_VERSION',
+  has,
+  description: 'Have OpenSSL libssl SSL_CTX_set_min_proto_version',
+)
 
-deps += dep_libssl
-conf.set10('HAVE_LIBSSL', dep_libssl.found(), description: 'Whether we support OpenSSL libssl')
-summary('OpenSSL libssl', dep_libssl.found(), bool_yn: dep_libssl.found() or not opt_libssl.auto(), section: 'Configuration')
+conf.set('HAVE_LIBSSL', dep_libssl.found(), description: 'OpenSSL libssl')
+summary('OpenSSL libssl', dep_libssl.found(), bool_yn: true, section: 'Crypto')
index 42c4d97ecd43640164de7485bf3771d63aafb10c..5d31f485a2539f53e28a9e69fa17c1c80e5c4f15 100644 (file)
@@ -6,10 +6,10 @@ option('signers-libsodium', type: 'feature', value: 'auto', description: 'Enable
 option('signers-libdecaf', type: 'feature', value: 'auto', description: 'Enable libdecaf-based signers')
 option('signers-libcrypto', type: 'feature', value: 'auto', description: 'Enable OpenSSL libcrypto-based signers)')
 option('signers-libcrypto-path', type: 'string', value: '', description: 'Custom path to find OpenSSL libcrypto')
-option('tls-libssl', type: 'feature', value: 'auto', description: 'Enable OpenSSL-based TLS')
 option('tls-gnutls', type: 'feature', value: 'auto', description: 'Enable GnuTLS-based TLS')
 option('dns-over-tls', type: 'boolean', value: false, description: 'Enable DNS over TLS (requires GnuTLS or OpenSSL)')
 option('ipcipher', type: 'feature', value: 'auto', description: 'Enable ipcipher (requires libcrypto)')
+option('tls-libssl', type: 'feature', value: 'auto', description: 'OpenSSL-based TLS')
 option('unit-tests', type: 'boolean', value: false, description: 'Build and run unit tests')
 option('unit-tests-backends', type: 'boolean', value: false, description: 'Build and run backend unit tests')
 option('reproducible', type: 'boolean', value: false, description: 'Create reproducible builds (for distribution maintainers, makes debugging more difficult)')