Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
python-doc.15305
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-doc.15305
--- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -495,7 +495,17 @@ def _get_https_context_factory(): config_setting = os.environ.get(_https_verify_envvar) if config_setting == '0': return _create_unverified_context - return create_default_context + + try: + # load the TLS checks policy from separate package + import sle_tls_checks_policy as policy + if policy.get_policy: + return policy.get_policy() + else: + # empty policy file means simply enable strict verification + return create_default_context + except ImportError: + return create_default_context _create_default_https_context = _get_https_context_factory()
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