[tomboy] WebSyncService: expand supported TLS versions list
- From: Alex Tereschenko <alexter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] WebSyncService: expand supported TLS versions list
- Date: Sat, 20 May 2017 08:24:30 +0000 (UTC)
commit e6327fa22468d657b67d58affe07f563ea2d160c
Author: Alex Tereschenko <frozen and blue gmail com>
Date: Tue May 16 23:24:24 2017 +0200
WebSyncService: expand supported TLS versions list
Signed-off-by: Alex Tereschenko <frozen and blue gmail com>
.../WebSyncService/Api/AnonymousConnection.cs | 2 ++
Tomboy/Addins/WebSyncService/Api/OAuth.cs | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/Addins/WebSyncService/Api/AnonymousConnection.cs
b/Tomboy/Addins/WebSyncService/Api/AnonymousConnection.cs
index 7c377e2..0e7dc84 100644
--- a/Tomboy/Addins/WebSyncService/Api/AnonymousConnection.cs
+++ b/Tomboy/Addins/WebSyncService/Api/AnonymousConnection.cs
@@ -67,6 +67,8 @@ namespace Tomboy.WebSync.Api
string responseData = string.Empty;
HttpWebRequest webRequest;
+ ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls12;
+
ServicePointManager.CertificatePolicy = new CertificateManager ();
try {
diff --git a/Tomboy/Addins/WebSyncService/Api/OAuth.cs b/Tomboy/Addins/WebSyncService/Api/OAuth.cs
index 6f24953..f30f1dc 100644
--- a/Tomboy/Addins/WebSyncService/Api/OAuth.cs
+++ b/Tomboy/Addins/WebSyncService/Api/OAuth.cs
@@ -231,6 +231,8 @@ namespace Tomboy.WebSync.Api
{
var responseData = string.Empty;
+ ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls12;
+
ServicePointManager.CertificatePolicy = new CertificateManager ();
// TODO: Set UserAgent, Timeout, KeepAlive, Proxy?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]