Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(185991)

Unified Diff: Lib/asyncio/selector_events.py

Issue 19689: ssl.create_default_context()
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/ftplib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/asyncio/selector_events.py Fri Nov 22 16:20:53 2013 +0100
+++ b/Lib/asyncio/selector_events.py Fri Nov 22 18:04:20 2013 +0100
@@ -571,10 +571,8 @@
# context; in that case the sslcontext passed is None.
# The default is the same as used by urllib with
# cadefault=True.
- sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
- sslcontext.options |= ssl.OP_NO_SSLv2
- sslcontext.set_default_verify_paths()
- sslcontext.verify_mode = ssl.CERT_REQUIRED
+ sslcontext = ssl.create_default_context(
+ cert_reqs=ssl.CERT_REQUIRED)
wrap_kwargs = {
'server_side': server_side,
« no previous file with comments | « no previous file | Lib/ftplib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+