According to Apple's documentation, I can create and access synchronised passwords from the OS X keychain using the so-called SecItem API when providing an additional kSecAttrSynchronizable
attribute. The corresponding calls are SecItemCopyMatching
or SecItemAdd
.
Is it possible to read / write synchronised items as well in a legacy application that accesses the keychain via the SecKeychain API, for instance, using SecKeychainSearchCreateFromAttributes
?
I have tried to specify the kSecAttrSynchronizable
attribute in the call of SecKeychainSearchCreateFromAttributes
, but got an error stating that there is no matching attribute.
Is it possible at all to access the iCloud keychain items via the SecKeychain API? And if, how must I specify the kSecAttrSynchronizable
attribute in queries?
I posted the same question on the Apple developer forums, the straight answer I got was: "no".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With