* Remove quadratic behavior within GzipDecoder.decompress() (Issue #1467) * Restored functionality of ciphers parameter for create_urllib3_context(). (Issue #1462) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=55
12 lines
515 B
Diff
12 lines
515 B
Diff
--- a/src/urllib3/util/ssl_.py
|
|
+++ b/src/urllib3/util/ssl_.py
|
|
@@ -330,6 +330,8 @@ def ssl_wrap_socket(sock, keyfile=None,
|
|
elif getattr(context, 'load_default_certs', None) is not None:
|
|
# try to load OS default certs; works well on Windows (require Python3.4+)
|
|
context.load_default_certs()
|
|
+ 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)
|