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
parent 1e690a63e6
commit 6d135c0ddc

View File

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