meson: require SecurityFramework when it's used as SHA1 backend

The Security framework is required when we use CommonCrypto either as HTTPS or SHA1 backend, but we only require it in case it is set up as HTTPS backend. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Dec 30, 2024 at 15:24 UTC d6787d975147a74f1560fffc09dcb2a1f92460bb
1 file changed +1 -1
meson.build
+1 -1
@@ -1329,7 +1329,7 @@ https_backend = get_option('https_backend')
1329 sha1_backend = get_option('sha1_backend')
1330 sha256_backend = get_option('sha256_backend')
1331
1332 -security_framework = dependency('Security', required: https_backend == 'CommonCrypto')
1332 +security_framework = dependency('Security', required: https_backend == 'CommonCrypto' or sha1_backend == 'CommonCrypto')
1333 core_foundation_framework = dependency('CoreFoundation', required: security_framework.found())
1334 if https_backend == 'auto' and security_framework.found()
1335 https_backend = 'CommonCrypto'