http: implement public key pinning
commitaeff8a61216bf6e0d663c08c583bc8552fa3c344
authorChristoph Egger <christoph@christoph-egger.org>
Mon, 15 Feb 2016 14:04:22 +0000 (15 15:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Feb 2016 03:21:48 +0000 (15 19:21 -0800)
tree56089a2c0b99c783ee4ebed5bf90445c32b0fa3c
parenta08595f76159b09d57553e37a5123f1091bb13e7
http: implement public key pinning

Add the http.pinnedpubkey configuration option for public key
pinning. It allows any string supported by libcurl --
base64(sha256(pubkey)) or filename of the full public key.

If cURL does not support pinning (is too old) output a warning to the
user.

Signed-off-by: Christoph Egger <christoph@christoph-egger.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
http.c