New submission from Christian Heimes:
A few weeks ago I suggested the addition of ssl.create_default_context() to the
stdlib. The patch implements my proposal. It replaces code in several of
modules with one central function. The patch also removes ssl.wrap_socket() in
favor for a SSLContext object.
As soon as #19292 gets accepted I'll add the additional keyword argument
"purpose=None" to the arguments of ssl.create_default_context() in order to
load the default system certs::
if purpose is not None and verify_mode != CERT_NONE:
context.load_default_certs(purpose)
----------
components: Library (Lib)
files: ssl_create_default_context.patch
keywords: patch
messages: 203718
nosy: christian.heimes, giampaolo.rodola, gvanrossum, janssen, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: ssl.create_default_context()
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file32770/ssl_create_default_context.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com