According to Apple's documentation, I can create and access synchronized passwords from the OS X keychain using the so-called SecItem API while providing an additional attribute kSecAttrSynchronizable. Corresponding calls: SecItemCopyMatchingor SecItemAdd.
Is it possible to read and write synchronized elements also in an outdated application that accesses the key chain through the SecKeychain API, for example, using SecKeychainSearchCreateFromAttributes?
I tried to specify an attribute kSecAttrSynchronizablein the call SecKeychainSearchCreateFromAttributes, but received an error stating that there is no corresponding attribute.
Is it possible to access iCloud keychain elements at all through the SecKeychain API? And if, how should I indicate the attribute kSecAttrSynchronizablein the queries?
source
share