David
David

Reputation: 14404

How to get attributes of SecKeychainRef?

How do I retrieve the attributes of a SecKeychainRef object?

Thanks

Upvotes: 0

Views: 1659

Answers (2)

user2067021
user2067021

Reputation: 4529

For those looking for a more general answer to the question of a replacement for the deprecated SecKeychainSearchCreateFromAttributes (which is the search that lead me to this page), SecItemCopyMatching is what is needed.

Upvotes: 3

Jonathan Grynspan
Jonathan Grynspan

Reputation: 43472

Based on the conversation above, sounds like you're looking for SecKeychainFindGenericPassword() or SecKeychainFindInternetPassword(). For more information on using the keychain in Mac OS X, including replacements for recently-deprecated APIs, you should read the Keychain Services Programming Guide

Upvotes: 0

Related Questions