objc2_security/generated/
cssmaci.rs1use core::ffi::*;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
11#[deprecated]
12#[repr(C)]
13#[derive(Clone, Copy, Debug, PartialEq)]
14pub struct cssm_spi_ac_funcs {
15 pub AuthCompute: Option<
16 unsafe extern "C-unwind" fn(
17 CSSM_AC_HANDLE,
18 *const CSSM_TUPLEGROUP,
19 *const CSSM_TUPLEGROUP,
20 uint32,
21 *const CSSM_LIST,
22 *const CSSM_LIST,
23 *const CSSM_LIST,
24 CSSM_TUPLEGROUP_PTR,
25 ) -> CSSM_RETURN,
26 >,
27 pub PassThrough: Option<
28 unsafe extern "C-unwind" fn(
29 CSSM_AC_HANDLE,
30 CSSM_TP_HANDLE,
31 CSSM_CL_HANDLE,
32 CSSM_CC_HANDLE,
33 *const CSSM_DL_DB_LIST,
34 uint32,
35 *const c_void,
36 *mut *mut c_void,
37 ) -> CSSM_RETURN,
38 >,
39}
40
41#[cfg(all(feature = "cssmconfig", feature = "cssmtype", feature = "objc2"))]
42unsafe impl Encode for cssm_spi_ac_funcs {
43 const ENCODING: Encoding = Encoding::Struct(
44 "cssm_spi_ac_funcs",
45 &[
46 <Option<
47 unsafe extern "C-unwind" fn(
48 CSSM_AC_HANDLE,
49 *const CSSM_TUPLEGROUP,
50 *const CSSM_TUPLEGROUP,
51 uint32,
52 *const CSSM_LIST,
53 *const CSSM_LIST,
54 *const CSSM_LIST,
55 CSSM_TUPLEGROUP_PTR,
56 ) -> CSSM_RETURN,
57 >>::ENCODING,
58 <Option<
59 unsafe extern "C-unwind" fn(
60 CSSM_AC_HANDLE,
61 CSSM_TP_HANDLE,
62 CSSM_CL_HANDLE,
63 CSSM_CC_HANDLE,
64 *const CSSM_DL_DB_LIST,
65 uint32,
66 *const c_void,
67 *mut *mut c_void,
68 ) -> CSSM_RETURN,
69 >>::ENCODING,
70 ],
71 );
72}
73
74#[cfg(all(feature = "cssmconfig", feature = "cssmtype", feature = "objc2"))]
75unsafe impl RefEncode for cssm_spi_ac_funcs {
76 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
77}
78
79#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
81pub type CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs;
82
83#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
85pub type CSSM_SPI_AC_FUNCS_PTR = *mut cssm_spi_ac_funcs;