HttpServerBoxed 0.0.11 alpha
A simple http server for C# and .NET
Loading...
Searching...
No Matches
HSB.Constants.TLS Namespace Reference

Enumerations

enum  SSL_PORT_MODE { SINGLE_PORT , DUAL_PORT }
 This enum is used to determine if the server should listen on a single port for both HTTP and HTTPS or if it should listen on two different ports Note that when SSL is not set this setting is ignored (and is considered analog to a single port) More...
 
enum  TLSVersion {
  NOT_SET = 0x0000 , TLS_1_0 = 0x0301 , TLS_1_1 = 0x0302 , TLS_1_2 = 0x0303 ,
  TLS_1_3 = 0x0304
}
 

Enumeration Type Documentation

◆ SSL_PORT_MODE

This enum is used to determine if the server should listen on a single port for both HTTP and HTTPS or if it should listen on two different ports Note that when SSL is not set this setting is ignored (and is considered analog to a single port)

Definition at line 7 of file SSLPortMode.cs.

7 {
8 SINGLE_PORT, //One port for both HTTP and HTTPS, note that at the moment if SSL is enabled we cannot determine if the content of an HTTP request
9 DUAL_PORT, //One for the SSL and one for the plain HTTP
10}

◆ TLSVersion

enum HSB.Constants.TLS.TLSVersion

Definition at line 3 of file TLSVersions.cs.

4{
5 NOT_SET = 0x0000,
6 [Obsolete("TLS 1.0 is deprecated and should not be used.")]
7 TLS_1_0 = 0x0301,
8 [Obsolete("TLS 1.1 is deprecated and should not be used.")]
9 TLS_1_1 = 0x0302,
10 TLS_1_2 = 0x0303,
11 TLS_1_3 = 0x0304
12}