8000 Merge pull request #1537 from libgit2/ethomson/subtransport_tls12 · vrkcse2011/libgit2sharp@6854a17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6854a17

Browse files
authored
Merge pull request libgit2#1537 from libgit2/ethomson/subtransport_tls12
SmartSubtransport: use TLS 1.2 for tests
2 parents 1a9c2ac + b685aa8 commit 6854a17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ public override int Write(Stream dataStream, long length)
259259

260260
private static HttpWebRequest CreateWebRequest(string endpointUrl, bool isPost, string contentType)
261261
{
262+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
263+
262264
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(endpointUrl);
263265
webRequest.UserAgent = "git/1.0 (libgit2 custom transport)";
264266
webRequest.ServicePoint.Expect100Continue = false;

0 commit comments

Comments
 (0)
0