# HG changeset patch # User Boris Feld # Date 1507760441 -7200 # Node ID 8c1d0fe1f4319dae127b68c410ff9546b697b80e # Parent 5cf98daad7b17510eae0a72224c82f5d377af1a8 configitems: register the 'hostfingerprints' section diff -r 5cf98daad7b1 -r 8c1d0fe1f431 mercurial/configitems.py --- a/mercurial/configitems.py Thu Oct 12 00:19:12 2017 +0200 +++ b/mercurial/configitems.py Thu Oct 12 00:20:41 2017 +0200 @@ -454,6 +454,10 @@ default=dynamicdefault, generic=True, ) +coreconfigitem('hostfingerprints', '.*', + default=list, + generic=True, +) coreconfigitem('hostsecurity', 'ciphers', default=None, ) diff -r 5cf98daad7b1 -r 8c1d0fe1f431 mercurial/sslutil.py --- a/mercurial/sslutil.py Thu Oct 12 00:19:12 2017 +0200 +++ b/mercurial/sslutil.py Thu Oct 12 00:20:41 2017 +0200 @@ -200,7 +200,7 @@ s['certfingerprints'].append((alg, fingerprint)) # Fingerprints from [hostfingerprints] are always SHA-1. - for fingerprint in ui.configlist('hostfingerprints', hostname, []): + for fingerprint in ui.configlist('hostfingerprints', hostname): fingerprint = fingerprint.replace(':', '').lower() s['certfingerprints'].append(('sha1', fingerprint)) s['legacyfingerprint'] = True