chromium/third_party/openscreen/src/cast/common/certificate/boringssl_util.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cast/common/certificate/boringssl_util.h"

#include <cstdint>
#include <string_view>

#include "util/osp_logging.h"

namespace openscreen::cast {
namespace {

// Parse the data in |time| at |index| as a two-digit ascii number. Note this
// function assumes the caller already did a bounds check and checked the inputs
// are digits.
uint8_t ParseAsn1TimeDoubleDigit(std::string_view time, size_t index) {}

// Parses DateTime with additional restrictions laid out by RFC 5280
// 4.1.2.5.2.
bool ParseAsn1GeneralizedTime(ASN1_GENERALIZEDTIME* time, DateTime* out) {}

}  // namespace

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) {}

}  // namespace openscreen::cast