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

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

Issue 2021433004: Cert - protobufs to serialize and deserialize CertVerifierCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_support_for_walking_1999733002
Patch Set: Minor fix to comment Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/cert_verify_result.h" 5 #include "net/cert/cert_verify_result.h"
6 6
7 #include "net/cert/x509_certificate.h" 7 #include "net/cert/x509_certificate.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 14 matching lines...) Expand all
25 has_md5 = false; 25 has_md5 = false;
26 has_sha1 = false; 26 has_sha1 = false;
27 has_sha1_leaf = false; 27 has_sha1_leaf = false;
28 is_issued_by_known_root = false; 28 is_issued_by_known_root = false;
29 is_issued_by_additional_trust_anchor = false; 29 is_issued_by_additional_trust_anchor = false;
30 common_name_fallback_used = false; 30 common_name_fallback_used = false;
31 31
32 public_key_hashes.clear(); 32 public_key_hashes.clear();
33 } 33 }
34 34
35 bool CertVerifyResult::operator==(const CertVerifyResult& other) const {
36 return verified_cert->Equals(other.verified_cert.get()) &&
37 cert_status == other.cert_status && has_md2 == other.has_md2 &&
38 has_md4 == other.has_md4 && has_md5 == other.has_md5 &&
39 has_sha1 == other.has_sha1 && has_sha1_leaf == other.has_sha1_leaf &&
40 public_key_hashes == other.public_key_hashes &&
41 is_issued_by_known_root == other.is_issued_by_known_root &&
42 is_issued_by_additional_trust_anchor ==
43 other.is_issued_by_additional_trust_anchor &&
44 common_name_fallback_used == other.common_name_fallback_used;
Ryan Sleevi 2016/06/22 22:32:20 Could also do: return verified_cert->Equals(other
ramant (doing other things) 2016/06/22 23:25:22 Done.
45 }
46
35 } // namespace net 47 } // namespace net
OLDNEW
« components/cronet/cert/cert_verifier_cache_serializer.cc ('K') | « net/cert/cert_verify_result.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698