Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: net/cert/nss_cert_database.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow import of non-extractable keys. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/nss_cert_database.h
diff --git a/net/cert/nss_cert_database.h b/net/cert/nss_cert_database.h
index 94f1f20fb9c41d0648975b53da41f21a9ab189ea..d2e8f88c96b1b4e50332754d0afda16526403400 100644
--- a/net/cert/nss_cert_database.h
+++ b/net/cert/nss_cert_database.h
@@ -132,6 +132,12 @@ class NET_EXPORT NSSCertDatabase {
// TODO(mattm): come up with better alternative to CryptoModuleList.
virtual void ListModules(CryptoModuleList* modules, bool need_rw) const;
+ // The binary blob |pkcs8_data| is expected to be a DER-encoded ASN.1 PKCS#8
+ // private key info object.
+ bool ImportPKCS8KeyAndCertificate(const std::string& pkcs8_data,
+ X509Certificate* cert,
+ CryptoModule* module);
+
// Import certificates and private keys from PKCS #12 blob into the module.
// If |is_extractable| is false, mark the private key as being unextractable
// from the module.

Powered by Google App Engine
This is Rietveld 408576698