]> git.ipfire.org Git - thirdparty/git.git/commit
meson: wire up unsafe SHA1 backend
authorPatrick Steinhardt <ps@pks.im>
Mon, 30 Dec 2024 14:24:09 +0000 (15:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Dec 2024 14:50:49 +0000 (06:50 -0800)
commitd2c0b6a86cb0f1a73d9ad5fcffda45497cd7ad42
tree885b6408cf7a2ecb5ddbb5c2e624f04b9ed3f06b
parent12068bd4de03c7769f50cd8321f792477692d0ea
meson: wire up unsafe SHA1 backend

In 06c92dafb8 (Makefile: allow specifying a SHA-1 for non-cryptographic
uses, 2024-09-26), we have introduced a cryptographically-insecure
backend for SHA1 that can optionally be used in some contexts where the
processed data is not security relevant. This effort was in-flight with
the effort to introduce Meson, so we don't have an equivalent here.

Wire up a new build option that lets users pick an unsafe SHA1 backend.

Note that for simplicity's sake we have to drop the error condition
around an unhandled SHA1 backend. This should be fine though given that
Meson verifies the value for combo-options for us.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build
meson_options.txt