blob: 85db73ef2aa7fa46adfa580e28d38322f892a2e5 [file] [log] [blame]
[email protected]4156b9a42011-03-10 23:36:161// 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
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#pragma once
8
9namespace base {
[email protected]4156b9a42011-03-10 23:36:1610class Lock;
[email protected]4b559b4d2011-04-14 17:37:1411}
12
13
14namespace 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]4b559b4d2011-04-14 17:37:1421base::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_