Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions nanoFramework.System.Net/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System.Reflection;
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//

using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand All @@ -11,7 +16,7 @@

////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
[assembly: AssemblyNativeVersion("100.2.0.1")]
[assembly: AssemblyNativeVersion("100.2.0.11")]
////////////////////////////////////////////////////////////////

// Setting ComVisible to false makes the types in this assembly not visible
Expand Down
41 changes: 28 additions & 13 deletions nanoFramework.System.Net/Security/NetworkSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,51 @@
namespace System.Net.Security
{
/// <summary>
/// Defines the possible versions of Secure Sockets Layer (SSL).
/// Defines the possible versions of <see cref="SslProtocols"/>. This enumeration supports a bitwise combination of its member values.
/// </summary>
/// <remarks>
/// Note: Following the recommendation of the .NET documentation, nanoFramework implementation does not have SSL3 nor Default because those are deprecated and unsecure.
/// <para>
/// During the handshake, the client sends a list of SSL versions and the server chooses the best matching version from that list.
/// </para>
/// <para>
/// Note: Following the full .NET implementation, .NET nanoFramework does not have any of the SSL nor Default because those are deprecated and unsecure.
/// </para>
/// </remarks>
[FlagsAttribute]
[Flags]
public enum SslProtocols
{
/// <summary>
/// Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this field.
/// Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this value.
/// </summary>
None = 0x00,

/// <summary>
/// Specifies the TLS 1.0 security protocol.
/// The TLS protocol is defined in IETF RFC 2246.
/// Specifies the TLS 1.0 security protocol. TLS 1.0 is provided for backward compatibility only. The TLS protocol is defined in IETF RFC 2246. This member is obsolete and will be removed in a future version.
/// </summary>
Tls = 0x10,
/// <remarks>
/// If the underlying platform does not support TLS 1.0, the connection attempt will use the minimum version supported instead.
/// </remarks>
[Obsolete("This value is obsolete and unsecured and will be removed in a future version.")]
Tls = 192,

/// <summary>
/// Specifies the TLS 1.1 security protocol.
/// The TLS protocol is defined in IETF RFC 4346.
/// Specifies the TLS 1.1 security protocol. The TLS protocol is defined in IETF RFC 4346. This member is obsolete and will be removed in a future version.
/// </summary>
Tls11 = 0x20,
/// <remarks>
/// If the underlying platform does not support TLS 1.1, the connection attempt will use the minimum version supported instead.
/// </remarks>
[Obsolete("This value is obsolete and unsecured and will be removed in a future version.")]
Tls11 = 768,

/// <summary>
/// Specifies the TLS 1.2 security protocol.
/// The TLS protocol is defined in IETF RFC 5246.
/// Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.
/// </summary>
Tls12 = 0x40,
Tls12 = 3072,

/// <summary>
/// Specifies the TLS 1.3 security protocol. The TLS protocol is defined in IETF RFC 8446.
/// </summary>
Tls13 = 12288,
}

/// <summary>
Expand Down
5 changes: 1 addition & 4 deletions nanoFramework.System.Net/System.Net.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
<NFMDP_PE_ExcludeClassByName Include="PhyProtocols">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
<NFMDP_PE_ExcludeClassByName Include="SslProtocols">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
<NFMDP_PE_ExcludeClassByName Include="SslVerification">
<InProject>false</InProject>
</NFMDP_PE_ExcludeClassByName>
Expand Down Expand Up @@ -163,4 +160,4 @@
<Error Condition="!Exists('..\packages\Nerdbank.GitVersioning.3.6.139\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Nerdbank.GitVersioning.3.6.139\build\Nerdbank.GitVersioning.targets'))" />
</Target>
<Import Project="..\packages\Nerdbank.GitVersioning.3.6.139\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\packages\Nerdbank.GitVersioning.3.6.139\build\Nerdbank.GitVersioning.targets')" />
</Project>
</Project>
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.10",
"version": "1.11",
"assemblyVersion": {
"precision": "build"
},
Expand Down