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

Side by Side Diff: net/cert/cert_verifier.h

Issue 1999733002: Add support for walking and modifying the CachingCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_cache
Patch Set: Constify 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
« no previous file with comments | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/cert_verifier.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_CERT_CERT_VERIFIER_H_ 5 #ifndef NET_CERT_CERT_VERIFIER_H_
6 #define NET_CERT_CERT_VERIFIER_H_ 6 #define NET_CERT_CERT_VERIFIER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const scoped_refptr<X509Certificate>& certificate() const { 110 const scoped_refptr<X509Certificate>& certificate() const {
111 return certificate_; 111 return certificate_;
112 } 112 }
113 const std::string& hostname() const { return hostname_; } 113 const std::string& hostname() const { return hostname_; }
114 int flags() const { return flags_; } 114 int flags() const { return flags_; }
115 const std::string& ocsp_response() const { return ocsp_response_; } 115 const std::string& ocsp_response() const { return ocsp_response_; }
116 const CertificateList& additional_trust_anchors() const { 116 const CertificateList& additional_trust_anchors() const {
117 return additional_trust_anchors_; 117 return additional_trust_anchors_;
118 } 118 }
119 119
120 bool operator==(const RequestParams& other) const;
120 bool operator<(const RequestParams& other) const; 121 bool operator<(const RequestParams& other) const;
121 122
122 private: 123 private:
123 scoped_refptr<X509Certificate> certificate_; 124 scoped_refptr<X509Certificate> certificate_;
124 std::string hostname_; 125 std::string hostname_;
125 int flags_; 126 int flags_;
126 std::string ocsp_response_; 127 std::string ocsp_response_;
127 CertificateList additional_trust_anchors_; 128 CertificateList additional_trust_anchors_;
128 129
129 // Used to optimize sorting/indexing comparisons. 130 // Used to optimize sorting/indexing comparisons.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual bool SupportsOCSPStapling(); 169 virtual bool SupportsOCSPStapling();
169 170
170 // Creates a CertVerifier implementation that verifies certificates using 171 // Creates a CertVerifier implementation that verifies certificates using
171 // the preferred underlying cryptographic libraries. 172 // the preferred underlying cryptographic libraries.
172 static std::unique_ptr<CertVerifier> CreateDefault(); 173 static std::unique_ptr<CertVerifier> CreateDefault();
173 }; 174 };
174 175
175 } // namespace net 176 } // namespace net
176 177
177 #endif // NET_CERT_CERT_VERIFIER_H_ 178 #endif // NET_CERT_CERT_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/cert/caching_cert_verifier_unittest.cc ('k') | net/cert/cert_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698