Skip to content

Commit

Permalink
Add kSecAttrAccessible value constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfowler authored and kornelski committed Jul 16, 2023
1 parent 2b2f63e commit 4b15efe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions security-framework-sys/src/access_control.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use core_foundation_sys::base::CFOptionFlags;
use core_foundation_sys::base::{CFAllocatorRef, CFTypeID, CFTypeRef};
use core_foundation_sys::error::CFErrorRef;
use core_foundation_sys::string::CFStringRef;

use crate::base::SecAccessControlRef;

Expand All @@ -23,6 +24,15 @@ mod access_control_flags {

pub use access_control_flags::*;

extern "C" {
pub static kSecAttrAccessibleWhenUnlocked: CFStringRef;
pub static kSecAttrAccessibleAfterFirstUnlock: CFStringRef;
pub static kSecAttrAccessibleAlways: CFStringRef;
pub static kSecAttrAccessibleWhenUnlockedThisDeviceOnly: CFStringRef;
pub static kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly: CFStringRef;
pub static kSecAttrAccessibleAlwaysThisDeviceOnly: CFStringRef;
}

extern "C" {
pub fn SecAccessControlGetTypeID() -> CFTypeID;

Expand Down

0 comments on commit 4b15efe

Please sign in to comment.