1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/cert/ct_objects_extractor.h"
7 #include "base/logging.h"
13 bool ExtractEmbeddedSCTList(X509Certificate::OSCertHandle cert
,
14 std::string
* sct_list
) {
19 bool GetPrecertLogEntry(X509Certificate::OSCertHandle leaf
,
20 X509Certificate::OSCertHandle issuer
,
26 bool GetX509LogEntry(X509Certificate::OSCertHandle leaf
, LogEntry
* result
) {
31 bool ExtractSCTListFromOCSPResponse(X509Certificate::OSCertHandle issuer
,
32 const std::string
& cert_serial_number
,
33 const std::string
& ocsp_response
,
34 std::string
* sct_list
) {