From: Kurt Zeilenga Date: Mon, 24 Mar 2003 02:11:41 +0000 (+0000) Subject: SLAP_NVALUES: add numericStringNormalize() X-Git-Tag: NO_SLAP_OP_BLOCKS~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b19daa35a4d191d4bd9f976db8d5877a11b342e;p=openldap SLAP_NVALUES: add numericStringNormalize() --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 4c153e041d..2077511297 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -52,7 +52,6 @@ #define integerNormalize NULL #define integerFirstComponentNormalize NULL -#define numericStringNormalize NULL #define objectIdentifierNormalize NULL #define objectIdentifierFirstComponentNormalize NULL #define generalizedTimeNormalize NULL @@ -3709,13 +3708,20 @@ numericStringValidate( return LDAP_SUCCESS; } -#ifndef SLAP_NVALUES - static int +#ifdef SLAP_NVALUES +numericStringNormalize( + slap_mask_t usage, + Syntax *syntax, + MatchingRule *mr, + struct berval *val, + struct berval *normalized ) +#else xnumericStringNormalize( Syntax *syntax, struct berval *val, struct berval *normalized ) +#endif { /* removal all spaces */ char *p, *q; @@ -3754,6 +3760,7 @@ xnumericStringNormalize( return LDAP_SUCCESS; } +#ifndef SLAP_NVALUES static int objectIdentifierFirstComponentMatch( int *matchp,