mac_security_services_lock.h 764 B

12345678910111213141516171819202122232425
  1. // 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. #ifndef CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
  5. #define CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
  6. #include "crypto/crypto_export.h"
  7. namespace base {
  8. class Lock;
  9. }
  10. namespace crypto {
  11. // The Mac OS X certificate and key management wrappers over CSSM are not
  12. // thread-safe. In particular, code that accesses the CSSM database is
  13. // problematic.
  14. //
  15. // http://developer.apple.com/mac/library/documentation/Security/Reference/certifkeytrustservices/Reference/reference.html
  16. CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock();
  17. } // namespace crypto
  18. #endif // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_