Molybden API
Loading...
Searching...
No Matches
certificate.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CERTIFICATE_HPP
6#define MOLYBDEN_CERTIFICATE_HPP
7
8#include <vector>
9
10namespace molybden {
11
15enum class CertVerificationStatus {
16 kUnspecified,
17 kCommonNameInvalid,
18 kDateInvalid,
19 kAuthorityInvalid,
20 kNoRevocationMechanism,
21 kUnableToCheckRevocation,
22 kRevoked,
23 kInvalid,
24 kWeakSignatureAlgorithm,
25 kNonUniqueName,
26 kWeakKey,
27 kPinnedKeyMissing,
28 kNameConstraintViolation,
29 kValidityTooLong,
30 kIsEv,
31 kRevCheckingEnabled,
32 kSha1SignaturePresent,
33 kCtComplianceFailed,
34 kCertificateTransparencyRequired
35};
36
41 std::vector<char> der_encoded_value;
42
48 std::vector<Certificate> intermediate_certs;
49};
50
58 CertVerificationStatus status;
59
63 std::string short_description;
64
71};
72
73} // namespace molybden
74
75#endif // MOLYBDEN_CERTIFICATE_HPP
An error found by Chromium when verifying an SSL certificate.
Definition certificate.hpp:54
CertVerificationStatus status
The certificate verification status.
Definition certificate.hpp:58
std::string short_description
A short localized human-readable description of the verification error.
Definition certificate.hpp:63
std::string detailed_description
A detailed localized human-readable description of the verification error.
Definition certificate.hpp:70
Definition certificate.hpp:37
std::vector< char > der_encoded_value
The DER-encoded representation of the X.509 certificate data.
Definition certificate.hpp:41
std::vector< Certificate > intermediate_certs
The list of intermediate certificates associated with this certificate that may be needed for chain b...
Definition certificate.hpp:48