Index: chromeos/network/client_cert_util.h |
diff --git a/chromeos/network/client_cert_util.h b/chromeos/network/client_cert_util.h |
index 7046ef75f5f827764e97e3f61abf49da352b6340..9e3b0a2de8d66630301dcdcf29e7ae24ab5d3143 100644 |
--- a/chromeos/network/client_cert_util.h |
+++ b/chromeos/network/client_cert_util.h |
@@ -63,6 +63,11 @@ CHROMEOS_EXPORT scoped_refptr<net::X509Certificate> GetCertificateMatch( |
const CertificatePattern& pattern, |
const net::CertificateList& all_certs); |
+// Returns the PKCS11 id part of |cert_id|, which is expected to be the value of |
+// the Shill property kEapCertIdProperty or kEapKeyIdProperty. |
+CHROMEOS_EXPORT std::string GetPkcs11IdFromEapCertId( |
+ const std::string& cert_id); |
+ |
// If not empty, sets the TPM properties in |properties|. If |pkcs11_id| is not |
// NULL, also sets the ClientCertID. |cert_config_type| determines which |
// dictionary entries to set. |