I do this same thing. I pass a zero for the keyUsage parameter to
SecIdentitySearchCreate. What are you passing there?
My code does get all the certs on the CAC.
Paul Nelson
Thursby Software Systems.
> From: Cole Barnes <email@hidden>
> Date: Wed, 10 May 2006 15:54:27 -0500
> To: Perry The Cynic <email@hidden>, <email@hidden>
> Subject: Re: opening smart card keychains
>
> I am calling SecKeychainCopySearchList() first; it's my understanding
> that when this function is called, it gives you back the search list
> used by Keychain Access. Does this include all keychains shown by
> Keychain Access?
>
> I then take that search list and pass it to SecIdentitySearchCreate()
> and loop through the results using SecIdentitySearchCopyNext() to get
> my identities. The problem is, the only things returned in the search
> are from my default keychain (login) and not from the union of all
> keychains visible in Keychain Access.