Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-03-01 03:49:46 +0300
committerGitHub <noreply@github.com>2018-03-01 03:49:46 +0300
commit6854a1786fd77e5246a0f688a8a66c46c4ea5d3a (patch)
tree6b4dd2503c159036e58184b69265d20dca61b1ab
parent1a9c2acde90fc3e4da5e109e05c9265d1321e711 (diff)
parentb685aa8e7ed1311250885b93840020d4f750b4da (diff)
Merge pull request #1537 from libgit2/ethomson/subtransport_tls12
SmartSubtransport: use TLS 1.2 for tests
-rw-r--r--LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs b/LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs
index 950b6fc8..e72c0d7c 100644
--- a/LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs
+++ b/LibGit2Sharp.Tests/desktop/SmartSubtransportFixture.cs
@@ -259,6 +259,8 @@ namespace LibGit2Sharp.Tests
private static HttpWebRequest CreateWebRequest(string endpointUrl, bool isPost, string contentType)
{
+ ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
+
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(endpointUrl);
webRequest.UserAgent = "git/1.0 (libgit2 custom transport)";
webRequest.ServicePoint.Expect100Continue = false;