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

Unified Diff: chromeos/cert_loader.h

Issue 182313004: Remove GetPkcs11Id from x509_certificate_model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: .. Created 6 years, 9 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
« no previous file with comments | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | chromeos/cert_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cert_loader.h
diff --git a/chromeos/cert_loader.h b/chromeos/cert_loader.h
index 848a2c8ec8376e5e4d64e23a21f9eefb3ddd5533..8968b3c4d419afb724625e8d63fa7a793a948420 100644
--- a/chromeos/cert_loader.h
+++ b/chromeos/cert_loader.h
@@ -57,6 +57,13 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer {
// Returns true if the global instance has been initialized.
static bool IsInitialized();
+ // Returns the PKCS#11 attribute CKA_ID for a certificate as an upper-case
+ // hex string, or the empty string if none is found. Note that the returned ID
+ // should be used only to identify the cert in its slot.
+ // This should be used only for user certificates, assuming that only one
+ // private slot is loaded for a user.
+ // TODO(tbarzic): Make this check cert slot id if we start loading
+ // certificates for secondary users.
static std::string GetPkcs11IdForCert(const net::X509Certificate& cert);
// Starts the CertLoader with the NSS cert database.
« no previous file with comments | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | chromeos/cert_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698