-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLS > 1.0 support for .NET < 4.5 through the extension classes.
git-svn-id: https://svn.openstreetmap.org/applications/utils/Srtm2Osm/trunk@33755 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
- Loading branch information
Showing
3 changed files
with
24 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
12 changes: 12 additions & 0 deletions
12
Brejc.Common.Library/Compatibility/SecurityProtocolTypeExtensions.cs
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,12 @@ | ||
// 1:1 copy from Microsoft's KB3154518 | ||
|
||
namespace System.Net | ||
{ | ||
using System.Security.Authentication; | ||
public static class SecurityProtocolTypeExtensions | ||
{ | ||
public const SecurityProtocolType Tls12 = (SecurityProtocolType)SslProtocolsExtensions.Tls12; | ||
public const SecurityProtocolType Tls11 = (SecurityProtocolType)SslProtocolsExtensions.Tls11; | ||
public const SecurityProtocolType SystemDefault = (SecurityProtocolType)0; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Brejc.Common.Library/Compatibility/SslProtocolsExtensions.cs
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,10 @@ | ||
// 1:1 copy from Microsoft's KB3154518 | ||
|
||
namespace System.Security.Authentication | ||
{ | ||
public static class SslProtocolsExtensions | ||
{ | ||
public const SslProtocols Tls12 = (SslProtocols)0x00000C00; | ||
public const SslProtocols Tls11 = (SslProtocols)0x00000300; | ||
} | ||
} |