44 lines
2.1 KiB
C#
44 lines
2.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Authentication
|
|
{
|
|
/// <summary>Defines the possible versions of <see cref="T:System.Security.Authentication.SslProtocols" />.</summary>
|
|
// Token: 0x020001CD RID: 461
|
|
[Token(Token = "0x20001CD")]
|
|
[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.</summary>
|
|
// Token: 0x04000664 RID: 1636
|
|
[Token(Token = "0x4000664")]
|
|
None = 0,
|
|
/// <summary>Specifies the SSL 2.0 protocol. SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
|
|
// Token: 0x04000665 RID: 1637
|
|
[Token(Token = "0x4000665")]
|
|
Ssl2 = 12,
|
|
/// <summary>Specifies the SSL 3.0 protocol. SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only.</summary>
|
|
// Token: 0x04000666 RID: 1638
|
|
[Token(Token = "0x4000666")]
|
|
Ssl3 = 48,
|
|
/// <summary>Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246.</summary>
|
|
// Token: 0x04000667 RID: 1639
|
|
[Token(Token = "0x4000667")]
|
|
Tls = 192,
|
|
/// <summary>Specifies the TLS 1.1 security protocol. The TLS protocol is defined in IETF RFC 4346.</summary>
|
|
// Token: 0x04000668 RID: 1640
|
|
[Token(Token = "0x4000668")]
|
|
[MonoTODO]
|
|
Tls11 = 768,
|
|
/// <summary>Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.</summary>
|
|
// Token: 0x04000669 RID: 1641
|
|
[Token(Token = "0x4000669")]
|
|
[MonoTODO]
|
|
Tls12 = 3072,
|
|
/// <summary>Use None instead of Default. Default permits only the Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 protocols to be negotiated, and those options are now considered obsolete. Consequently, Default is not allowed in many organizations. Despite the name of this field, <see cref="T:System.Net.Security.SslStream" /> does not use it as a default except under special circumstances.</summary>
|
|
// Token: 0x0400066A RID: 1642
|
|
[Token(Token = "0x400066A")]
|
|
Default = 240
|
|
}
|
|
}
|