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
*/
-
char *
dn_parent(
Backend *be,
* 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_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_subtree LDAP_P(( Backend *be, const char *dn ));
LDAP_SLAPD_F (char *) dn_rdn LDAP_P(( Backend *be, const char *dn ));
LDAP_SLAPD_F (int) schema_init 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
*/