Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: net/cert/ct_objects_extractor.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/ct_log_verifier_unittest.cc ('k') | net/cert/ct_objects_extractor_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_objects_extractor.h
diff --git a/net/cert/ct_objects_extractor.h b/net/cert/ct_objects_extractor.h
deleted file mode 100644
index d8fc5f95e52f245e109c300b71ad11ef8e6593d5..0000000000000000000000000000000000000000
--- a/net/cert/ct_objects_extractor.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 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_CT_OBJECTS_EXTRACTOR_H_
-#define NET_CERT_CT_OBJECTS_EXTRACTOR_H_
-
-#include <string>
-
-#include "net/base/net_export.h"
-#include "net/cert/x509_certificate.h"
-
-namespace net {
-
-namespace ct {
-
-struct LogEntry;
-
-// Extracts a SignedCertificateTimestampList that has been embedded within a
-// leaf cert as an X.509v3 extension with the OID 1.3.6.1.4.1.11129.2.4.2.
-// If the extension is present, returns true, updating |*sct_list| to contain
-// the encoded list, minus the DER encoding necessary for the extension.
-// |*sct_list| can then be further decoded with ct::DecodeSCTList
-NET_EXPORT_PRIVATE bool ExtractEmbeddedSCTList(
- X509Certificate::OSCertHandle cert,
- std::string* sct_list);
-
-// Obtains a PrecertChain log entry for |leaf|, an X.509v3 certificate that
-// contains an X.509v3 extension with the OID 1.3.6.1.4.1.11129.2.4.2. On
-// success, fills |*result| with the data for a PrecertChain log entry and
-// returns true.
-// The filled |*result| should be verified using ct::CTLogVerifier::Verify
-// Note: If |leaf| does not contain the required extension, it is treated as
-// a failure.
-NET_EXPORT_PRIVATE bool GetPrecertLogEntry(X509Certificate::OSCertHandle leaf,
- X509Certificate::OSCertHandle issuer,
- LogEntry* result);
-
-// Obtains an X509Chain log entry for |leaf|, an X.509v3 certificate that
-// is not expected to contain an X.509v3 extension with the OID
-// 1.3.6.1.4.1.11129.2.4.2 (meaning a certificate without an embedded SCT).
-// On success, fills |result| with the data for an X509Chain log entry and
-// returns true.
-// The filled |*result| should be verified using ct::CTLogVerifier::Verify
-NET_EXPORT_PRIVATE bool GetX509LogEntry(X509Certificate::OSCertHandle leaf,
- LogEntry* result);
-
-// Extracts a SignedCertificateTimestampList that has been embedded within
-// an OCSP response as an extension with the OID 1.3.6.1.4.1.11129.2.4.5.
-// If the extension is present, and the response matches the issuer and
-// serial number, returns true, updating |*sct_list| to contain
-// the encoded list, minus the DER encoding necessary for the extension.
-// |*sct_list| can then be further decoded with ct::DecodeSCTList.
-NET_EXPORT_PRIVATE bool ExtractSCTListFromOCSPResponse(
- X509Certificate::OSCertHandle issuer,
- const std::string& cert_serial_number,
- const std::string& ocsp_response,
- std::string* sct_list);
-
-} // namespace ct
-
-} // namespace net
-
-#endif // NET_CERT_CT_OBJECTS_EXTRACTOR_H_
« no previous file with comments | « net/cert/ct_log_verifier_unittest.cc ('k') | net/cert/ct_objects_extractor_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698