From 3bf806d0c6977ca0cf14a404f26d7a876a1ecbf6 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 30 Mar 2024 09:13:20 -0400 Subject: [PATCH] fixup: kSecAttrDescription -> kSecAttrComment for comment --- security-framework-sys/src/item.rs | 1 + security-framework/src/item.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/security-framework-sys/src/item.rs b/security-framework-sys/src/item.rs index 005d464c..4b4c52ed 100644 --- a/security-framework-sys/src/item.rs +++ b/security-framework-sys/src/item.rs @@ -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; diff --git a/security-framework/src/item.rs b/security-framework/src/item.rs index b57ef9de..0c17e154 100644 --- a/security-framework/src/item.rs +++ b/security-framework/src/item.rs @@ -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 {