]> gitweb.michael.orlitzky.com - untangle-https-backup.git/commitdiff
src/untangle/untangle.py: use cleaner way of disabling verification.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2021 03:26:55 +0000 (23:26 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2021 03:26:55 +0000 (23:26 -0400)
In the past, the internal _create_unverified_context() method of the
ssl module was used to create a context that doesn't verify
certificates. However, (now?) there is a cleaner way: by setting the
context's "check_hostname" member to False and its "verify_mode"
member to ssl.CERT_NONE. Which is exactly what this commit does.


No differences found