chromium/net/cert/ct_signed_certificate_timestamp_log_param.cc

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

#include "net/cert/ct_signed_certificate_timestamp_log_param.h"

#include <algorithm>
#include <memory>
#include <string_view>
#include <utility>

#include "base/base64.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "net/cert/ct_sct_to_string.h"
#include "net/cert/signed_certificate_timestamp.h"

namespace net {

namespace {

// Base64 encode the given |value| string and put it in |dict| with the
// description |key|.
void SetBinaryData(const char* key,
                   std::string_view value,
                   base::Value::Dict& dict) {}

// Returns a dictionary where each key is a field of the SCT and its value
// is this field's value in the SCT. This dictionary is meant to be used for
// outputting a de-serialized SCT to the NetLog.
base::Value SCTToDictionary(const ct::SignedCertificateTimestamp& sct,
                            ct::SCTVerifyStatus status) {}

// Given a list of SCTs and their statuses, return a list Value where each item
// is a dictionary created by SCTToDictionary.
base::Value::List SCTListToPrintableValues(
    const SignedCertificateTimestampAndStatusList& sct_and_status_list) {}

}  // namespace

base::Value::Dict NetLogSignedCertificateTimestampParams(
    const SignedCertificateTimestampAndStatusList* scts) {}

base::Value::Dict NetLogRawSignedCertificateTimestampParams(
    std::string_view embedded_scts,
    std::string_view sct_list_from_ocsp,
    std::string_view sct_list_from_tls_extension) {}

}  // namespace net