Index: chromeos/network/onc/onc_utils.h |
diff --git a/chromeos/network/onc/onc_utils.h b/chromeos/network/onc/onc_utils.h |
index 6a6d273fe62f13d27682e98b4999c355330b91b8..4ed1315cb7671475cc7258418a84cad310f63c4a 100644 |
--- a/chromeos/network/onc/onc_utils.h |
+++ b/chromeos/network/onc/onc_utils.h |
@@ -5,12 +5,14 @@ |
#ifndef CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
#define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
+#include <map> |
#include <string> |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
#include "chromeos/chromeos_export.h" |
#include "chromeos/network/onc/onc_constants.h" |
+#include "net/cert/x509_certificate.h" |
namespace base { |
class DictionaryValue; |
@@ -86,6 +88,26 @@ CHROMEOS_EXPORT bool ParseAndValidateOncForImport( |
base::ListValue* network_configs, |
base::ListValue* certificates); |
+CHROMEOS_EXPORT std::string GetHexFingerprintOfCert( |
+ const net::X509Certificate& cert); |
+ |
+CHROMEOS_EXPORT net::X509Certificate* FindCertByFingerprint( |
+ const net::CertificateList& cert_list, const std::string& fingerprint); |
+ |
+CHROMEOS_EXPORT std::string GetPEMEncodedCertFromFingerprint( |
+ const net::CertificateList& cert_list, |
+ const std::string& fingerprint); |
+ |
+CHROMEOS_EXPORT bool ResolveServerCertRefsInNetworks( |
+ const std::map<std::string, |
+ scoped_refptr<net::X509Certificate> >& certs_by_guid, |
+ base::ListValue* network_configs); |
+ |
+CHROMEOS_EXPORT bool ResolveServerCertRefsInNetwork( |
+ const std::map<std::string, |
+ scoped_refptr<net::X509Certificate> >& certs_by_guid, |
+ base::DictionaryValue* network_configs); |
+ |
} // namespace onc |
} // namespace chromeos |