ssl: incorrect initalization of default context; Thanks to stuart-mclaren
https://github.com/eventlet/eventlet/issues/226
This commit is contained in:
@@ -359,7 +359,7 @@ if hasattr(__ssl, 'sslwrap_simple'):
|
||||
if hasattr(__ssl, 'SSLContext'):
|
||||
@functools.wraps(__ssl.SSLContext.wrap_socket)
|
||||
def _green_sslcontext_wrap_socket(self, sock, *a, **kw):
|
||||
return GreenSSLSocket(sock, *a, **kw)
|
||||
return GreenSSLSocket(sock, *a, _context=self, **kw)
|
||||
|
||||
# FIXME:
|
||||
# * GreenSSLContext akin to GreenSSLSocket
|
||||
|
3
tests/manual/regress-226-unpatched-ssl.py
Normal file
3
tests/manual/regress-226-unpatched-ssl.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import eventlet
|
||||
import requests
|
||||
requests.get('https://www.google.com/').status_code
|
Reference in New Issue
Block a user