@@ -1475,18 +1475,6 @@ endif
14751475dmi_arches = [' x86' , ' x86_64' , ' aarch64' , ' arm' , ' ia64' , ' loongarch64' , ' mips' , ' riscv64' ]
14761476conf.set10(' HAVE_DMI' , host_machine .cpu_family() in dmi_arches)
14771477
1478- # We support one or the other. If gcrypt is available, we assume it's there to
1479- # be used, and use it in preference.
1480- opt = get_option (' cryptolib' )
1481- if opt == ' openssl' and conf.get(' HAVE_OPENSSL' ) == 0
1482- error (' openssl requested as the default cryptolib, but not available' )
1483- endif
1484- conf.set10(' PREFER_OPENSSL' ,
1485- opt == ' openssl' or (opt == ' auto' and conf.get(' HAVE_OPENSSL' ) == 1 and conf.get(' HAVE_GCRYPT' ) == 0 ))
1486- conf.set10(' HAVE_OPENSSL_OR_GCRYPT' ,
1487- conf.get(' HAVE_OPENSSL' ) == 1 or conf.get(' HAVE_GCRYPT' ) == 1 )
1488- lib_openssl_or_gcrypt = conf.get(' PREFER_OPENSSL' ) == 1 ? [libopenssl] : [libgcrypt, libgpg_error]
1489-
14901478dns_over_tls = get_option (' dns-over-tls' )
14911479have_openssl = conf.get(' HAVE_OPENSSL' ) == 1
14921480if dns_over_tls == ' false'
@@ -1525,8 +1513,8 @@ have = get_option('repart').require(
15251513conf.set10(' ENABLE_REPART' , have)
15261514
15271515default_dnssec = get_option (' default-dnssec' )
1528- if default_dnssec != ' no' and conf.get(' HAVE_OPENSSL_OR_GCRYPT ' ) == 0
1529- message (' default-dnssec cannot be set to yes or allow-downgrade openssl and gcrypt are disabled. Setting default-dnssec to no.' )
1516+ if default_dnssec != ' no' and conf.get(' HAVE_OPENSSL ' ) == 0
1517+ message (' default-dnssec cannot be set to yes or allow-downgrade when openssl is disabled. Setting default-dnssec to no.' )
15301518 default_dnssec = ' no'
15311519endif
15321520conf.set(' DEFAULT_DNSSEC_MODE' ,
@@ -1557,7 +1545,7 @@ conf.set10('ENABLE_STORAGETM', get_option('storagetm'))
15571545
15581546have = get_option (' importd' ).require(
15591547 conf.get(' HAVE_LIBCURL' ) == 1 and
1560- conf.get(' HAVE_OPENSSL_OR_GCRYPT ' ) == 1 and
1548+ conf.get(' HAVE_OPENSSL ' ) == 1 and
15611549 conf.get(' HAVE_ZLIB' ) == 1 and
15621550 conf.get(' HAVE_XZ' ) == 1 ,
15631551 error_message : ' curl, openssl/grypt, zlib and xz required' ).allowed()
@@ -3125,14 +3113,6 @@ else
31253113 found += ' static-libudev(@0@)' .format(static_libudev)
31263114endif
31273115
3128- if conf.get(' HAVE_OPENSSL_OR_GCRYPT' ) == 1 and conf.get(' PREFER_OPENSSL' ) == 1
3129- found += ' cryptolib(openssl)'
3130- elif conf.get(' HAVE_OPENSSL_OR_GCRYPT' ) == 1
3131- found += ' cryptolib(gcrypt)'
3132- else
3133- missing += ' cryptolib'
3134- endif
3135-
31363116summary ({
31373117 ' enabled' : ' , ' .join(found),
31383118 ' disabled' : ' , ' .join(missing)},
0 commit comments