From: Pierangelo Masarati Date: Fri, 6 Jul 2001 12:23:22 +0000 (+0000) Subject: protos and declarations for charray and rdn stuff X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1260 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bff5608926608a32f62ac54499c91d902efa4f20;p=openldap protos and declarations for charray and rdn stuff --- diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index d8e5e9b7a4..97300f95f0 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -239,11 +239,15 @@ LDAP_SLAPD_F (void) ch_free LDAP_P(( void * )); */ LDAP_SLAPD_F (void) charray_add LDAP_P(( char ***a, const char *s )); +LDAP_SLAPD_F (void) charray_add_n LDAP_P(( char ***a, const char *s, int l )); LDAP_SLAPD_F (void) charray_merge LDAP_P(( char ***a, char **s )); LDAP_SLAPD_F (void) charray_free LDAP_P(( char **array )); LDAP_SLAPD_F (int) charray_inlist LDAP_P(( char **a, const char *s )); LDAP_SLAPD_F (char **) charray_dup LDAP_P(( char **a )); LDAP_SLAPD_F (char **) str2charray LDAP_P(( const char *str, const char *brkstr )); +LDAP_SLAPD_F (int) charray_strcmp LDAP_P(( const char **a1, const char **a2 )); +LDAP_SLAPD_F (int) charray_strcasecmp LDAP_P(( const char **a1, const char **a2 )); + /* * controls.c @@ -318,6 +322,7 @@ LDAP_SLAPD_F (int) dn_issuffix LDAP_P(( const char *dn, const char *suffix )); LDAP_SLAPD_F (int) rdn_validate LDAP_P(( const char* str )); LDAP_SLAPD_F (char *) rdn_attr_value LDAP_P(( const char * rdn )); LDAP_SLAPD_F (char *) rdn_attr_type LDAP_P(( const char * rdn )); +LDAP_SLAPD_F (int) rdn_attrs LDAP_P(( const char * rdn, char ***ptypes, char ***pvals )); LDAP_SLAPD_F (void) build_new_dn LDAP_P(( char ** new_dn, const char *e_dn, diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index cc1fd71257..797be64a6a 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -87,7 +87,8 @@ LDAP_BEGIN_DECL || (c) == '(' || (c) == ')' || !ASCII_PRINTABLE(c) ) #define DN_SEPARATOR(c) ((c) == ',' || (c) == ';') -#define RDN_SEPARATOR(c) ((c) == ',' || (c) == ';' || (c) == '+') +#define RDN_ATTRTYPEANDVALUE_SEPARATOR(c) ((c) == '+') /* RFC 2253 */ +#define RDN_SEPARATOR(c) (DN_SEPARATOR(c) || RDN_ATTRTYPEANDVALUE_SEPARATOR(c)) #define RDN_NEEDSESCAPE(c) ((c) == '\\' || (c) == '"') #define DESC_LEADCHAR(c) ( ASCII_ALPHA(c) )