BSL v0.0.0 - 0.geda3e66
AMMOS Bundle Protocol Security Library (BSL)
|
Implementation of construct holding details of security operations for a bundle. More...
#include "SecurityActionSet.h"
Functions | |
bool | BSL_SecurityActionSet_IsConsistent (const BSL_SecurityActionSet_t *self) |
Return true if internal sanity and consistency checks pass. | |
size_t | BSL_SecurityActionSet_Sizeof (void) |
Returns size of the struct, helpful for dynamic allocation. | |
void | BSL_SecurityActionSet_Init (BSL_SecurityActionSet_t *self) |
Initialize a new security action set. | |
void | BSL_SecurityActionSet_Deinit (BSL_SecurityActionSet_t *self) |
Zeroize, clear, and release itself and any owned resources. | |
int | BSL_SecurityActionSet_AppendAction (BSL_SecurityActionSet_t *self, const BSL_SecurityAction_t *action) |
Append a security operation to the security action set. | |
size_t | BSL_SecurityActionSet_CountActions (const BSL_SecurityActionSet_t *self) |
Count number of security operations present in this policy action set. | |
size_t | BSL_SecurityActionSet_CountOperations (const BSL_SecurityActionSet_t *self) |
const BSL_SecurityAction_t * | BSL_SecurityActionSet_GetActionAtIndex (const BSL_SecurityActionSet_t *self, size_t index) |
Returns the Security Operation at the given index. | |
size_t | BSL_SecurityActionSet_CountErrors (const BSL_SecurityActionSet_t *self) |
Returns count of failures after processing this action set. | |
Implementation of construct holding details of security operations for a bundle.
int BSL_SecurityActionSet_AppendAction | ( | BSL_SecurityActionSet_t * | self, |
const BSL_SecurityAction_t * | action | ||
) |
Append a security operation to the security action set.
[in,out] | self | This security action set. |
[in] | action | Action to include. |
References BSL_SUCCESS.
Referenced by BSLP_QueryPolicy().
size_t BSL_SecurityActionSet_CountActions | ( | const BSL_SecurityActionSet_t * | self | ) |
Count number of security operations present in this policy action set.
[in] | self | This action set. |
Referenced by test_PolicyProvider_InspectEmptyRuleset(), and test_PolicyProvider_InspectSingleBIBRuleset().
size_t BSL_SecurityActionSet_CountErrors | ( | const BSL_SecurityActionSet_t * | self | ) |
Returns count of failures after processing this action set.
[in] | self | Pointer to this security action set. |
Referenced by BSLP_QueryPolicy().
size_t BSL_SecurityActionSet_CountOperations | ( | const BSL_SecurityActionSet_t * | self | ) |
self | action set |
Referenced by BSL_SecCtx_ExecutePolicyActionSet().
void BSL_SecurityActionSet_Deinit | ( | BSL_SecurityActionSet_t * | self | ) |
Zeroize, clear, and release itself and any owned resources.
[in,out] | self | This action set. |
Referenced by test_PolicyProvider_Inspect_RFC9173_BIB(), test_PolicyProvider_InspectEmptyRuleset(), test_PolicyProvider_InspectSingleBIBRuleset(), test_SecurityContext_BIB_Acceptor(), test_SecurityContext_BIB_Source(), test_SecurityContext_BIB_Verifier(), and test_SecurityContext_BIB_Verifier_Failure().
const BSL_SecurityAction_t * BSL_SecurityActionSet_GetActionAtIndex | ( | const BSL_SecurityActionSet_t * | self, |
size_t | index | ||
) |
Returns the Security Operation at the given index.
[in] | self | This action set |
[in] | index | index |
Referenced by test_PolicyProvider_Inspect_RFC9173_BIB(), test_PolicyProvider_InspectEmptyRuleset(), test_PolicyProvider_InspectSingleBIBRuleset(), and test_SecurityContext_BIB_Verifier_Failure().
void BSL_SecurityActionSet_Init | ( | BSL_SecurityActionSet_t * | self | ) |
Initialize a new security action set.
[in,out] | self | This pre-allocated action set |
Referenced by BSLP_QueryPolicy().
bool BSL_SecurityActionSet_IsConsistent | ( | const BSL_SecurityActionSet_t * | self | ) |
Return true if internal sanity and consistency checks pass.
[in] | self | This action set. |
Referenced by BSL_SecCtx_ExecutePolicyActionSet(), and BSLP_QueryPolicy().
size_t BSL_SecurityActionSet_Sizeof | ( | void | ) |
Returns size of the struct, helpful for dynamic allocation.