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

Unified Diff: blimp/net/exact_match_cert_verifier.cc

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 | « blimp/net/exact_match_cert_verifier.h ('k') | blimp/net/fake_blimp_message_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/exact_match_cert_verifier.cc
diff --git a/blimp/net/exact_match_cert_verifier.cc b/blimp/net/exact_match_cert_verifier.cc
deleted file mode 100644
index 86fd5d31620d423aa91352cc4fd1aaab7252dc21..0000000000000000000000000000000000000000
--- a/blimp/net/exact_match_cert_verifier.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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 "blimp/net/exact_match_cert_verifier.h"
-
-#include <memory>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "net/base/net_errors.h"
-#include "net/cert/cert_verifier.h"
-#include "net/cert/cert_verify_result.h"
-#include "net/cert/x509_certificate.h"
-
-namespace blimp {
-
-ExactMatchCertVerifier::ExactMatchCertVerifier(
- scoped_refptr<net::X509Certificate> engine_cert)
- : engine_cert_(std::move(engine_cert)) {
- DCHECK(engine_cert_);
-
- net::SHA256HashValue sha256_hash;
- sha256_hash = net::X509Certificate::CalculateFingerprint256(
- engine_cert_->os_cert_handle());
- engine_cert_hashes_.push_back(net::HashValue(sha256_hash));
-}
-
-ExactMatchCertVerifier::~ExactMatchCertVerifier() {}
-
-int ExactMatchCertVerifier::Verify(const RequestParams& params,
- net::CRLSet* crl_set,
- net::CertVerifyResult* verify_result,
- const net::CompletionCallback& callback,
- std::unique_ptr<Request>* out_req,
- const net::NetLogWithSource& net_log) {
- verify_result->Reset();
- verify_result->verified_cert = engine_cert_;
-
- if (!params.certificate()->Equals(engine_cert_.get())) {
- verify_result->cert_status = net::CERT_STATUS_INVALID;
- return net::ERR_CERT_INVALID;
- }
-
- verify_result->public_key_hashes = engine_cert_hashes_;
- return net::OK;
-}
-
-} // namespace blimp
« no previous file with comments | « blimp/net/exact_match_cert_verifier.h ('k') | blimp/net/fake_blimp_message_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698