BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
SecurityAction.c File Reference
#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.
 

Function Documentation

◆ BSL_SecurityAction_AppendSecOper()

int BSL_SecurityAction_AppendSecOper ( BSL_SecurityAction_t *  self,
BSL_SecOper_t *  sec_oper 
)

Add security operation to security action.

Parameters
[in,out]selfaction to add security operation to
[in,out]sec_opernew security operation to add and move from.
Returns
0 if successful

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().

◆ BSL_SecurityAction_CountErrors()

size_t BSL_SecurityAction_CountErrors ( const BSL_SecurityAction_t *  self)

Returns count of failures after processing this action.

Parameters
[in]selfPointer to this security action.
Returns
Count of errors.

References ASSERT_ARG_NONNULL.

◆ BSL_SecurityAction_CountSecOpers()

◆ BSL_SecurityAction_Deinit()

void BSL_SecurityAction_Deinit ( BSL_SecurityAction_t *  self)

◆ BSL_SecurityAction_GetPPID()

uint64_t BSL_SecurityAction_GetPPID ( const BSL_SecurityAction_t *  self)

Returns Policy Provider ID of.

Parameters
[in]selfaction

References ASSERT_ARG_NONNULL.

Referenced by BSLP_FinalizePolicy().

◆ BSL_SecurityAction_GetSecOperAtIndex()

BSL_SecOper_t * BSL_SecurityAction_GetSecOperAtIndex ( const BSL_SecurityAction_t *  self,
size_t  index 
)

◆ BSL_SecurityAction_IncrError()

void BSL_SecurityAction_IncrError ( BSL_SecurityAction_t *  self)

Increment a security failure for this action set.

Parameters
[in,out]selfPointer to this security action set.

References ASSERT_ARG_NONNULL.

Referenced by BSLP_QueryPolicy().

◆ BSL_SecurityAction_Init()

void BSL_SecurityAction_Init ( BSL_SecurityAction_t *  self)

◆ BSL_SecurityAction_InitSet()

void BSL_SecurityAction_InitSet ( BSL_SecurityAction_t *  self,
const BSL_SecurityAction_t *  src 
)

Initialize from a copy.

Parameters
[out]selfsecurity action
[in]srcThe source of the copy.

References ASSERT_ARG_NONNULL.

◆ BSL_SecurityAction_IsConsistent()

bool BSL_SecurityAction_IsConsistent ( const BSL_SecurityAction_t *  self)
Returns
true if security action
Parameters
selfis consistent

◆ BSL_SecurityAction_Sizeof()