[Python-checkins] cpython (3.5): Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is
steve.dower
python-checkins at python.org
Thu Mar 17 18:03:41 EDT 2016
https://hg.python.org/cpython/rev/eb2c2671e7d6
changeset: 100581:eb2c2671e7d6
branch: 3.5
parent: 100578:915f158633f4
user: Steve Dower <steve.dower at microsoft.com>
date: Thu Mar 17 15:02:39 2016 -0700
summary:
Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
files:
Lib/ssl.py | 3 ++-
Misc/NEWS | 3 +++
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Lib/ssl.py b/Lib/ssl.py
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -410,7 +410,8 @@
if encoding == "x509_asn":
if trust is True or purpose.oid in trust:
certs.extend(cert)
- self.load_verify_locations(cadata=certs)
+ if certs:
+ self.load_verify_locations(cadata=certs)
return certs
def load_default_certs(self, purpose=Purpose.SERVER_AUTH):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,9 @@
Library
-------
+- Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store
+ is empty. Patch by Baji.
+
- Issue #26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
to support importing packages.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list