mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
small improvement and prototyping
This commit is contained in:
parent
1f8e4d3884
commit
70e7d58c7d
2 changed files with 7 additions and 3 deletions
|
|
@ -819,7 +819,6 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
|
|||
int rc;
|
||||
|
||||
assert( rdn );
|
||||
assert( types );
|
||||
assert( values );
|
||||
|
||||
rc = ldap_str2rdn( rdn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP );
|
||||
|
|
@ -834,8 +833,10 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
|
|||
assert( ava->la_attr );
|
||||
assert( ava->la_value );
|
||||
|
||||
charray_add_n( types, ava->la_attr->bv_val,
|
||||
ava->la_attr->bv_len );
|
||||
if ( types ) {
|
||||
charray_add_n( types, ava->la_attr->bv_val,
|
||||
ava->la_attr->bv_len );
|
||||
}
|
||||
charray_add_n( values, ava->la_value->bv_val,
|
||||
ava->la_value->bv_len );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -373,6 +373,9 @@ LDAP_SLAPD_F (int) dnMatch LDAP_P((
|
|||
LDAP_SLAPD_F (int) dnIsSuffix LDAP_P((
|
||||
const struct berval *dn, const struct berval *suffix ));
|
||||
|
||||
LDAP_SLAPD_F (int) dnExtractRdn LDAP_P((
|
||||
const char *dn, struct berval **rdn ));
|
||||
|
||||
LDAP_SLAPD_F (int) rdnValidate LDAP_P(( struct berval * rdn ));
|
||||
|
||||
#define SLAP_DN_MIGRATION
|
||||
|
|
|
|||
Loading…
Reference in a new issue