connect: add function to detect supported v1 hash functions
commit122037c2edec0c2bbcbfe52679fddc438165ab54
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:58:56 +0000 (25 19:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:06 +0000 (27 10:07 -0700)
tree0e08fcd17d2b713a34791c806c5b806f64e73d98
parent7c97af4d64100bf9ce4b335ee91e743378e2e181
connect: add function to detect supported v1 hash functions

Add a function, server_supports_hash, to see if the remote server
supports a particular hash algorithm when speaking protocol v1.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
connect.h