From: Junio C Hamano Date: Mon, 3 Feb 2025 18:23:32 +0000 (-0800) Subject: Merge branch 'tb/unsafe-hash-cleanup' X-Git-Tag: v2.49.0-rc0~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=caf17423d375e97919ace904cd527b4d26cc3e43;p=thirdparty%2Fgit.git Merge branch 'tb/unsafe-hash-cleanup' The API around choosing to use unsafe variant of SHA-1 implementation has been updated in an attempt to make it harder to abuse. * tb/unsafe-hash-cleanup: hash.h: drop unsafe_ function variants csum-file: introduce hashfile_checkpoint_init() t/helper/test-hash.c: use unsafe_hash_algo() csum-file.c: use unsafe_hash_algo() hash.h: introduce `unsafe_hash_algo()` csum-file.c: extract algop from hashfile_checksum_valid() csum-file: store the hash algorithm as a struct field t/helper/test-tool: implement sha1-unsafe helper --- caf17423d375e97919ace904cd527b4d26cc3e43