| OLD | NEW |
| 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 #ifndef NET_BASE_SSL_CONFIG_SERVICE_H_ | 5 #ifndef NET_BASE_SSL_CONFIG_SERVICE_H_ |
| 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ | 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // True if we should send client_cert to the server. | 91 // True if we should send client_cert to the server. |
| 92 bool send_client_cert; | 92 bool send_client_cert; |
| 93 | 93 |
| 94 bool verify_ev_cert; // True if we should verify the certificate for EV. | 94 bool verify_ev_cert; // True if we should verify the certificate for EV. |
| 95 | 95 |
| 96 bool ssl3_fallback; // True if we are falling back to SSL 3.0 (one still | 96 bool ssl3_fallback; // True if we are falling back to SSL 3.0 (one still |
| 97 // needs to clear tls1_enabled). | 97 // needs to clear tls1_enabled). |
| 98 | 98 |
| 99 // The list of application level protocols supported. If set, this will | 99 // The list of application level protocols supported. If set, this will |
| 100 // enable Next Protocol Negotiation (if supported). This is a list of 8-bit | 100 // enable Next Protocol Negotiation (if supported). The order of the |
| 101 // length prefixed strings. The order of the protocols doesn't matter expect | 101 // protocols doesn't matter expect for one case: if the server supports Next |
| 102 // for one case: if the server supports Next Protocol Negotiation, but there | 102 // Protocol Negotiation, but there is no overlap between the server's and |
| 103 // is no overlap between the server's and client's protocol sets, then the | 103 // client's protocol sets, then the first protocol in this list will be |
| 104 // first protocol in this list will be requested by the client. | 104 // requested by the client. |
| 105 std::string next_protos; | 105 std::vector<std::string> next_protos; |
| 106 | 106 |
| 107 scoped_refptr<X509Certificate> client_cert; | 107 scoped_refptr<X509Certificate> client_cert; |
| 108 | 108 |
| 109 scoped_refptr<CRLSet> crl_set; | 109 scoped_refptr<CRLSet> crl_set; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 // The interface for retrieving the SSL configuration. This interface | 112 // The interface for retrieving the SSL configuration. This interface |
| 113 // does not cover setting the SSL configuration, as on some systems, the | 113 // does not cover setting the SSL configuration, as on some systems, the |
| 114 // SSLConfigService objects may not have direct access to the configuration, or | 114 // SSLConfigService objects may not have direct access to the configuration, or |
| 115 // live longer than the configuration preferences. | 115 // live longer than the configuration preferences. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void ProcessConfigUpdate(const SSLConfig& orig_config, | 192 void ProcessConfigUpdate(const SSLConfig& orig_config, |
| 193 const SSLConfig& new_config); | 193 const SSLConfig& new_config); |
| 194 | 194 |
| 195 private: | 195 private: |
| 196 ObserverList<Observer> observer_list_; | 196 ObserverList<Observer> observer_list_; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace net | 199 } // namespace net |
| 200 | 200 |
| 201 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ | 201 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ |
| OLD | NEW |