mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
cleanup
This commit is contained in:
parent
d3d73a0b96
commit
d616bd4ff8
7 changed files with 61 additions and 62 deletions
|
|
@ -209,17 +209,18 @@ static int test_mra_filter(
|
|||
|
||||
#ifdef LDAP_COMP_MATCH
|
||||
/* Component Matching */
|
||||
if( mra->ma_cf && mra->ma_rule->smr_usage & SLAP_MR_COMPONENT ) {
|
||||
if( mra->ma_cf &&
|
||||
mra->ma_rule->smr_usage & SLAP_MR_COMPONENT )
|
||||
{
|
||||
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
|
||||
(struct berval *)a,(void*) mra , &text );
|
||||
}
|
||||
else {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
|
||||
bv, &mra->ma_value, &text );
|
||||
#ifdef LDAP_COMP_MATCH
|
||||
}
|
||||
#endif
|
||||
|
||||
if( rc != LDAP_SUCCESS ) return rc;
|
||||
if ( ret == 0 ) return LDAP_COMPARE_TRUE;
|
||||
}
|
||||
|
|
@ -265,18 +266,17 @@ static int test_mra_filter(
|
|||
#ifdef LDAP_COMP_MATCH
|
||||
/* Component Matching */
|
||||
if( mra->ma_cf &&
|
||||
mra->ma_rule->smr_usage & SLAP_MR_COMPONENT) {
|
||||
mra->ma_rule->smr_usage & SLAP_MR_COMPONENT)
|
||||
{
|
||||
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
|
||||
(struct berval*)a, (void*)mra, &text );
|
||||
}
|
||||
else {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
|
||||
bv, &value, &text );
|
||||
|
||||
#ifdef LDAP_COMP_MATCH
|
||||
}
|
||||
#endif
|
||||
|
||||
if( rc != LDAP_SUCCESS ) break;
|
||||
|
||||
if ( ret == 0 ) {
|
||||
|
|
|
|||
|
|
@ -31,8 +31,9 @@ mra_free(
|
|||
{
|
||||
#ifdef LDAP_COMP_MATCH
|
||||
/* free component assertion */
|
||||
if ( mra->ma_rule->smr_usage & SLAP_MR_COMPONENT )
|
||||
if ( mra->ma_rule->smr_usage & SLAP_MR_COMPONENT ) {
|
||||
component_free( mra->ma_cf );
|
||||
}
|
||||
#endif
|
||||
/* op->o_tmpfree( mra->ma_value.bv_val, op->o_tmpmemctx ); */
|
||||
ch_free( mra->ma_value.bv_val );
|
||||
|
|
|
|||
|
|
@ -375,7 +375,6 @@ LDAP_SLAPD_F (int) componentFilterValidate LDAP_P((
|
|||
LDAP_SLAPD_F (int) allComponentsValidate LDAP_P((
|
||||
Syntax *syntax,
|
||||
struct berval* bv ));
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1029,7 +1029,6 @@ static struct slap_schema_syn_map {
|
|||
offsetof(struct slap_internal_schema, si_syn_integer) },
|
||||
{ "1.3.6.1.4.1.1466.115.121.1.40",
|
||||
offsetof(struct slap_internal_schema, si_syn_octetString) },
|
||||
|
||||
{ "1.3.6.1.4.1.1466.115.121.1.3",
|
||||
offsetof(struct slap_internal_schema, si_syn_attributeTypeDesc) },
|
||||
{ "1.3.6.1.4.1.1466.115.121.1.16",
|
||||
|
|
@ -1044,10 +1043,8 @@ static struct slap_schema_syn_map {
|
|||
offsetof(struct slap_internal_schema, si_syn_nameFormDesc) },
|
||||
{ "1.3.6.1.4.1.1466.115.121.1.37",
|
||||
offsetof(struct slap_internal_schema, si_syn_objectClassDesc) },
|
||||
|
||||
{ "1.3.6.1.4.1.1466.115.121.1.17",
|
||||
offsetof(struct slap_internal_schema, si_syn_ditStructureRuleDesc) },
|
||||
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2675,7 +2675,7 @@ typedef int (SLAP_CTRL_PARSE_FN) LDAP_P((
|
|||
#define LDAP_COMP_FILTER_ITEM ((ber_tag_t) 0xa3U)
|
||||
#define LDAP_COMP_FILTER_UNDEFINED ((ber_tag_t) 0xa4U)
|
||||
|
||||
typedef struct slap_component_id{
|
||||
typedef struct slap_component_id {
|
||||
int ci_type;
|
||||
struct slap_component_id *ci_next;
|
||||
|
||||
|
|
@ -2730,10 +2730,12 @@ typedef struct slap_component_assertion_value {
|
|||
char* cav_ptr;
|
||||
char* cav_end;
|
||||
} ComponentAssertionValue;
|
||||
/*
|
||||
|
||||
#if 0
|
||||
typedef int encoder_func LDAP_P((
|
||||
void* b,
|
||||
void* comp));*/
|
||||
void* comp));
|
||||
#endif
|
||||
|
||||
struct slap_component_syntax_info;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue