mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
merge 3.4 (#22417)
This commit is contained in:
commit
1cca273669
11 changed files with 115 additions and 69 deletions
10
Lib/ssl.py
10
Lib/ssl.py
|
@ -436,8 +436,7 @@ def create_default_context(purpose=Purpose.SERVER_AUTH, *, cafile=None,
|
|||
context.load_default_certs(purpose)
|
||||
return context
|
||||
|
||||
|
||||
def _create_stdlib_context(protocol=PROTOCOL_SSLv23, *, cert_reqs=None,
|
||||
def _create_unverified_context(protocol=PROTOCOL_SSLv23, *, cert_reqs=None,
|
||||
check_hostname=False, purpose=Purpose.SERVER_AUTH,
|
||||
certfile=None, keyfile=None,
|
||||
cafile=None, capath=None, cadata=None):
|
||||
|
@ -478,6 +477,13 @@ def _create_stdlib_context(protocol=PROTOCOL_SSLv23, *, cert_reqs=None,
|
|||
|
||||
return context
|
||||
|
||||
# Used by http.client if no context is explicitly passed.
|
||||
_create_default_https_context = create_default_context
|
||||
|
||||
|
||||
# Backwards compatibility alias, even though it's not a public name.
|
||||
_create_stdlib_context = _create_unverified_context
|
||||
|
||||
|
||||
class SSLObject:
|
||||
"""This class implements an interface on top of a low-level SSL object as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue