Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keychain search to return all matches #6748

Merged
merged 1 commit into from Jul 27, 2023
Merged

Conversation

yim-lee
Copy link
Member

@yim-lee yim-lee commented Jul 26, 2023

Motivation:
A registry URL (i.e., same scheme, host, and port) can have multiple entries in Keychain. Currently we only ask Keychain to return one match when doing a search, but that might not be the one we want.

Modifications:

  • Have Keychain search return all matches
  • Sort the matches by modification timestamp
  • Return the most recently modified match

rdar://112556752

Motivation:
A registry URL (i.e., same scheme, host, and port) can have multiple entries in Keychain. Currently we only ask Keychain to return one match when doing a search, but that might not be the one we want.

Modifications:
- Have Keychain search return all matches
- Sort the matches by modification timestamp
- Return the most recently modified match

rdar://112556752
@yim-lee
Copy link
Member Author

yim-lee commented Jul 26, 2023

@swift-ci please smoke test

@yim-lee
Copy link
Member Author

yim-lee commented Jul 26, 2023

@swift-ci please smoke test Linux

@yim-lee
Copy link
Member Author

yim-lee commented Jul 27, 2023

@swift-ci please smoke test Linux

@yim-lee yim-lee merged commit 2054492 into apple:main Jul 27, 2023
5 checks passed
@yim-lee yim-lee deleted the keychain-search branch July 27, 2023 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants