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

kSecAttrAccessControl Ignored by SecItemAdd #186

Open
Zack-Xb opened this issue Jul 8, 2023 · 0 comments
Open

kSecAttrAccessControl Ignored by SecItemAdd #186

Zack-Xb opened this issue Jul 8, 2023 · 0 comments

Comments

@Zack-Xb
Copy link

Zack-Xb commented Jul 8, 2023

Hi, I have been trying to add access control to the function to_dictionary for struct ItemAddOptions to protect keychain entries with biometry and application password. I have also added some options in the search function, but they seem to have no effect. Note I have forked the repository and I am using a locally defined path so these changes are being used.

Has anyone gotten access control to work to protect their keychain entries?

For example the above is where I add the option in to_dictionary line 599 item.rs.

 if let Some(access_control) = &self.access_control {
            dict.add(
                &unsafe { kSecAttrAccessControl }.to_void(),
                &access_control.to_void(),
            );
        }
    ```
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