Import SSL in Windows (get.exe)

Closes: https://github.com/espressif/arduino-esp32/pull/820
This commit is contained in:
me-no-dev 2017-11-28 11:20:50 +01:00
parent 1fae11a7f2
commit 62fa954f14
2 changed files with 1 additions and 0 deletions

Binary file not shown.

1
tools/get.py Executable file → Normal file
View File

@ -80,6 +80,7 @@ def get_tool(tool):
print('Downloading ' + archive_name);
sys.stdout.flush()
if 'CYGWIN_NT' in sys_name:
import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE