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

Use SecKeychainCopyDomainSearchList to find system keychain #4

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

mlink
Copy link
Contributor

@mlink mlink commented Jan 5, 2024

It's been mentioned on the forums that hardcoding a path to the system keychain may not be ideal. This PR addresses that by using the Security frameworks methods to locate the system keychain. To retain compatibility any errors from attempting to locate the system keychain will default to previous behavior and return a reference to KeychainFile that will attempt to find the system keychain at /Library/Keychains/System.keychain.

@mlink mlink merged commit 4d58a33 into jamf:main Jan 8, 2024
3 checks passed
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.

4 participants