Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

removeAllKeys does not delete any items that were saved with synchronizable as true #179

Open
MujiP opened this issue Nov 2, 2022 · 0 comments

Comments

@MujiP
Copy link

MujiP commented Nov 2, 2022

The query dict passed to SecItemDelete in removeAllKeys does not contain any value for the synchronizable attribute, so it actually defaults to false, deleting only those items that are false, and leaving out items that were saved with true. The same also applies with the wipeKeychain method. We should add a value for sync to specify any.

From the documentation on the sync attribute:

If the key is not supplied, or has a value of kCFBooleanFalse, then no synchronizable items are added or returned. Use kSecAttrSynchronizableAny to query for both synchronizable and non-synchronizable results.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant