mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Zap dn_match(), cleanup up prototype header
This commit is contained in:
parent
ab521f1e28
commit
7a6e80cdcd
@ -527,28 +527,9 @@ dn_normalize( char *dn )
|
|||||||
return( dn );
|
return( dn );
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
dn_match( const char *val, const char *asserted )
|
|
||||||
{
|
|
||||||
struct berval bval, basserted;
|
|
||||||
|
|
||||||
if ( val == NULL || asserted == NULL ) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bval.bv_val = ( char * )val;
|
|
||||||
bval.bv_len = strlen( val );
|
|
||||||
|
|
||||||
basserted.bv_val = ( char * )asserted;
|
|
||||||
basserted.bv_len = strlen( asserted);
|
|
||||||
|
|
||||||
return dnMatch( NULL, 0, NULL, NULL, &bval, &basserted);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dn_parent - return the dn's parent, in-place
|
* dn_parent - return the dn's parent, in-place
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *
|
char *
|
||||||
dn_parent(
|
dn_parent(
|
||||||
Backend *be,
|
Backend *be,
|
||||||
|
@ -325,9 +325,30 @@ LDAP_SLAPD_F (void) connection_internal_close( Connection *conn );
|
|||||||
* dn.c
|
* dn.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
LDAP_SLAPD_F (int) dnValidate LDAP_P((
|
||||||
|
Syntax *syntax,
|
||||||
|
struct berval *val ));
|
||||||
|
|
||||||
|
LDAP_SLAPD_F (int) dnNormalize LDAP_P((
|
||||||
|
Syntax *syntax,
|
||||||
|
struct berval *val,
|
||||||
|
struct berval **normalized ));
|
||||||
|
|
||||||
|
LDAP_SLAPD_F (int) dnPretty LDAP_P((
|
||||||
|
Syntax *syntax,
|
||||||
|
struct berval *val,
|
||||||
|
struct berval **pretty ));
|
||||||
|
|
||||||
|
LDAP_SLAPD_F (int) dnMatch LDAP_P((
|
||||||
|
int *matchp,
|
||||||
|
slap_mask_t flags,
|
||||||
|
Syntax *syntax,
|
||||||
|
MatchingRule *mr,
|
||||||
|
struct berval *value,
|
||||||
|
void *assertedValue ));
|
||||||
|
|
||||||
LDAP_SLAPD_F (char *) dn_validate LDAP_P(( char *dn ));
|
LDAP_SLAPD_F (char *) dn_validate LDAP_P(( char *dn ));
|
||||||
LDAP_SLAPD_F (char *) dn_normalize LDAP_P(( char *dn ));
|
LDAP_SLAPD_F (char *) dn_normalize LDAP_P(( char *dn ));
|
||||||
LDAP_SLAPD_F (int) dn_match LDAP_P(( const char *val, const char *asserted ));
|
|
||||||
LDAP_SLAPD_F (char *) dn_parent LDAP_P(( Backend *be, const char *dn ));
|
LDAP_SLAPD_F (char *) dn_parent LDAP_P(( Backend *be, const char *dn ));
|
||||||
LDAP_SLAPD_F (char **) dn_subtree LDAP_P(( Backend *be, const char *dn ));
|
LDAP_SLAPD_F (char **) dn_subtree LDAP_P(( Backend *be, const char *dn ));
|
||||||
LDAP_SLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, const char *dn ));
|
LDAP_SLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, const char *dn ));
|
||||||
@ -751,28 +772,6 @@ LDAP_SLAPD_F( int ) mods_structural_class(
|
|||||||
LDAP_SLAPD_F (int) schema_init LDAP_P((void));
|
LDAP_SLAPD_F (int) schema_init LDAP_P((void));
|
||||||
LDAP_SLAPD_F (int) schema_prep LDAP_P((void));
|
LDAP_SLAPD_F (int) schema_prep LDAP_P((void));
|
||||||
|
|
||||||
LDAP_SLAPD_F (int) dnValidate LDAP_P((
|
|
||||||
Syntax *syntax,
|
|
||||||
struct berval *val ));
|
|
||||||
|
|
||||||
LDAP_SLAPD_F (int) dnNormalize LDAP_P((
|
|
||||||
Syntax *syntax,
|
|
||||||
struct berval *val,
|
|
||||||
struct berval **normalized ));
|
|
||||||
|
|
||||||
LDAP_SLAPD_F (int) dnPretty LDAP_P((
|
|
||||||
Syntax *syntax,
|
|
||||||
struct berval *val,
|
|
||||||
struct berval **pretty ));
|
|
||||||
|
|
||||||
LDAP_SLAPD_F (int) dnMatch LDAP_P((
|
|
||||||
int *matchp,
|
|
||||||
slap_mask_t flags,
|
|
||||||
Syntax *syntax,
|
|
||||||
MatchingRule *mr,
|
|
||||||
struct berval *value,
|
|
||||||
void *assertedValue ));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* schemaparse.c
|
* schemaparse.c
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user