|
BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
|
#include "SecurityAction.h"
Include dependency graph for SecurityAction.c:Functions | |
| size_t | BSL_SecurityAction_Sizeof (void) |
| bool | BSL_SecurityAction_IsConsistent (const BSL_SecurityAction_t *self) |
| void | BSL_SecurityAction_Init (BSL_SecurityAction_t *self) |
| Initialize security action. | |
| void | BSL_SecurityAction_InitSet (BSL_SecurityAction_t *self, const BSL_SecurityAction_t *src) |
| Initialize from a copy. | |
| void | BSL_SecurityAction_Deinit (BSL_SecurityAction_t *self) |
| De-initialize security action. | |
| void | BSL_SecurityAction_IncrError (BSL_SecurityAction_t *self) |
| Increment a security failure for this action set. | |
| size_t | BSL_SecurityAction_CountErrors (const BSL_SecurityAction_t *self) |
| Returns count of failures after processing this action. | |
| int | BSL_SecurityAction_AppendSecOper (BSL_SecurityAction_t *self, BSL_SecOper_t *sec_oper) |
| Add security operation to security action. | |
| size_t | BSL_SecurityAction_CountSecOpers (const BSL_SecurityAction_t *self) |
| BSL_SecOper_t * | BSL_SecurityAction_GetSecOperAtIndex (const BSL_SecurityAction_t *self, size_t index) |
| uint64_t | BSL_SecurityAction_GetPPID (const BSL_SecurityAction_t *self) |
| Returns Policy Provider ID of. | |
| int BSL_SecurityAction_AppendSecOper | ( | BSL_SecurityAction_t * | self, |
| BSL_SecOper_t * | sec_oper | ||
| ) |
Add security operation to security action.
| [in,out] | self | action to add security operation to |
| [in,out] | sec_oper | new security operation to add and move from. |
References ASSERT_ARG_NONNULL, and BSL_SUCCESS.
Referenced by BSL_TestUtils_InitMallocBIBActionSet(), BSLP_QueryPolicy(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), and test_RFC9173_AppendixA_Example4_Source().
| size_t BSL_SecurityAction_CountErrors | ( | const BSL_SecurityAction_t * | self | ) |
Returns count of failures after processing this action.
| [in] | self | Pointer to this security action. |
References ASSERT_ARG_NONNULL.
| size_t BSL_SecurityAction_CountSecOpers | ( | const BSL_SecurityAction_t * | self | ) |
| [in] | self | action |
References ASSERT_ARG_NONNULL.
Referenced by BSL_API_ApplySecurity(), BSL_API_QuerySecurity(), BSL_SecCtx_ExecutePolicyActionSet(), BSL_SecurityActionSet_AppendAction(), BSLP_FinalizePolicy(), n_test_BSL_6(), test_BSL_32(), TEST_CASE(), test_dyn_mem_cbs_BSL_32(), test_MultiplePolicyProviders(), test_PolicyProvider_Inspect_RFC9173_BIB(), test_PolicyProvider_InspectEmptyRuleset(), and test_PolicyProvider_InspectSingleBIBRuleset().
| void BSL_SecurityAction_Deinit | ( | BSL_SecurityAction_t * | self | ) |
De-initialize security action.
| [in,out] | self | security action |
References ASSERT_ARG_NONNULL.
Referenced by BSL_TestUtils_InitMallocBIBActionSet(), BSLP_QueryPolicy(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), and test_RFC9173_AppendixA_Example4_Source().
| uint64_t BSL_SecurityAction_GetPPID | ( | const BSL_SecurityAction_t * | self | ) |
Returns Policy Provider ID of.
| [in] | self | action |
References ASSERT_ARG_NONNULL.
Referenced by BSLP_FinalizePolicy().
| BSL_SecOper_t * BSL_SecurityAction_GetSecOperAtIndex | ( | const BSL_SecurityAction_t * | self, |
| size_t | index | ||
| ) |
| [in] | index | index in |
| [in] | self | security action |
References ASSERT_ARG_NONNULL.
Referenced by BSL_API_ApplySecurity(), BSL_API_QuerySecurity(), BSL_SecCtx_ExecutePolicyActionSet(), BSLP_FinalizePolicy(), n_test_BSL_6(), test_BSL_32(), TEST_CASE(), test_dyn_mem_cbs_BSL_32(), test_MultiplePolicyProviders(), test_PolicyProvider_Inspect_RFC9173_BIB(), and test_SecurityContext_BIB_Verifier_Failure().
| void BSL_SecurityAction_IncrError | ( | BSL_SecurityAction_t * | self | ) |
Increment a security failure for this action set.
| [in,out] | self | Pointer to this security action set. |
References ASSERT_ARG_NONNULL.
Referenced by BSLP_QueryPolicy().
| void BSL_SecurityAction_Init | ( | BSL_SecurityAction_t * | self | ) |
Initialize security action.
| [out] | self | security action |
References ASSERT_ARG_NONNULL.
Referenced by BSL_TestUtils_InitMallocBIBActionSet(), BSLP_QueryPolicy(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), and test_RFC9173_AppendixA_Example4_Source().
| void BSL_SecurityAction_InitSet | ( | BSL_SecurityAction_t * | self, |
| const BSL_SecurityAction_t * | src | ||
| ) |
Initialize from a copy.
| [out] | self | security action |
| [in] | src | The source of the copy. |
References ASSERT_ARG_NONNULL.
| bool BSL_SecurityAction_IsConsistent | ( | const BSL_SecurityAction_t * | self | ) |
| self | is consistent |
| size_t BSL_SecurityAction_Sizeof | ( | void | ) |
Referenced by BSLP_QueryPolicy(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), and test_RFC9173_AppendixA_Example4_Source().