OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |