git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Windows: stop supplying BLK_SHA1=YesPlease by default

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 28, 2017, 13:47 UTC
Message-ID
<87k1x7q800.fsf@evledraar.gmail.com>
In-Reply-To
<20171227234237.GC181628@aiede.mtv.corp.google.com>
On Wed, Dec 27 2017, Jonathan Nieder jotted:
Show 19 quoted lines
> +git-for-windows
> Ævar Arnfjörð Bjarmason wrote:
>
>> Using BLK_SHA1 in lieu of the OpenSSL routines was done in [1], but
>> since DC_SHA1 is now the default for git in general it makes sense for
>> Windows to use that too, this looks like something that was missed
>> back in [2].
>>
>> As noted in [3] OpenSSL has a performance benefit compared to BLK_SHA1
>> on MinGW, so perhaps that and the Windows default should be changed
>> around again, but that's a topic for another series, it seems clear
>> that this specific flag is nobody's explicit intention.
>
> I have some memory of performance issues on Windows when DC_SHA1 was
> introduced leading to interest in a mixed configuration with DC_SHA1
> only being used where it is security sensitive (e.g. for object naming
> but not for packfile trailers).
>
> Did anything come of that?

This was Johannes Schindelin (CC'd) on-list when the sha1dc discussion first came up earlier this year. I.e. it's slower, so we could use openssl on trusted data and sha1dc on untrusted data, but nothing came of that.

> In any event removing this BLK_SHA1 setting looks like a good change
> to me, but I'd rather that Windows folks weigh in.
Yup, will CC them + Johannes for v2.
Show 14 quoted lines
> Thanks,
> Jonathan
>
> [...]
>> --- a/config.mak.uname
>> +++ b/config.mak.uname
>> @@ -361,7 +361,6 @@ ifeq ($(uname_S),Windows)
>>  	NO_REGEX = YesPlease
>>  	NO_GETTEXT = YesPlease
>>  	NO_PYTHON = YesPlease
>> -	BLK_SHA1 = YesPlease
>>  	ETAGS_TARGET = ETAGS
>>  	NO_INET_PTON = YesPlease
>>  	NO_INET_NTOP = YesPlease
Previous: Jonathan NiederNext: Johannes Schindelin
Message 4 of 15 in “When DC_SHA1 was made the default we missed a spot”
  1. 0/2 When DC_SHA1 was made the default we missed a spotÆvar Arnfjörð Bjarmason, Dec 27, 2017
  2. 2/2 Windows: stop supplying BLK_SHA1=YesPlease by defaultÆvar Arnfjörð Bjarmason, Dec 27, 2017
  3. Jonathan NiederDec 27, 2017
  4. Ævar Arnfjörð BjarmasonDec 28, 2017
  5. Johannes SchindelinJan 4, 2018
  6. 1/2 Makefile: NO_OPENSSL=1 should no longer imply BLK_SHA1=1Ævar Arnfjörð Bjarmason, Dec 27, 2017
  7. Jonathan NiederDec 27, 2017
  8. 0/2 When DC_SHA1 was made the default we missed a spotÆvar Arnfjörð Bjarmason, Dec 28, 2017
  9. 1/2 Makefile: NO_OPENSSL=1 should no longer imply BLK_SHA1=1Ævar Arnfjörð Bjarmason, Dec 28, 2017
  10. Jonathan NiederDec 28, 2017
  11. 2/2 Windows: stop supplying BLK_SHA1=YesPlease by defaultÆvar Arnfjörð Bjarmason, Dec 28, 2017
  12. Jonathan NiederDec 28, 2017
  13. Johannes SchindelinJan 4, 2018
  14. Ævar Arnfjörð BjarmasonJan 4, 2018
  15. Junio C HamanoJan 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.