mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
27 lines
786 B
C#
27 lines
786 B
C#
namespace NAPS2.Escl;
|
|
|
|
[Flags]
|
|
public enum EsclSecurityPolicy
|
|
{
|
|
/// <summary>
|
|
/// Allow both HTTP and HTTPS connections.
|
|
/// </summary>
|
|
None = 0,
|
|
|
|
ServerDisableHttps = 1,
|
|
ServerRequireHttps = 2,
|
|
ServerRequireTrustedCertificate = 4,
|
|
ClientDisableHttps = 8,
|
|
ClientRequireHttps = 16,
|
|
ClientRequireTrustedCertificate = 32,
|
|
|
|
/// <summary>
|
|
/// Only allow HTTPS connections, but clients will accept self-signed certificates.
|
|
/// </summary>
|
|
RequireHttps = ServerRequireHttps | ClientRequireHttps,
|
|
|
|
/// <summary>
|
|
/// Only allow HTTPS connections, and clients will only accept trusted certificates.
|
|
/// </summary>
|
|
RequireTrustedCertificate = RequireHttps | ServerRequireTrustedCertificate | ClientRequireTrustedCertificate
|
|
} |