blob: e149292545ad057e13a1cd1e082f8199b8ff8a17 [file] [log] [blame]
// 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.
#ifndef NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_
#define NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_
#include <string_view>
#include "base/values.h"
#include "net/cert/signed_certificate_timestamp_and_status.h"
namespace net {
// Creates a dictionary of processed Signed Certificate Timestamps to be
// logged in the NetLog.
// See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_CHECKED
// in net/log/net_log_event_type_list.h
base::Value::Dict NetLogSignedCertificateTimestampParams(
const SignedCertificateTimestampAndStatusList* scts);
// Creates a dictionary of raw Signed Certificate Timestamps to be logged
// in the NetLog.
// See the documentation for SIGNED_CERTIFICATE_TIMESTAMPS_RECEIVED
// in net/log/net_log_event_type_list.h
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
#endif // NET_CERT_CT_SIGNED_CERTIFICATE_TIMESTAMP_LOG_PARAM_H_