mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
This commit is contained in:
commit
3ca3342307
2 changed files with 5 additions and 1 deletions
|
@ -410,7 +410,8 @@ class SSLContext(_SSLContext):
|
|||
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):
|
||||
|
|
|
@ -226,6 +226,9 @@ Core and Builtins
|
|||
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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue