This repository has been archived by the owner on May 25, 2020. It is now read-only.
forked from luckyrat/KeePass-Favicon-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try different TLS versions to allow download if TLS1.0 is disabled on…
… the server fixes luckyrat#20
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Security.Authentication; | ||
|
||
namespace System.Net | ||
{ | ||
/// <summary> | ||
/// https://support.microsoft.com/en-gb/help/3154517/support-for-tls-system-default-versions-included-in-the-net-framework | ||
/// </summary> | ||
public static class SecurityProtocolTypeExtensions | ||
{ | ||
public const SecurityProtocolType Tls12 = (SecurityProtocolType)SslProtocolsExtensions.Tls12; | ||
public const SecurityProtocolType Tls11 = (SecurityProtocolType)SslProtocolsExtensions.Tls11; | ||
public const SecurityProtocolType SystemDefault = (SecurityProtocolType)0; | ||
} | ||
} | ||
|
||
namespace System.Security.Authentication | ||
{ | ||
/// <summary> | ||
/// https://support.microsoft.com/en-gb/help/3154517/support-for-tls-system-default-versions-included-in-the-net-framework | ||
/// </summary> | ||
public static class SslProtocolsExtensions | ||
{ | ||
public const SslProtocols Tls12 = (SslProtocols)0x00000C00; | ||
public const SslProtocols Tls11 = (SslProtocols)0x00000300; | ||
} | ||
} |