Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
python.10821
python-2.7.9-sles-disable-verification-by-defau...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-2.7.9-sles-disable-verification-by-default.patch of Package python.10821
Index: Python-2.7.9/Lib/ssl.py =================================================================== --- Python-2.7.9.orig/Lib/ssl.py 2015-08-12 15:53:27.419729448 +0200 +++ Python-2.7.9/Lib/ssl.py 2015-08-12 15:58:10.668465183 +0200 @@ -469,7 +469,18 @@ return context # Used by http.client if no context is explicitly passed. -_create_default_https_context = create_default_context +try: + # load the TLS checks policy from separate package + import sle_tls_checks_policy as policy + if policy.get_policy: + _create_default_https_context = policy.get_policy() + else: + # empty policy file means simply enable strict verification + _create_default_https_context = create_default_context + +except ImportError: + # policy not present, disable verification for backwards compatibility + _create_default_https_context = _create_unverified_context # Backwards compatibility alias, even though it's not a public name.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor