Accepting request 349384 from home:rjschwei:branches:devel:languages:python

- Modify no-default-cacert
  + The call to set_default_verify_paths() is not necessary. The openSUSE
    and SLES Python has been patched to always use the system certs.
    Additionally this call breaks the use of python-requests on older systems,
    openSUSE_13.2 and original release of SLES 12 which fall back to
    the built in implementation of ssl which doe not implement
    this method

OBS-URL: https://build.opensuse.org/request/show/349384
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=83
This commit is contained in:
Denisart Benjamin 2015-12-29 13:50:34 +00:00 committed by Git OBS Bridge
parent 78a8f66a4b
commit 60197780b7
2 changed files with 11 additions and 11 deletions

View File

@ -29,14 +29,3 @@
if __name__ == '__main__':
print(where())
--- a/requests/packages/urllib3/util/ssl_.py
+++ b/requests/packages/urllib3/util/ssl_.py
@@ -278,6 +278,8 @@ def ssl_wrap_socket(sock, keyfile=None,
if e.errno == errno.ENOENT:
raise SSLError(e)
raise
+ elif cert_reqs != CERT_NONE:
+ context.set_default_verify_paths()
if certfile:
context.load_cert_chain(certfile, keyfile)

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Dec 17 13:45:59 UTC 2015 - rjschwei@suse.com
- Modify no-default-cacert
+ The call to set_default_verify_paths() is not necessary. The openSUSE
and SLES Python has been patched to always use the system certs.
Additionally this call breaks the use of python-requests on older systems,
openSUSE_13.2 and original release of SLES 12 which fall back to
the built in implementation of ssl which doe not implement
this method
-------------------------------------------------------------------
Wed Oct 21 21:08:29 UTC 2015 - dmueller@suse.com