Skip to content

Commit d6f56ab

Browse files
committed
Require TLS 1.2 to download curl
1 parent 65b5ed4 commit d6f56ab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

win32/deps/build/download_and_unzip.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# download 32bit library dependencies and put into expected layout for install.
22

33
. "$PSScriptRoot\util.ps1" # provides Unzip and Untar
4+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
45

56
(new-object System.Net.WebClient).DownloadFile(
67
'http://curl.haxx.se/download/curl-7.37.0.zip',

win32/deps/build/download_and_unzip_64.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# download 64bit library dependencies and put into expected layout for install.
22

33
. "$PSScriptRoot\util.ps1" # provides Unzip and Untar
4+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
45

56
(new-object System.Net.WebClient).DownloadFile('http://curl.haxx.se/download/curl-7.37.0.zip','curl-7.37.0.zip')
67
Unzip curl-7.37.0.zip .

0 commit comments

Comments
 (0)