Function

SecIdentitySearchCopyNext

Finds the next identity matching specified search criteria

Declaration

OSStatus SecIdentitySearchCopyNext(SecIdentitySearchRef searchRef, SecIdentityRef  _Nullable *identity);

Parameters

searchRef

An identity search object specifying the search criteria for this search. You create the identity search object by calling the SecIdentitySearchCreate function.

identity

On return, points to the identity object of the next matching identity (if any). Call the CFRelease function to release this object when finished with it.

Return Value

A result code. See Security Framework Result Codes. When there are no more identities that match the parameters specified to SecIdentitySearchCreate, errSecItemNotFound is returned.

See Also

Identity Search

SecIdentitySearchRef

Contains information about an identity search.

SecIdentitySearchCreate

Creates a search object for finding identities.

Deprecated
SecIdentitySearchGetTypeID

Returns the unique identifier of the opaque type to which a SecIdentitySearch object belongs.

Deprecated