Mercurial > libervia-desktop-kivy
changeset 438:58d3ea442f9c
core (patches): renamed `apply` to `disable_tls_validation` which suits better
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 07 Mar 2020 00:05:49 +0100 |
parents | b5e6d36fbf9c |
children | 12d188cb1206 |
files | cagou/core/cagou_main.py cagou/core/patches.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Sat Mar 07 00:05:49 2020 +0100 +++ b/cagou/core/cagou_main.py Sat Mar 07 00:05:49 2020 +0100 @@ -464,7 +464,7 @@ C.BOOL_FALSE)) if not self.tls_validation: from cagou.core import patches - patches.apply() + patches.disable_tls_validation() log.warning("SSL certificate validation is disabled, this is unsecure!") local_platform.on_host_init(self)
--- a/cagou/core/patches.py Sat Mar 07 00:05:49 2020 +0100 +++ b/cagou/core/patches.py Sat Mar 07 00:05:49 2020 +0100 @@ -20,7 +20,7 @@ import ssl -def apply(): +def disable_tls_validation(): # allow to disable certificate validation ctx_no_verify = ssl.create_default_context() ctx_no_verify.check_hostname = False