Skip to content

Commit

Permalink
fixup: kSecAttrDescription -> kSecAttrComment for comment
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc authored and kornelski committed Apr 2, 2024
1 parent 3a2b873 commit 3bf806d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions security-framework-sys/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ extern "C" {
pub static kSecAttrAccessGroupToken: CFStringRef;

pub static kSecAttrAuthenticationType: CFStringRef;
pub static kSecAttrComment: CFStringRef;
pub static kSecAttrDescription: CFStringRef;
pub static kSecAttrPath: CFStringRef;
pub static kSecAttrPort: CFStringRef;
Expand Down
2 changes: 1 addition & 1 deletion security-framework/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ impl ItemAddOptions {
}
let comment = self.comment.as_deref().map(CFString::from);
if let Some(comment) = &comment {
dict.add(&unsafe { kSecAttrDescription }.to_void(), &comment.to_void());
dict.add(&unsafe { kSecAttrComment }.to_void(), &comment.to_void());
}
let description = self.description.as_deref().map(CFString::from);
if let Some(description) = &description {
Expand Down

0 comments on commit 3bf806d

Please sign in to comment.