OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MAC_SECURITY_SERVICES_LOCK_H_ | 5 #ifndef CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ |
6 #define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ | 6 #define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "crypto/crypto_api.h" | 9 #include "crypto/crypto_export.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class Lock; | 12 class Lock; |
13 } | 13 } |
14 | 14 |
15 | 15 |
16 namespace crypto { | 16 namespace crypto { |
17 | 17 |
18 // The Mac OS X certificate and key management wrappers over CSSM are not | 18 // The Mac OS X certificate and key management wrappers over CSSM are not |
19 // thread-safe. In particular, code that accesses the CSSM database is | 19 // thread-safe. In particular, code that accesses the CSSM database is |
20 // problematic. | 20 // problematic. |
21 // | 21 // |
22 // http://developer.apple.com/mac/library/documentation/Security/Reference/certi
fkeytrustservices/Reference/reference.html | 22 // http://developer.apple.com/mac/library/documentation/Security/Reference/certi
fkeytrustservices/Reference/reference.html |
23 CRYPTO_API base::Lock& GetMacSecurityServicesLock(); | 23 CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock(); |
24 | 24 |
25 } // namespace crypto | 25 } // namespace crypto |
26 | 26 |
27 #endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ | 27 #endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_ |
OLD | NEW |