如何检索SecKeychainRef
对象的属性?
由于
答案 0 :(得分:2)
对于那些寻找替换已弃用的SecKeychainSearchCreateFromAttributes
(这是引导我访问此页面的搜索)的问题的更一般性答案的人,SecItemCopyMatching
就是所需要的。
答案 1 :(得分:0)
根据上面的对话,听起来好像您正在寻找SecKeychainFindGenericPassword()
或SecKeychainFindInternetPassword()
。有关在Mac OS X中使用钥匙串的更多信息,包括最近弃用的API的替换,您应该阅读Keychain Services Programming Guide