*d++ = *s;
}
break;
+
case B4SEPARATOR:
if ( RDN_SEPARATOR( *s ) ) {
state = B4TYPE;
*d++ = *s;
}
break;
+
default:
dn = NULL;
Debug( LDAP_DEBUG_ANY,
"dn_validate - unknown state %d\n", state, 0, 0 );
break;
}
+
if ( *s == '\\' ) {
gotesc = 1;
} else {
}
while(*dn_in && ASCII_SPACE(*dn_in)) {
- dn++;
+ dn_in++;
}
if( *dn_in == '\0' ) {
/* Skip leading spaces */
while ( *s && ASCII_SPACE(*s) ) {
-
s++;
-
}
/* Copy word */
char * rdn_attr_type( const char * s )
{
-
return get_next_substring( s, '=' );
-
}
const char *str;
if ( (str = strchr( rdn, '=' )) != NULL ) {
-
return get_next_substring(++str, '\0');
-
}
return NULL;
{
if ( p_dn == NULL ) {
-
*new_dn = ch_strdup( newrdn );
return;
-
}
*new_dn = (char *) ch_malloc( strlen( p_dn ) + strlen( newrdn ) + 3 );