Skip to content

Commit f65ccc6

Browse files
brotskydotcomkornelski
authored andcommitted
Allow adding a client-constructed access control object to an item.
Fixes #226.
1 parent 2ecca58 commit f65ccc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

security-framework/src/passwords_options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ impl PasswordOptions {
114114
}
115115
}
116116

117+
/// Add access control to the password
118+
pub fn set_access_control(&mut self, access_control: SecAccessControl) {
119+
unsafe {
120+
self.push_query(kSecAttrAccessControl, access_control);
121+
}
122+
}
123+
117124
/// Add access group to the password
118125
pub fn set_access_group(&mut self, group: &str) {
119126
unsafe {

0 commit comments

Comments
 (0)