blob: fe56c6f38e26b9930c5a1e91a16a05af736ce82a [file] [log] [blame]
[email protected]cf211882012-07-11 07:19:141// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]4156b9a42011-03-10 23:36:162// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]4b559b4d2011-04-14 17:37:145#ifndef CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
6#define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
[email protected]4156b9a42011-03-10 23:36:167
[email protected]d613a9902011-08-05 20:59:118#include "crypto/crypto_export.h"
[email protected]e8fe9e632011-07-29 02:17:259
[email protected]4156b9a42011-03-10 23:36:1610namespace base {
[email protected]4156b9a42011-03-10 23:36:1611class Lock;
[email protected]4b559b4d2011-04-14 17:37:1412}
13
[email protected]4b559b4d2011-04-14 17:37:1414namespace crypto {
[email protected]4156b9a42011-03-10 23:36:1615
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]d613a9902011-08-05 20:59:1121CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock();
[email protected]4156b9a42011-03-10 23:36:1622
[email protected]4b559b4d2011-04-14 17:37:1423} // namespace crypto
[email protected]4156b9a42011-03-10 23:36:1624
[email protected]4b559b4d2011-04-14 17:37:1425#endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_