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

Unified Diff: net/cert/do_nothing_ct_verifier.cc

Issue 2604513002: Optimize CT & OCSP handling code (Closed)
Patch Set: Actually optimize for OCSP Created 4 years 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
Index: net/cert/do_nothing_ct_verifier.cc
diff --git a/net/cert/do_nothing_ct_verifier.cc b/net/cert/do_nothing_ct_verifier.cc
index a22867a147937ae386eebadddb1f485b71d0c1ca..0429d86e765c8dcaa9f9c177865aa5eb0a25bd63 100644
--- a/net/cert/do_nothing_ct_verifier.cc
+++ b/net/cert/do_nothing_ct_verifier.cc
@@ -11,14 +11,15 @@ namespace net {
DoNothingCTVerifier::DoNothingCTVerifier() = default;
DoNothingCTVerifier::~DoNothingCTVerifier() = default;
-int DoNothingCTVerifier::Verify(
+void DoNothingCTVerifier::Verify(
X509Certificate* cert,
- const std::string& stapled_ocsp_response,
- const std::string& sct_list_from_tls_extension,
+ base::StringPiece stapled_ocsp_response,
+ base::StringPiece sct_list_from_tls_extension,
SignedCertificateTimestampAndStatusList* output_scts,
const NetLogWithSource& net_log) {
output_scts->clear();
- return ERR_CT_NO_SCTS_VERIFIED_OK;
}
+void DoNothingCTVerifier::SetObserver(Observer* observer) {}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698