// Copyright © 2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
///
///
/// Supported certificate status code values. See net\cert\cert_status_flags.h
/// for more information. CERT_STATUS_NONE is new in CEF because we use an
/// enum while cert_status_flags.h uses a typedef and static const variables.
///
[Flags]
public enum CertStatus
{
///
/// None
///
None = 0,
///
/// CommonNameInvalid
///
CommonNameInvalid = 1 << 0,
///
/// DateInvalid
///
DateInvalid = 1 << 1,
///
/// AuthorityInvalid
///
AuthorityInvalid = 1 << 2,
// 1 << 3 is reserved for ERR_CERT_CONTAINS_ERRORS (not useful with WinHTTP).
///
/// NoRevocation_Mechanism
///
NoRevocation_Mechanism = 1 << 4,
///
/// UnableToCheckRevocation
///
UnableToCheckRevocation = 1 << 5,
///
/// Revoked
///
Revoked = 1 << 6,
///
/// Invalid
///
Invalid = 1 << 7,
///
/// WeakSignatureAlgorithm
///
WeakSignatureAlgorithm = 1 << 8,
// 1 << 9 was used for CERT_STATUS_NOT_IN_DNS
///
/// NonUniqueName
///
NonUniqueName = 1 << 10,
///
/// WeakKey
///
WeakKey = 1 << 11,
// 1 << 12 was used for CERT_STATUS_WEAK_DH_KEY
///
/// PinnedKeyMissing
///
PinnedKeyMissing = 1 << 13,
///
/// NameConstraintViolation
///
NameConstraintViolation = 1 << 14,
///
/// ValidityTooLong
///
ValidityTooLong = 1 << 15,
// Bits 16 to 31 are for non-error statuses.
///
/// IsEv
///
IsEv = 1 << 16,
///
/// RevCheckingEnabled
///
RevCheckingEnabled = 1 << 17,
// Bit 18 was CERT_STATUS_IS_DNSSEC
///
/// Sha1SignaturePresent
///
Sha1SignaturePresent = 1 << 19,
///
/// CtComplianceFailed
///
CtComplianceFailed = 1 << 20
}
}