Skip to content

Commit

Permalink
keychain: also ignore accc key
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Oct 21, 2024
1 parent fa49cfc commit 57bccce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rpcclient/rpcclient/darwin/keychain.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

logger = logging.getLogger(__name__)


class Keychain:
""" keychain utils """

Expand Down Expand Up @@ -67,7 +66,8 @@ def _query(self, class_type: Symbol) -> list[dict]:
raise RpcPermissionError()

# results contain a reference which isn't plist-serializable
removal_key = self._client.cf('v_Ref')
keys_to_remove = [self._client.cf('v_Ref'), self._client.cf('accc')]
for i in range(result.objc_call('count')):
result.objc_call('objectAtIndex:', i).objc_call('removeObjectForKey:', removal_key)
for removal_key in keys_to_remove:
result.objc_call('objectAtIndex:', i).objc_call('removeObjectForKey:', removal_key)
return result.py()

0 comments on commit 57bccce

Please sign in to comment.