Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

If item exists, update on save, rather than delete and re-add #65

Closed
wants to merge 1 commit into from

Conversation

eahrold
Copy link

@eahrold eahrold commented May 11, 2014

Deleting and readding the keychain was causing me some strange behavior, such as not being able to find the new values immediately. It may have been an issue with security caching entitlements, regardless this fixed it for me.

There's one bit of code at line 51 where the kSecAttrSynchronizable is removed from the query,
if you don't do this SecItemUpdate will work fine, and update the keychain attars correctly, but will still return a status of -34018.

This may clear up issues discussed in #52.

@eahrold eahrold closed this Oct 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant