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

Unified Diff: net/cert/do_nothing_ct_verifier.cc

Issue 2540293004: Add a do-nothing CTVerifier to //net (Closed)
Patch Set: Grammar bad 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
« no previous file with comments | « net/cert/do_nothing_ct_verifier.h ('k') | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..a22867a147937ae386eebadddb1f485b71d0c1ca
--- /dev/null
+++ b/net/cert/do_nothing_ct_verifier.cc
@@ -0,0 +1,24 @@
+// Copyright 2016 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.
+
+#include "net/cert/do_nothing_ct_verifier.h"
+
+#include "net/base/net_errors.h"
+
+namespace net {
+
+DoNothingCTVerifier::DoNothingCTVerifier() = default;
+DoNothingCTVerifier::~DoNothingCTVerifier() = default;
+
+int DoNothingCTVerifier::Verify(
+ X509Certificate* cert,
+ const std::string& stapled_ocsp_response,
+ const std::string& sct_list_from_tls_extension,
+ SignedCertificateTimestampAndStatusList* output_scts,
+ const NetLogWithSource& net_log) {
+ output_scts->clear();
+ return ERR_CT_NO_SCTS_VERIFIED_OK;
+}
+
+} // namespace net
« no previous file with comments | « net/cert/do_nothing_ct_verifier.h ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698