| 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 CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ | 5 #ifndef CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ |
| 6 #define CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ | 6 #define CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 enum ConfigType { | 29 enum ConfigType { |
| 30 CONFIG_TYPE_NONE, | 30 CONFIG_TYPE_NONE, |
| 31 CONFIG_TYPE_OPENVPN, | 31 CONFIG_TYPE_OPENVPN, |
| 32 CONFIG_TYPE_IPSEC, | 32 CONFIG_TYPE_IPSEC, |
| 33 CONFIG_TYPE_EAP | 33 CONFIG_TYPE_EAP |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 struct CHROMEOS_EXPORT ClientCertConfig { | 36 struct CHROMEOS_EXPORT ClientCertConfig { |
| 37 ClientCertConfig(); | 37 ClientCertConfig(); |
| 38 ClientCertConfig(const ClientCertConfig& other); |
| 38 | 39 |
| 39 // Independent of whether the client cert (pattern or reference) is | 40 // Independent of whether the client cert (pattern or reference) is |
| 40 // configured, the location determines whether this network configuration | 41 // configured, the location determines whether this network configuration |
| 41 // supports client certs and what kind of configuration it requires. | 42 // supports client certs and what kind of configuration it requires. |
| 42 ConfigType location; | 43 ConfigType location; |
| 43 | 44 |
| 44 // One of the ClientCertTypes defined in ONC: kNone, kRef, or kPattern. | 45 // One of the ClientCertTypes defined in ONC: kNone, kRef, or kPattern. |
| 45 std::string client_cert_type; | 46 std::string client_cert_type; |
| 46 | 47 |
| 47 // If |client_cert_type| equals kPattern, this contains the pattern. | 48 // If |client_cert_type| equals kPattern, this contains the pattern. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // pattern within an EAP, IPsec or OpenVPN configuration. | 100 // pattern within an EAP, IPsec or OpenVPN configuration. |
| 100 CHROMEOS_EXPORT void OncToClientCertConfig( | 101 CHROMEOS_EXPORT void OncToClientCertConfig( |
| 101 const base::DictionaryValue& network_config, | 102 const base::DictionaryValue& network_config, |
| 102 ClientCertConfig* cert_config); | 103 ClientCertConfig* cert_config); |
| 103 | 104 |
| 104 } // namespace client_cert | 105 } // namespace client_cert |
| 105 | 106 |
| 106 } // namespace chromeos | 107 } // namespace chromeos |
| 107 | 108 |
| 108 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ | 109 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ |
| OLD | NEW |