#include "cast/common/certificate/boringssl_util.h"
#include <cstdint>
#include <string_view>
#include "util/osp_logging.h"
namespace openscreen::cast {
namespace {
uint8_t ParseAsn1TimeDoubleDigit(std::string_view time, size_t index) { … }
bool ParseAsn1GeneralizedTime(ASN1_GENERALIZEDTIME* time, DateTime* out) { … }
}
bool VerifySignedData(const EVP_MD* digest,
EVP_PKEY* public_key,
const ByteView& data,
const ByteView& signature) { … }
ErrorOr<DateTime> GetNotBeforeTime(X509* cert) { … }
ErrorOr<DateTime> GetNotAfterTime(X509* cert) { … }
}