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

Unified Diff: crypto/nss_util_internal.h

Issue 36593002: crypto/nss_util: Get TPM slot id, do lookup by id instead of by name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sandbox debugging crap Created 7 years, 2 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: crypto/nss_util_internal.h
diff --git a/crypto/nss_util_internal.h b/crypto/nss_util_internal.h
index 056ec28c165d19b39a8c6a5643172216e587793e..e64e278c4b6e14ecb52bd0f34f2c29addb853071 100644
--- a/crypto/nss_util_internal.h
+++ b/crypto/nss_util_internal.h
@@ -38,6 +38,12 @@ class AutoSECMODListReadLock {
DISALLOW_COPY_AND_ASSIGN(AutoSECMODListReadLock);
};
+#if defined(OS_CHROMEOS)
+// Returns a reference to the ChromeOS TPM key slot for slot id. Caller must
+// release returned reference with PK11_FreeSlot.
+CRYPTO_EXPORT PK11SlotInfo* GetTPMSlotForId(CK_SLOT_ID slot_id);
Ryan Sleevi 2013/10/24 01:26:21 I'm not sure why you need to expose this - did I m
mattm 2013/10/24 01:59:07 Yeah, it's not in this CL. I'll remove it for now.
+#endif
+
} // namespace crypto
#endif // CRYPTO_NSS_UTIL_INTERNAL_H_

Powered by Google App Engine
This is Rietveld 408576698