BSL v0.0.0 - 0.geda3e66
AMMOS Bundle Protocol Security Library (BSL)
|
Defines interactions with an external Policy Provider. More...
Functions | |
int | BSL_PolicyRegistry_InspectActions (const BSL_LibCtx_t *bsl, BSL_SecurityActionSet_t *output_action_set, const BSL_BundleRef_t *bundle, BSL_PolicyLocation_e location) |
Queries the policy provider for any security operations to take on the bundle. | |
int | BSL_PolicyRegistry_FinalizeActions (const BSL_LibCtx_t *bsl, const BSL_SecurityActionSet_t *policy_actions, const BSL_BundleRef_t *bundle, const BSL_SecurityResponseSet_t *response_output) |
Finalizes policy provider for sec ops & sec results for a bundle. | |
Defines interactions with an external Policy Provider.
int BSL_PolicyRegistry_FinalizeActions | ( | const BSL_LibCtx_t * | bsl, |
const BSL_SecurityActionSet_t * | policy_actions, | ||
const BSL_BundleRef_t * | bundle, | ||
const BSL_SecurityResponseSet_t * | response_output | ||
) |
Finalizes policy provider for sec ops & sec results for a bundle.
[in] | bsl | BSL library context |
[in] | policy_actions | A policy action set, which may contain error codes and other info. [Zeroed, pre-allocated and memory owned by caller] Caller-allocated, zeroed space for action set |
[in,out] | bundle | Bundle seeking security operations |
[in] | response_output | results from security context |
[in] | location | Where in the BPA lifecycle this query arises from |
Referenced by BSL_API_ApplySecurity().
int BSL_PolicyRegistry_InspectActions | ( | const BSL_LibCtx_t * | bsl, |
BSL_SecurityActionSet_t * | output_action_set, | ||
const BSL_BundleRef_t * | bundle, | ||
BSL_PolicyLocation_e | location | ||
) |
Queries the policy provider for any security operations to take on the bundle.
[in] | bsl | BSL library context |
[out] | output_action_set | policy action set, which may contain error codes and other info. [Zeroed, pre-allocated and memory owned by caller] Caller-allocated, zeroed space for action set |
[in,out] | bundle | Bundle seeking security operations |
[in] | location | Where in the BPA lifecycle this query arises from |
Referenced by BSL_API_QuerySecurity(), test_PolicyProvider_Inspect_RFC9173_BIB(), test_PolicyProvider_InspectEmptyRuleset(), and test_PolicyProvider_InspectSingleBIBRuleset().