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

Side by Side Diff: net/cert/ocsp_verify_result.cc

Issue 2176413002: Enable Expect-Staple in SSLClientSocket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Expect-Staple on release builds Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « net/cert/ocsp_verify_result.h ('k') | net/http/transport_security_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/cert/ocsp_verify_result.h" 5 #include "net/cert/ocsp_verify_result.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 OCSPVerifyResult::OCSPVerifyResult() = default; 9 OCSPVerifyResult::OCSPVerifyResult() = default;
10 OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default; 10 OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default;
11 OCSPVerifyResult::~OCSPVerifyResult() = default; 11 OCSPVerifyResult::~OCSPVerifyResult() = default;
12 12
13 bool OCSPVerifyResult::operator==(const OCSPVerifyResult& other) const {
14 if (response_status != other.response_status)
15 return false;
16
17 if (response_status == PROVIDED) {
18 // |revocation_status| is only defined when |response_status| is PROVIDED.
19 return revocation_status == other.revocation_status;
20 }
21 return true;
22 }
23
13 } // namespace net 24 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/ocsp_verify_result.h ('k') | net/http/transport_security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698