cpython: 40f3f2b27112 (original) (raw)

Mercurial > cpython

changeset 101509:40f3f2b27112 2.7

Issue #27114: Fix SSLContext._load_windows_store_certs fails with PermissionError [#27114]

Steve Dower steve.dower@microsoft.com
date Thu, 26 May 2016 12:17:21 -0700
parents 1e80e53ce20d
children 2eb8bf8b1f78
files Lib/ssl.py Misc/NEWS
diffstat 2 files changed, 12 insertions(+), 5 deletions(-)[+] [-] Lib/ssl.py 14 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -141,6 +141,7 @@ from socket import socket, AF_INET, SOCK from socket import SOL_SOCKET, SO_TYPE import base64 # for DER-to-PEM translation import errno +import warnings if _ssl.HAS_TLS_UNIQUE: CHANNEL_BINDING_TYPES = ['tls-unique'] @@ -375,11 +376,14 @@ class SSLContext(_SSLContext): def _load_windows_store_certs(self, storename, purpose): certs = bytearray()

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -83,6 +83,9 @@ Core and Builtins Library ------- +- Issue #27114: Fix SSLContext._load_windows_store_certs fails with