]> git.sur5r.net Git - openldap/commitdiff
SLAP_NVALUES: telephoneNumberNormalize
authorKurt Zeilenga <kurt@openldap.org>
Mon, 24 Mar 2003 02:16:10 +0000 (02:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 24 Mar 2003 02:16:10 +0000 (02:16 +0000)
servers/slapd/schema_init.c

index 2077511297b53d7f8d88e1fddcf365e733d3173a..6e6e1a3c509063723122c2ab4f58490d489b0702 100644 (file)
 #define objectIdentifierFirstComponentNormalize                NULL
 #define generalizedTimeNormalize                                       NULL
 #define bitStringNormalize                                                     NULL
-#define telephoneNumberNormalize                                       NULL
 
 #define distinguishedNameNormalize     dnNormalize
 #define distinguishedNameMatch         dnMatch
 #define distinguishedNameIndexer       octetStringIndexer
 #define distinguishedNameFilter                octetStringFilter
 
-#define uniqueMemberMatch                      dnMatch
+#define uniqueMemberMatch                      dnMatch /* FIXME! */
 
 #define objectIdentifierMatch  octetStringMatch
 #define objectIdentifierIndexer        octetStringIndexer
@@ -2016,7 +2015,6 @@ caseExactIgnoreSubstringsFilter
 
        return LDAP_SUCCESS;
 }
-
 #ifndef SLAP_NVALUES
 
 static int
@@ -2033,13 +2031,23 @@ caseIgnoreMatch(
                LDAP_UTF8_CASEFOLD );
        return LDAP_SUCCESS;
 }
+#endif
        
 /* Remove all spaces and '-' characters */
 static int
+#ifdef SLAP_NVALUES
+telephoneNumberNormalize(
+       slap_mask_t usage,
+       Syntax *syntax,
+       MatchingRule *mr,
+       struct berval *val,
+       struct berval *normalized )
+#else
 xtelephoneNumberNormalize(
        Syntax *syntax,
        struct berval *val,
        struct berval *normalized )
+#endif
 {
        char *p, *q;
 
@@ -2064,7 +2072,6 @@ xtelephoneNumberNormalize(
 
        return LDAP_SUCCESS;
 }
-#endif
 
 static int
 oidValidate(