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

Don't show approval window for each keychain key #23

Open
microshine opened this issue Jul 3, 2017 · 1 comment
Open

Don't show approval window for each keychain key #23

microshine opened this issue Jul 3, 2017 · 1 comment
Assignees

Comments

@microshine
Copy link
Contributor

image

@microshine microshine self-assigned this Jul 3, 2017
@microshine
Copy link
Contributor Author

This window is showed when I'm trying to get info about SecKeyRef with SecKeyCopyAttributes function.

I found that there is a SecAccess which is used for key creation and determines the initial access rights to the key.

SekKey.h doesn't have function to get SecAccess for key. We can be sure that only keys created with our app doesn't show Access dialog

There is deprecated function SecKeyGetCredentials which allows to get a CSSM_ACCESS_CREDENTIALS structure which will allow the key to be used

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

No branches or pull requests

1 participant