#define SLAP_NVALUES 1
-#define SLAP_MR_ASSOCIATED(mr, with) \
- ((mr) == (with) || (mr)->smr_associated == (with))
-
/* not yet implemented */
#define objectIdentifierNormalize NULL
#define integerOrderingMatch NULL
return LDAP_SUCCESS;
}
- flags = SLAP_MR_ASSOCIATED(mr, slap_schema.si_mr_caseExactMatch )
+ flags = (mr == slap_schema.si_mr_caseExactMatch)
? LDAP_UTF8_NOCASEFOLD : LDAP_UTF8_CASEFOLD;
flags |= ( ( use & SLAP_MR_EQUALITY_APPROX ) == SLAP_MR_EQUALITY_APPROX )
? LDAP_UTF8_APPROX : 0;
struct berval *normalized )
{
char *p, *q;
- int casefold = !SLAP_MR_ASSOCIATED(mr, slap_schema.si_mr_caseExactIA5Match);
+ int casefold = (mr != slap_schema.si_mr_caseExactIA5Match);
assert( val->bv_len );
{"( 2.5.13.0 NAME 'objectIdentifierMatch' "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )",
SLAP_MR_EQUALITY | SLAP_MR_EXT, NULL,
- NULL,
- objectIdentifierNormalize, octetStringMatch,
+ NULL, objectIdentifierNormalize, octetStringMatch,
octetStringIndexer, octetStringFilter,
NULL},
{"( 2.5.13.1 NAME 'distinguishedNameMatch' "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )",
SLAP_MR_EQUALITY | SLAP_MR_EXT, NULL,
- NULL,
- dnNormalize, dnMatch,
+ NULL, dnNormalize, dnMatch,
octetStringIndexer, octetStringFilter,
NULL},
{"( 2.5.13.2 NAME 'caseIgnoreMatch' "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )",
- SLAP_MR_EQUALITY | SLAP_MR_EXT,
- directoryStringSyntaxes,
- NULL,
- UTF8StringNormalize, octetStringMatch,
+ SLAP_MR_EQUALITY | SLAP_MR_EXT, directoryStringSyntaxes,
+ NULL, UTF8StringNormalize, octetStringMatch,
octetStringIndexer, octetStringFilter,
directoryStringApproxMatchOID },
offsetof(struct slap_internal_schema, si_mr_distinguishedNameMatch) },
{ "integerMatch",
offsetof(struct slap_internal_schema, si_mr_integerMatch) },
- { "integerFirstComponentMatch",
- offsetof(struct slap_internal_schema,
- si_mr_integerFirstComponentMatch) },
+ { "integerFirstComponentMatch", offsetof(struct slap_internal_schema,
+ si_mr_integerFirstComponentMatch) },
{ NULL, 0 }
};