blob: fe56c6f38e26b9930c5a1e91a16a05af736ce82a [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// 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
3// found in the LICENSE file.
4
5#ifndef CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
6#define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
7
8#include "crypto/crypto_export.h"
9
10namespace base {
11class Lock;
12}
13
Torne (Richard Coles)58218062012-11-14 11:43:16 +000014namespace crypto {
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
21CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock();
22
23} // namespace crypto
24
25#endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_