##// END OF EJS Templates
configitems: register the 'hostfingerprints' section
Boris Feld -
r34749:8c1d0fe1 default
parent child Browse files
Show More
@@ -454,6 +454,10 b" coreconfigitem('hooks', '.*',"
454 default=dynamicdefault,
454 default=dynamicdefault,
455 generic=True,
455 generic=True,
456 )
456 )
457 coreconfigitem('hostfingerprints', '.*',
458 default=list,
459 generic=True,
460 )
457 coreconfigitem('hostsecurity', 'ciphers',
461 coreconfigitem('hostsecurity', 'ciphers',
458 default=None,
462 default=None,
459 )
463 )
@@ -200,7 +200,7 b' def _hostsettings(ui, hostname):'
200 s['certfingerprints'].append((alg, fingerprint))
200 s['certfingerprints'].append((alg, fingerprint))
201
201
202 # Fingerprints from [hostfingerprints] are always SHA-1.
202 # Fingerprints from [hostfingerprints] are always SHA-1.
203 for fingerprint in ui.configlist('hostfingerprints', hostname, []):
203 for fingerprint in ui.configlist('hostfingerprints', hostname):
204 fingerprint = fingerprint.replace(':', '').lower()
204 fingerprint = fingerprint.replace(':', '').lower()
205 s['certfingerprints'].append(('sha1', fingerprint))
205 s['certfingerprints'].append(('sha1', fingerprint))
206 s['legacyfingerprint'] = True
206 s['legacyfingerprint'] = True
General Comments 0
You need to be logged in to leave comments. Login now