equal
deleted
inserted
replaced
241 # and CA certs don't come into play. |
241 # and CA certs don't come into play. |
242 hostfingerprint = ui.config('hostfingerprints', host) |
242 hostfingerprint = ui.config('hostfingerprints', host) |
243 if hostfingerprint: |
243 if hostfingerprint: |
244 return kws |
244 return kws |
245 |
245 |
246 # dispatch sets web.cacerts=! when --insecure is used. |
246 # The code below sets up CA verification arguments. If --insecure is |
|
247 # used, we don't take CAs into consideration, so return early. |
|
248 if ui.insecureconnections: |
|
249 return kws |
|
250 |
247 cacerts = ui.config('web', 'cacerts') |
251 cacerts = ui.config('web', 'cacerts') |
|
252 # TODO remove check when we stop setting this config. |
248 if cacerts == '!': |
253 if cacerts == '!': |
249 return kws |
254 return kws |
250 |
255 |
251 # If a value is set in the config, validate against a path and load |
256 # If a value is set in the config, validate against a path and load |
252 # and require those certs. |
257 # and require those certs. |