--- 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,
)
--- 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