blob: 67498a7c3b5352086424e1ac10ff881391b33015 [file] [log] [blame] [edit]
diff -Naur Python-3.8.0-orig/Lib/ssl.py Python-3.8.0/Lib/ssl.py
--- Python-3.8.0-orig/Lib/ssl.py 2019-10-14 16:34:47.000000000 +0300
+++ Python-3.8.0/Lib/ssl.py 2019-10-22 10:04:00.493059100 +0300
@@ -249,7 +249,7 @@
CHANGE_CIPHER_SPEC = 0x0101
-if sys.platform == "win32":
+if sys.platform == "win32" and sys.version.find("GCC") == -1:
from _ssl import enum_certificates, enum_crls
from socket import socket, AF_INET, SOCK_STREAM, create_connection
@@ -569,7 +569,7 @@
def load_default_certs(self, purpose=Purpose.SERVER_AUTH):
if not isinstance(purpose, _ASN1Object):
raise TypeError(purpose)
- if sys.platform == "win32":
+ if sys.platform == "win32" and sys.version.find("GCC") == -1:
for storename in self._windows_cert_stores:
self._load_windows_store_certs(storename, purpose)
self.set_default_verify_paths()