Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
This commit is contained in:
parent
1c80b152bd
commit
8dd7aebc23
|
@ -410,6 +410,7 @@ 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)
|
||||||
|
if certs:
|
||||||
self.load_verify_locations(cadata=certs)
|
self.load_verify_locations(cadata=certs)
|
||||||
return certs
|
return certs
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,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 #26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
|
- Issue #26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
|
||||||
to support importing packages.
|
to support importing packages.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue