| 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 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // If not empty, sets the TPM properties in |properties|. If |pkcs11_id| is not | 48 // If not empty, sets the TPM properties in |properties|. If |pkcs11_id| is not |
| 49 // NULL, also sets the ClientCertID. |cert_config_type| determines which | 49 // NULL, also sets the ClientCertID. |cert_config_type| determines which |
| 50 // dictionary entries to set. | 50 // dictionary entries to set. |
| 51 void SetShillProperties(const ConfigType cert_config_type, | 51 void SetShillProperties(const ConfigType cert_config_type, |
| 52 const std::string& tpm_slot, | 52 const std::string& tpm_slot, |
| 53 const std::string& tpm_pin, | 53 const std::string& tpm_pin, |
| 54 const std::string* pkcs11_id, | 54 const std::string* pkcs11_id, |
| 55 base::DictionaryValue* properties); | 55 base::DictionaryValue* properties); |
| 56 | 56 |
| 57 // Returns true if all required configuration properties are set and not empty. |
| 58 bool IsCertificateConfigured(const client_cert::ConfigType cert_config_type, |
| 59 const base::DictionaryValue& service_properties); |
| 60 |
| 57 } // namespace client_cert | 61 } // namespace client_cert |
| 58 | 62 |
| 59 } // namespace chromeos | 63 } // namespace chromeos |
| 60 | 64 |
| 61 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ | 65 #endif // CHROMEOS_NETWORK_CLIENT_CERT_UTIL_H_ |
| OLD | NEW |