Re: [PATCH] Remove non-SHA1dc sha1 implementations
- From
Jeff King <peff@peff.net>
- Date
- Feb 24, 2020, 04:52 UTC
- Message-ID
- <20200224045213.GA1574706@coredump.intra.peff.net>
- In-Reply-To
- <20200224044732.GK1018190@coredump.intra.peff.net>
On Sun, Feb 23, 2020 at 11:47:32PM -0500, Jeff King wrote:
> One thing that compels me is the recent report that we still build with > common crypto by default on macOS, which was definitely _not_ intended. > That's a bug that can be fixed, but it wouldn't have happened in the > first place if we only supported sha1dc.
I just noticed you were the original reporter there, too. So I guess it compelled you, too. ;)
If we do want to keep the other implementations around, another thing that might be worth doing is to teach t0013 to complain when the collision-detecting sha1 is not in use (i.e., rather than auto-skipping when built without DC_SHA1, require the user to set a special NO_REALLY_I_CHOOSE_NOT_TO_USE_DC_SHA1_AND_AM_AWARE_OF_THE_IMPLICATIONS variable). That would provide a cross-check on the build flags.
-Peff