| 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 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/network/certificate_pattern.h" | 13 #include "chromeos/network/certificate_pattern.h" |
| 14 #include "components/onc/onc_constants.h" | 14 #include "components/onc/onc_constants.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 struct CertPrincipal; | 21 struct CertPrincipal; |
| 22 class X509Certificate; | 22 class X509Certificate; |
| 23 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; | 23 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 | 27 |
| 28 namespace client_cert { | 28 namespace client_cert { |
| 29 | 29 |
| 30 CHROMEOS_EXPORT extern const char kDefaultTPMPin[]; |
| 31 |
| 30 enum ConfigType { | 32 enum ConfigType { |
| 31 CONFIG_TYPE_NONE, | 33 CONFIG_TYPE_NONE, |
| 32 CONFIG_TYPE_OPENVPN, | 34 CONFIG_TYPE_OPENVPN, |
| 33 CONFIG_TYPE_IPSEC, | 35 CONFIG_TYPE_IPSEC, |
| 34 CONFIG_TYPE_EAP | 36 CONFIG_TYPE_EAP |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 struct CHROMEOS_EXPORT ClientCertConfig { | 39 struct CHROMEOS_EXPORT ClientCertConfig { |
| 38 ClientCertConfig(); | 40 ClientCertConfig(); |
| 39 ClientCertConfig(const ClientCertConfig& other); | 41 ClientCertConfig(const ClientCertConfig& other); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 CHROMEOS_EXPORT void OncToClientCertConfig( | 107 CHROMEOS_EXPORT void OncToClientCertConfig( |
| 106 ::onc::ONCSource onc_source, | 108 ::onc::ONCSource onc_source, |
| 107 const base::DictionaryValue& network_config, | 109 const base::DictionaryValue& network_config, |
| 108 ClientCertConfig* cert_config); | 110 ClientCertConfig* cert_config); |
| 109 | 111 |
| 110 } // namespace client_cert | 112 } // namespace client_cert |
| 111 | 113 |
| 112 } // namespace chromeos | 114 } // namespace chromeos |
| 113 | 115 |
| 114 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ | 116 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ |
| OLD | NEW |