]> gitweb.michael.orlitzky.com - untangle-https-backup.git/commit
src/untangle/untangle.py: use cleaner way of disabling verification. master
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)
commita132da3976a2449f50c2e3d97e64573ed581feb8
treeac65b98d3ce3fbd3513035e7b32db1a959c16227
parenta55c225b9dd34e4c28c3e379c701ac8b6887d20f
src/untangle/untangle.py: use cleaner way of disabling verification.

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.
src/untangle/untangle.py