Kaydet (Commit) 9cb2074f authored tarafından Steve Dower's avatar Steve Dower

Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.

üst 2bf60cb0
...@@ -380,7 +380,8 @@ class SSLContext(_SSLContext): ...@@ -380,7 +380,8 @@ class SSLContext(_SSLContext):
if encoding == "x509_asn": if encoding == "x509_asn":
if trust is True or purpose.oid in trust: if trust is True or purpose.oid in trust:
certs.extend(cert) certs.extend(cert)
self.load_verify_locations(cadata=certs) if certs:
self.load_verify_locations(cadata=certs)
return certs return certs
def load_default_certs(self, purpose=Purpose.SERVER_AUTH): def load_default_certs(self, purpose=Purpose.SERVER_AUTH):
......
...@@ -58,6 +58,9 @@ Core and Builtins ...@@ -58,6 +58,9 @@ Core and Builtins
Library Library
------- -------
- Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store
is empty. Patch by Baji.
- Issue #26513: Fixes platform module detection of Windows Server - Issue #26513: Fixes platform module detection of Windows Server
- Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by - Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment