Skip to content

Commit

Permalink
Fix for Mono below v6.x (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Nov 7, 2021
1 parent 7655def commit 4e34c93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/GKCore/GKCore/GKUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2758,13 +2758,14 @@ public static bool UseEmbeddedViewer(GDMMultimediaFormat format)

public static void InitSecurityProtocol()
{
#if NET35 || NET40
// Mono v4.6 doesn't contain SecurityProtocolType.Tls11
#if NET35 || NET40 || MONO
const int Tls11 = 768;
const int Tls12 = 3072;
#endif

try {
#if NET35 || NET40
#if NET35 || NET40 || MONO
ServicePointManager.SecurityProtocol =
(SecurityProtocolType)(ServicePointManager.SecurityProtocol |
SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls |
Expand Down

0 comments on commit 4e34c93

Please sign in to comment.