[email protected] | cf21188 | 2012-07-11 07:19:14 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 5 | #ifndef CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ |
6 | #define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ | ||||
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 7 | |
[email protected] | d613a990 | 2011-08-05 20:59:11 | [diff] [blame] | 8 | #include "crypto/crypto_export.h" |
[email protected] | e8fe9e63 | 2011-07-29 02:17:25 | [diff] [blame] | 9 | |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 10 | namespace base { |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 11 | class Lock; |
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 12 | } |
13 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 14 | namespace crypto { |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 15 | |
16 | // The Mac OS X certificate and key management wrappers over CSSM are not | ||||
17 | // thread-safe. In particular, code that accesses the CSSM database is | ||||
18 | // problematic. | ||||
19 | // | ||||
20 | // http://developer.apple.com/mac/library/documentation/Security/Reference/certifkeytrustservices/Reference/reference.html | ||||
[email protected] | d613a990 | 2011-08-05 20:59:11 | [diff] [blame] | 21 | CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock(); |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 22 | |
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 23 | } // namespace crypto |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 24 | |
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 25 | #endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ |