Skip to content

Commit d6787d9

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 31eb6d7 commit d6787d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ https_backend = get_option('https_backend')
13291329
sha1_backend = get_option('sha1_backend')
13301330
sha256_backend = get_option('sha256_backend')
13311331

1332-
security_framework = dependency('Security', required: https_backend == 'CommonCrypto')
1332+
security_framework = dependency('Security', required: https_backend == 'CommonCrypto' or sha1_backend == 'CommonCrypto')
13331333
core_foundation_framework = dependency('CoreFoundation', required: security_framework.found())
13341334
if https_backend == 'auto' and security_framework.found()
13351335
https_backend = 'CommonCrypto'

0 commit comments

Comments
 (0)