| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |