Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/BPSecLib_Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -1349,8 +1349,12 @@ struct BSL_PolicyDesc_s
int BSL_SecCtx_ExecutePolicyActionSet(BSL_LibCtx_t *lib, BSL_SecurityResponseSet_t *output_response,
BSL_BundleRef_t *bundle, const BSL_SecurityActionSet_t *action_set);

/**
* @todo Doxygen
/** Validate policy action set
*
* @param[in] lib This BSL context
* @param[in,out] bundle Pointer to bundle, which may be modified.
* @param[in] action_set Action containing all params and operations.
* @return true on success, false on failure.
*/
bool BSL_SecCtx_ValidatePolicyActionSet(BSL_LibCtx_t *lib, const BSL_BundleRef_t *bundle,
const BSL_SecurityActionSet_t *action_set);
Expand Down
8 changes: 3 additions & 5 deletions src/Data.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@ typedef struct BSL_Data_s
*/
int BSL_Data_Init(BSL_Data_t *data);

/** Initialize with an owned buffer of size bytelen
*
* @todo Clarify to indicate this calls MALLOC.
*
/** Initialize with a dynamically-allocated owned buffer of size bytelen
* *
* @param[in,out] data The data to initialize.
* @param[in] bytelen Length of buffer to allocate.
* @param[in] bytelen Length of buffer to dynamically allocate.
* @return Zero upon success.
*/
int BSL_Data_InitBuffer(BSL_Data_t *data, size_t bytelen);
Expand Down
5 changes: 0 additions & 5 deletions src/backend/SecParam.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ bool BSL_SecParam_IsConsistent(const BSL_SecParam_t *self)
{
CHK_AS_BOOL(m_bstring_empty_p(self->_bytes));
}
else
{
// TODO is this meaningful?
Comment thread
BrianSipos marked this conversation as resolved.
CHK_AS_BOOL(self->_uint_value == 0);
}
return true;
}

Expand Down
3 changes: 0 additions & 3 deletions src/backend/SecurityContext.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
* @brief Implementation of functions to interact with the security context
* @ingroup backend_dyn
*
* @todo Enable checking (not just using a stub returning True.)
* @todo Complete implementation for BCB acceptor.
*/
#include <BPSecLib_Private.h>

Expand Down Expand Up @@ -81,7 +79,6 @@ static int Encode_ASB(BSL_LibCtx_t *lib, BSL_BundleRef_t *bundle, uint64_t blk_n
static int BSL_ExecBIBSource(BSL_SecCtx_Execute_f sec_context_fn, BSL_LibCtx_t *lib, BSL_BundleRef_t *bundle,
BSL_SecOper_t *sec_oper, BSL_SecOutcome_t *outcome)
{
(void)lib;
CHK_ARG_NONNULL(sec_context_fn);
CHK_ARG_NONNULL(bundle);
CHK_ARG_NONNULL(sec_oper);
Expand Down
1 change: 0 additions & 1 deletion src/mock_bpa/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ int MockBPA_Agent_Init(MockBPA_Agent_t *agent, BSLP_PolicyProvider_t **policy)
bcb_sec_desc.validate = BSLX_BCB_Validate;
ASSERT_PROPERTY(0 == BSL_API_RegisterSecurityContext(ctx->bsl, 2, bcb_sec_desc));
}
// TODO find a better way to deal with this

*policy = BSLP_PolicyProvider_Init(1);
agent->appin.policy = *policy;
Expand Down
Loading