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