14
0

Accepting request 373515 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/373515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=32
This commit is contained in:
2016-03-17 15:35:27 +00:00
committed by Git OBS Bridge
parent 0c15285eec
commit 609b1fd7b0
4 changed files with 65 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
Index: b/urllib3/util/ssl_.py
===================================================================
--- a/urllib3/util/ssl_.py
+++ b/urllib3/util/ssl_.py
@@ -299,6 +299,8 @@ def ssl_wrap_socket(sock, keyfile=None,
if e.errno == errno.ENOENT:
raise SSLError(e)
raise
+ elif cert_reqs != ssl.CERT_NONE and hasattr(context, 'set_default_verify_paths'):
+ context.set_default_verify_paths()
if certfile:
context.load_cert_chain(certfile, keyfile)