Skip to content
Merged
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
11 changes: 1 addition & 10 deletions src/policy_provider/SamplePolicyProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ M_ARRAY_DEF(BSLP_PolicyPredicateList, BSLP_PolicyPredicate_t, M_OPL_BSLP_PolicyP
bool BSLP_PolicyPredicate_IsMatch(const BSLP_PolicyPredicate_t *self, BSL_PolicyLocation_e location,
BSL_HostEID_t src_eid, BSL_HostEID_t dst_eid);

/**
* Maximum string length of a policy rule description;
* Affects ::BSLP_PolicyRule_Init `desc` parameter
*/
#define BSLP_POLICY_RULE_DESCRIPTION_MAX_STRLEN 100

/**
* @brief Represents a policy rule
*
Expand Down Expand Up @@ -152,8 +146,7 @@ typedef struct BSLP_PolicyRule_s
* @brief Initialize this policy rule from parameters
*
* @param[in] self This policy rule
* @param[in] dest Description of this rule (C-string). Will copy characters of parameter from index 0 to
* ::BSLP_POLICY_RULE_DESCRIPTION_MAX_STRLEN - 1.
* @param[in] dest Description of this rule (C-string)
* @param[in] context_id Security context ID
* @param[in] role Such as source, acceptor, etc
* @param[in] sec_block_type Block type (BIB or BCB)
Expand Down Expand Up @@ -215,8 +208,6 @@ void BSLP_PolicyRule_CopyParam(BSLP_PolicyRule_t *self, const BSL_SecParam_t *pa
*/
void BSLP_PolicyRule_MoveParam(BSLP_PolicyRule_t *self, BSL_SecParam_t *param);

#define BSLP_POLICYPREDICATE_ARRAY_CAPACITY (100)

/// @brief Policy provider data. References shared among individual providers in BSL context
typedef struct BSLP_PolicyProvider_s
{
Expand Down
Loading