char * desc,
unsigned flags,
slap_syntax_validate_func *validate,
- slap_syntax_transform_func *ber2str,
- slap_syntax_transform_func *str2ber )
+ slap_syntax_transform_func *normalize,
+ slap_syntax_transform_func *pretty )
{
LDAPSyntax *syn;
int code;
return( -1 );
}
- code = syn_add( syn, flags, validate, ber2str, str2ber, &err );
+ code = syn_add( syn, flags, validate, normalize, pretty, &err );
ldap_memfree( syn );
vals[1] = NULL;
for ( syn = syn_list; syn; syn = syn->ssyn_next ) {
+ if ( ! syn->ssyn_validate ) {
+ /* skip syntaxes without validators */
+ continue;
+ }
+ if ( syn->ssyn_flags & SLAP_SYNTAX_HIDE ) {
+ /* hide syntaxes */
+ continue;
+ }
+
val.bv_val = ldap_syntax2str( &syn->ssyn_syn );
if ( val.bv_val == NULL ) {
return -1;