#include <cassert>
#include "trust_store.h"
#include "string_util.h"
BSSL_NAMESPACE_BEGIN
namespace {
constexpr char kUnspecifiedStr[] = …;
constexpr char kDistrustedStr[] = …;
constexpr char kTrustedAnchorStr[] = …;
constexpr char kTrustedAnchorOrLeafStr[] = …;
constexpr char kTrustedLeafStr[] = …;
constexpr char kEnforceAnchorExpiry[] = …;
constexpr char kEnforceAnchorConstraints[] = …;
constexpr char kRequireAnchorBasicConstraints[] = …;
constexpr char kRequireLeafSelfsigned[] = …;
}
bool CertificateTrust::IsTrustAnchor() const { … }
bool CertificateTrust::IsTrustLeaf() const { … }
bool CertificateTrust::IsDistrusted() const { … }
bool CertificateTrust::HasUnspecifiedTrust() const { … }
std::string CertificateTrust::ToDebugString() const { … }
std::optional<CertificateTrust> CertificateTrust::FromDebugString(
const std::string &trust_string) { … }
TrustStore::TrustStore() = default;
void TrustStore::AsyncGetIssuersOf(const ParsedCertificate *cert,
std::unique_ptr<Request> *out_req) { … }
BSSL_NAMESPACE_END