Function

SecKeychainCopyDomainSearchList

Retrieves the keychain search list for a specified preference domain.

Declaration

OSStatus SecKeychainCopyDomainSearchList(SecPreferencesDomain domain, CFArrayRef  _Nullable *searchList);

Parameters

domain

The preference domain from which you wish to retrieve the keychain search list. See SecPreferencesDomain for possible domain values.

searchList

On return, a pointer to the keychain search list of the specified preference domain.

Return Value

Discussion

A preference domain is a set of security-related preferences, such as the default keychain and the current keychain search list. Use this function if you want to retrieve the keychain search list for a specific preference domain. Use the SecKeychainCopySearchList function if you want the keychain search list for the current preference domain. See the SecKeychainSetPreferenceDomain function for a discussion of current and default preference domains.

See Also

Preference Domains

SecKeychainGetPreferenceDomain

Gets the current keychain preference domain.

SecKeychainSetPreferenceDomain

Sets the keychain preference domain.

SecKeychainCopyDomainDefault

Retrieves the default keychain from a specified preference domain.

SecKeychainSetDomainDefault

Sets the default keychain for a specified preference domain.

SecKeychainSetDomainSearchList

Sets the keychain search list for a specified preference domain.

SecPreferencesDomain

The keychain preference domains.