1 // Copyright 2024 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_APPLE_KEYCHAIN_UTIL_H_ 6 #define CRYPTO_APPLE_KEYCHAIN_UTIL_H_ 7 8 #include <string> 9 10 #include "build/build_config.h" 11 #include "crypto/crypto_export.h" 12 13 namespace crypto { 14 15 #if !BUILDFLAG(IS_IOS) 16 // Returns whether the main executable is signed with a keychain-access-groups 17 // entitlement that contains |keychain_access_group|. 18 // The API used to query this information is not available on iOS. 19 CRYPTO_EXPORT bool ExecutableHasKeychainAccessGroupEntitlement( 20 const std::string& keychain_access_group); 21 #endif // !BUILDFLAG(IS_IOS) 22 23 } // namespace crypto 24 25 #endif // CRYPTO_APPLE_KEYCHAIN_UTIL_H_ 26