35 CHK_AS_BOOL(self != NULL);
36 CHK_AS_BOOL(self->err_msg[
sizeof(self->err_msg) - 1] ==
'\0');
37 CHK_AS_BOOL(strlen(self->err_msg) <
sizeof(self->err_msg));
43 ASSERT_ARG_NONNULL(self);
44 self->failure_count = nfailed;
45 self->total_operations = noperations;
46 self->err_code = (nfailed == 0 && noperations > 1) ? 0 : 1;
52 memset(self, 0,
sizeof(*self));
58 return self->total_operations;
struct BSL_SecurityResponseSet_s BSL_SecurityResponseSet_t
Forward declaration of SecurityResponseSet, which contains information for BSL and the host BPA to pr...
bool BSL_SecurityResponseSet_IsConsistent(const BSL_SecurityResponseSet_t *self)
Return true if internal consistency checks pass.
size_t BSL_SecurityResponseSet_Sizeof()
Returns size of this struct type.
void BSL_SecurityResponseSet_Deinit(BSL_SecurityResponseSet_t *self)
Zeroize itself and release any owned resources.
void BSL_SecurityResponseSet_Init(BSL_SecurityResponseSet_t *self, size_t noperations, size_t nfailed)
Initialize with the given count of operations and nailures.
size_t BSL_SecurityResponseSet_CountResponses(const BSL_SecurityResponseSet_t *self)
Return number of responses (operations acted upon)
SecurityResultSet implementation for result after application of security operations.
Contains the results and outcomes after performing the security operations.