#include "cast/common/certificate/cast_cert_validator.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
#include <memory>
#include <utility>
#include "cast/common/certificate/cast_crl.h"
#include "cast/common/public/parsed_certificate.h"
#include "cast/common/public/trust_store.h"
#include "util/osp_logging.h"
namespace openscreen::cast {
namespace {
static constexpr uint8_t kAudioOnlyPolicyBytes[] = …;
static constexpr ByteView kAudioOnlyPolicyOid{ … };
CastDeviceCertPolicy GetAudioPolicy(
const std::vector<const ParsedCertificate*>& path) { … }
}
Error VerifyDeviceCert(const std::vector<std::string>& der_certs,
const DateTime& time,
std::unique_ptr<ParsedCertificate>* target_cert,
CastDeviceCertPolicy* policy,
const CastCRL* crl,
CRLPolicy crl_policy,
TrustStore* trust_store) { … }
}