[PATCH 9 of 9 V2] sslutil: print the fingerprint from the last hash used

Yuya Nishihara yuya at tcha.org
Wed Jun 1 09:26:57 EDT 2016


On Tue, 31 May 2016 19:22:05 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1464648649 25200
> #      Mon May 30 15:50:49 2016 -0700
> # Node ID 2bdb54fc690f460e7c20e393c495a4e32458dfa6
> # Parent  3b08559256d040147d29caa73e5b982a0016f78a
> sslutil: print the fingerprint from the last hash used

> +        nice = fmtfingerprint(peerfingerprints[hash])
> +        if not settings['legacyfingerprint']:
> +            nice = '%s:%s' % (hash, nice)

If the last hash is not 'sha1' and if 'legacyfingerprint' is set, it would
print non-sha1 hash with "check hostfingerprint configuration" message. But
I confirmed it would never happen, so this patch seems fine.


More information about the Mercurial-devel mailing list