aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJim McGrath <jimmc2@gmail.com>2018-02-22 15:19:14 -0600
committerJim McGrath <jimmc2@gmail.com>2018-02-22 15:19:14 -0600
commitb0f2b75a2b22ae62eb2ad2ebd505d6c33520b448 (patch)
tree0368adbcac9abdbd6fac8a67b8ec471285bfad3b /scripts
parent86a652c31cba8a70eef41f999e2a6dc1be592303 (diff)
downloadvcpkg-b0f2b75a2b22ae62eb2ad2ebd505d6c33520b448.tar.gz
vcpkg-b0f2b75a2b22ae62eb2ad2ebd505d6c33520b448.zip
use TLS 1.2 for downloads
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VcpkgPowershellUtils.ps11
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1
index b73361fd1..0cad383d0 100644
--- a/scripts/VcpkgPowershellUtils.ps1
+++ b/scripts/VcpkgPowershellUtils.ps1
@@ -1,3 +1,4 @@
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
function vcpkgHasModule([Parameter(Mandatory=$true)][string]$moduleName)
{
return [bool](Get-Module -ListAvailable -Name $moduleName)