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

Unified 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, 5 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/ocsp_verify_result.h ('k') | net/http/transport_security_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ocsp_verify_result.cc
diff --git a/net/cert/ocsp_verify_result.cc b/net/cert/ocsp_verify_result.cc
index b5ea670ef160e2ff025e182d8c3f25ebf6645a16..35069e711d3853827a23c65e5cb12ad7a57fe121 100644
--- a/net/cert/ocsp_verify_result.cc
+++ b/net/cert/ocsp_verify_result.cc
@@ -10,4 +10,15 @@ OCSPVerifyResult::OCSPVerifyResult() = default;
OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default;
OCSPVerifyResult::~OCSPVerifyResult() = default;
+bool OCSPVerifyResult::operator==(const OCSPVerifyResult& other) const {
+ if (response_status != other.response_status)
+ return false;
+
+ if (response_status == PROVIDED) {
+ // |revocation_status| is only defined when |response_status| is PROVIDED.
+ return revocation_status == other.revocation_status;
+ }
+ return true;
+}
+
} // namespace net
« 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