2 // AC plugin transition layer.
3 // This file was automatically generated. Do not edit on penalty of futility!
5 #include <security_cdsa_plugin/ACsession.h>
6 #include <security_cdsa_plugin/cssmplugin.h>
7 #include <security_cdsa_utilities/cssmbridge.h>
8 #include <Security/cssmaci.h>
11 ACAbstractPluginSession::~ACAbstractPluginSession()
14 static CSSM_RETURN CSSMACI
cssm_AuthCompute(CSSM_AC_HANDLE ACHandle
,
15 const CSSM_TUPLEGROUP
*BaseAuthorizations
,
16 const CSSM_TUPLEGROUP
*Credentials
,
17 uint32 NumberOfRequestors
,
18 const CSSM_LIST
*Requestors
,
19 const CSSM_LIST
*RequestedAuthorizationPeriod
,
20 const CSSM_LIST
*RequestedAuthorization
,
21 CSSM_TUPLEGROUP_PTR AuthorizationResult
)
24 findSession
<ACPluginSession
>(ACHandle
).AuthCompute(Required(BaseAuthorizations
),
28 RequestedAuthorizationPeriod
,
29 Required(RequestedAuthorization
),
30 Required(AuthorizationResult
));
34 static CSSM_RETURN CSSMACI
cssm_PassThrough(CSSM_AC_HANDLE ACHandle
,
35 CSSM_TP_HANDLE TPHandle
,
36 CSSM_CL_HANDLE CLHandle
,
37 CSSM_CC_HANDLE CCHandle
,
38 const CSSM_DL_DB_LIST
*DBList
,
40 const void *InputParams
,
44 findSession
<ACPluginSession
>(ACHandle
).PassThrough(TPHandle
,
55 static const CSSM_SPI_AC_FUNCS ACFunctionStruct
= {
60 static CSSM_MODULE_FUNCS ACFunctionTable
= {
61 CSSM_SERVICE_AC
, // service type
62 2, // number of functions
63 (const CSSM_PROC_ADDR
*)&ACFunctionStruct
66 CSSM_MODULE_FUNCS_PTR
ACPluginSession::construct()
68 return &ACFunctionTable
;