meson: consistenlty spell 'CommonCrypto'
The 'CommonCrypto' backend can be specified as HTTPS and SHA1 backends, but the value that one needs to use is inconsistent across those two build options. Unify it to 'CommonCrypto'. 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
8214e27d275915079ddf7c294c379515e34e8efb
2 files changed
+2
-2
meson.build
+1
-1
@@ -1367,7 +1367,7 @@ if sha1_backend == 'sha1dc'
1367
'sha1dc/sha1.c',
1368
'sha1dc/ubc_check.c',
1369
]
1370
-elif sha1_backend == 'common-crypto'
1370
+elif sha1_backend == 'CommonCrypto'
1371
libgit_c_args += '-DCOMMON_DIGEST_FOR_OPENSSL'
1372
libgit_c_args += '-DSHA1_APPLE'
1373
# Apple CommonCrypto requires chunking
meson_options.txt
+1
-1
@@ -49,7 +49,7 @@ option('regex', type: 'feature', value: 'auto',
49
# Backends.
50
option('https_backend', type: 'combo', value: 'auto', choices: ['auto', 'openssl', 'CommonCrypto', 'none'],
51
description: 'The HTTPS backend to use when connecting to remotes.')
52
-option('sha1_backend', type: 'combo', choices: ['openssl', 'block', 'sha1dc', 'common-crypto'], value: 'sha1dc',
52
+option('sha1_backend', type: 'combo', choices: ['openssl', 'block', 'sha1dc', 'CommonCrypto'], value: 'sha1dc',
53
description: 'The backend used for hashing objects with the SHA1 object format')
54
option('sha256_backend', type: 'combo', choices: ['openssl', 'nettle', 'gcrypt', 'block'], value: 'block',
55
description: 'The backend used for hashing objects with the SHA256 object format')