Chromium Code Reviews| Index: chromeos/network/client_cert_util.cc |
| diff --git a/chromeos/network/client_cert_util.cc b/chromeos/network/client_cert_util.cc |
| index c62c9ab17aace9c6b295ed85c423f7f3e2eaa4a6..eac2a2d0c9cf3f2a1fa46f16944025f56989cc8c 100644 |
| --- a/chromeos/network/client_cert_util.cc |
| +++ b/chromeos/network/client_cert_util.cc |
| @@ -259,9 +259,14 @@ bool IsCertificateConfigured(const client_cert::ConfigType cert_config_type, |
| // OpenVPN generally requires a passphrase and we don't know whether or |
| // not one is required, so always return false here. |
| return false; |
| - case CONFIG_TYPE_IPSEC: |
| - // IPSec may require a passphrase, so return false here also. |
| - return false; |
| + case CONFIG_TYPE_IPSEC: { |
|
stevenjb
2014/02/14 16:44:13
nit: if (!provider_properties) return false;
|
| + std::string client_cert_id; |
| + if (provider_properties) { |
| + provider_properties->GetStringWithoutPathExpansion( |
| + shill::kL2tpIpsecClientCertIdProperty, &client_cert_id); |
| + } |
| + return !client_cert_id.empty(); |
| + } |
| case CONFIG_TYPE_EAP: { |
| std::string cert_id = GetStringFromDictionary( |
| service_properties, shill::kEapCertIdProperty); |