xref: /aosp_15_r20/external/cronet/crypto/mac_security_services_lock.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2012 The Chromium Authors
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 
10 namespace base {
11 class Lock;
12 }
13 
14 namespace 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 // https://developer.apple.com/documentation/security/certificate_key_and_trust_services/working_with_concurrency
21 CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock();
22 
23 }  // namespace crypto
24 
25 #endif  // CRYPTO_MAC_SECURITY_SERVICES_LOCK_H_
26