blob: 22dd9cc141a82c1d53aba82ba04120743180fcdc [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_CERT_X509_CERTIFICATE_NET_LOG_PARAM_H_
#define NET_CERT_X509_CERTIFICATE_NET_LOG_PARAM_H_
#include <memory>
#include "net/base/net_export.h"
namespace base {
class Value;
}
namespace net {
class X509Certificate;
// Creates NetLog parameter to describe an X509Certificate.
NET_EXPORT base::Value NetLogX509CertificateParams(
const X509Certificate* certificate);
// Creates NetLog parameter to describe verification inputs: an X509Certificate,
// hostname, VerifyFlags and optional OCSP response and SCT list.
NET_EXPORT base::Value NetLogX509CertificateVerifyParams(
const X509Certificate* certificate,
const std::string& hostname,
int verify_flags,
const std::string& ocsp_response,
const std::string& sct_list);
} // namespace net
#endif // NET_CERT_X509_CERTIFICATE_NET_LOG_PARAM_H_