1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[KOE-62] Added Tls1.1 and Tls1.2 as allowed protocols

This commit is contained in:
Patrick Simpson 2017-01-18 11:45:52 +01:00 committed by Patrick Simpson
parent 501328079d
commit addafa51ab

View File

@ -47,6 +47,7 @@ namespace Acacia.ZPush.Connect
static ZPushConnection() static ZPushConnection()
{ {
ServicePointManager.ServerCertificateValidationCallback = HandleCertificateError; ServicePointManager.ServerCertificateValidationCallback = HandleCertificateError;
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
} }
private static readonly Dictionary<string, bool> _allowCertificateErrors = new Dictionary<string, bool>(); private static readonly Dictionary<string, bool> _allowCertificateErrors = new Dictionary<string, bool>();