Skip to content

Commit 046549e

Browse files
authored
remove unused preproc defs (#168)
1 parent 99f1b76 commit 046549e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/policy_provider/SamplePolicyProvider.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ M_ARRAY_DEF(BSLP_PolicyPredicateList, BSLP_PolicyPredicate_t, M_OPL_BSLP_PolicyP
118118
bool BSLP_PolicyPredicate_IsMatch(const BSLP_PolicyPredicate_t *self, BSL_PolicyLocation_e location,
119119
BSL_HostEID_t src_eid, BSL_HostEID_t dst_eid);
120120

121-
/**
122-
* Maximum string length of a policy rule description;
123-
* Affects ::BSLP_PolicyRule_Init `desc` parameter
124-
*/
125-
#define BSLP_POLICY_RULE_DESCRIPTION_MAX_STRLEN 100
126-
127121
/**
128122
* @brief Represents a policy rule
129123
*
@@ -152,8 +146,7 @@ typedef struct BSLP_PolicyRule_s
152146
* @brief Initialize this policy rule from parameters
153147
*
154148
* @param[in] self This policy rule
155-
* @param[in] dest Description of this rule (C-string). Will copy characters of parameter from index 0 to
156-
* ::BSLP_POLICY_RULE_DESCRIPTION_MAX_STRLEN - 1.
149+
* @param[in] dest Description of this rule (C-string)
157150
* @param[in] context_id Security context ID
158151
* @param[in] role Such as source, acceptor, etc
159152
* @param[in] sec_block_type Block type (BIB or BCB)
@@ -215,8 +208,6 @@ void BSLP_PolicyRule_CopyParam(BSLP_PolicyRule_t *self, const BSL_SecParam_t *pa
215208
*/
216209
void BSLP_PolicyRule_MoveParam(BSLP_PolicyRule_t *self, BSL_SecParam_t *param);
217210

218-
#define BSLP_POLICYPREDICATE_ARRAY_CAPACITY (100)
219-
220211
/// @brief Policy provider data. References shared among individual providers in BSL context
221212
typedef struct BSLP_PolicyProvider_s
222213
{

0 commit comments

Comments
 (0)