##// END OF EJS Templates
configitems: register the 'hostsecurity.*:fingerprints' config
Boris Feld -
r34776:17919e90 default
parent child Browse files
Show More
@@ -483,6 +483,10 b" coreconfigitem('hostsecurity', '.*:ciphe"
483 483 default=dynamicdefault,
484 484 generic=True,
485 485 )
486 coreconfigitem('hostsecurity', '.*:fingerprints$',
487 default=list,
488 generic=True,
489 )
486 490 coreconfigitem('http_proxy', 'always',
487 491 default=False,
488 492 )
@@ -186,8 +186,7 b' def _hostsettings(ui, hostname):'
186 186
187 187 # Look for fingerprints in [hostsecurity] section. Value is a list
188 188 # of <alg>:<fingerprint> strings.
189 fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname,
190 [])
189 fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname)
191 190 for fingerprint in fingerprints:
192 191 if not (fingerprint.startswith(('sha1:', 'sha256:', 'sha512:'))):
193 192 raise error.Abort(_('invalid fingerprint for %s: %s') % (
General Comments 0
You need to be logged in to leave comments. Login now