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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CRYPTO_NSS_UTIL_INTERNAL_H_ 5 #ifndef CRYPTO_NSS_UTIL_INTERNAL_H_
6 #define CRYPTO_NSS_UTIL_INTERNAL_H_ 6 #define CRYPTO_NSS_UTIL_INTERNAL_H_
7 7
8 #include <secmodt.h> 8 #include <secmodt.h>
9 9
10 #include "crypto/crypto_export.h" 10 #include "crypto/crypto_export.h"
(...skipping 20 matching lines...) Expand all
31 class AutoSECMODListReadLock { 31 class AutoSECMODListReadLock {
32 public: 32 public:
33 AutoSECMODListReadLock(); 33 AutoSECMODListReadLock();
34 ~AutoSECMODListReadLock(); 34 ~AutoSECMODListReadLock();
35 35
36 private: 36 private:
37 SECMODListLock* lock_; 37 SECMODListLock* lock_;
38 DISALLOW_COPY_AND_ASSIGN(AutoSECMODListReadLock); 38 DISALLOW_COPY_AND_ASSIGN(AutoSECMODListReadLock);
39 }; 39 };
40 40
41 #if defined(OS_CHROMEOS)
42 // Returns a reference to the ChromeOS TPM key slot for slot id. Caller must
43 // release returned reference with PK11_FreeSlot.
44 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.
45 #endif
46
41 } // namespace crypto 47 } // namespace crypto
42 48
43 #endif // CRYPTO_NSS_UTIL_INTERNAL_H_ 49 #endif // CRYPTO_NSS_UTIL_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698