security-framework-sys 0.1.10

Security Framework bindings
use core_foundation_sys::base::{CFTypeRef, CFTypeID, Boolean};
use core_foundation_sys::error::CFErrorRef;
use core_foundation_sys::string::CFStringRef;

pub type SecTransformRef = CFTypeRef;

extern "C" {
    pub static kSecTransformInputAttributeName: CFStringRef;

    pub fn SecTransformGetTypeID() -> CFTypeID;

    pub fn SecTransformSetAttribute(transformRef: SecTransformRef,
                                    key: CFStringRef,
                                    value: CFTypeRef,
                                    error: *mut CFErrorRef)
                                    -> Boolean;

    pub fn SecTransformExecute(transformRef: SecTransformRef,
                               errorRef: *mut CFErrorRef)
                               -> CFTypeRef;
}