Can kSecUseKeychain be used with SecItemCopyMatching?
I'm trying to find a way to display to the user on which KeyChain some items are.
Can
be used withkSecUseKeychain?SecItemCopyMatching
No.
kSecUseKeychain is only relevant when adding items. The doc comments in the header are pretty clear about this:
You use this key to specify a value of type
to whichSecKeychainRefwill add the provided item(s).SecItemAdd
The droid you’re looking for is
kSecMatchSearchList. It’s doc comments say:
If provided, the search will be limited to the keychains contained in this list.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"