diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-03-17 22:02:39 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-03-17 22:02:39 (GMT) |
commit | 8dd7aebc23b3303bc22fcde598a2e43895046057 (patch) | |
tree | 0952b658fd746093f28f509c2b3ec60b84e6de3b /Lib | |
parent | 1c80b152bd7a793b40a729bddf19c10660b06202 (diff) | |
download | cpython-8dd7aebc23b3303bc22fcde598a2e43895046057.zip cpython-8dd7aebc23b3303bc22fcde598a2e43895046057.tar.gz cpython-8dd7aebc23b3303bc22fcde598a2e43895046057.tar.bz2 |
Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ssl.py | 3 |
1 files changed, 2 insertions, 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): |