Lines Matching refs:bv_val
76 return ( strcasecmp( map1->src.bv_val, map2->src.bv_val ) );
85 return ( ( strcasecmp( map1->src.bv_val, map2->src.bv_val ) == 0 ) ? -1 : 0 );
219 na[j++] = mapped.bv_val;
234 na[j++] = mapped.bv_val;
292 if ( vtmp.bv_val != value->bv_val ) {
329 ber_memfree( vtmp.bv_val );
332 ber_memfree_x( vtmp.bv_val, memctx );
386 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
387 if ( !fstr->bv_val ) {
388 ber_memfree_x( vtmp.bv_val, memctx );
392 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=%s)",
393 atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
395 ber_memfree_x( vtmp.bv_val, memctx );
407 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
408 if ( !fstr->bv_val ) {
409 ber_memfree_x( vtmp.bv_val, memctx );
413 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s>=%s)",
414 atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
416 ber_memfree_x( vtmp.bv_val, memctx );
428 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
429 if ( !fstr->bv_val ) {
430 ber_memfree_x( vtmp.bv_val, memctx );
434 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s<=%s)",
435 atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
437 ber_memfree_x( vtmp.bv_val, memctx );
449 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
450 if ( !fstr->bv_val ) {
451 ber_memfree_x( vtmp.bv_val, memctx );
455 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s~=%s)",
456 atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
458 ber_memfree_x( vtmp.bv_val, memctx );
471 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 128, memctx ); /* FIXME: why 128 ? */
472 if ( !fstr->bv_val ) {
476 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
477 atmp.bv_val );
487 tmp = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
489 ber_memfree_x( vtmp.bv_val, memctx );
492 fstr->bv_val = tmp;
494 snprintf( &fstr->bv_val[len - 2], vtmp.bv_len + 3,
496 vtmp.bv_len ? vtmp.bv_val : "" );
498 ber_memfree_x( vtmp.bv_val, memctx );
509 tmp = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
511 ber_memfree_x( vtmp.bv_val, memctx );
514 fstr->bv_val = tmp;
516 snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
518 vtmp.bv_len ? vtmp.bv_val : "" );
519 ber_memfree_x( vtmp.bv_val, memctx );
531 tmp = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
533 ber_memfree_x( vtmp.bv_val, memctx );
536 fstr->bv_val = tmp;
538 snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
540 vtmp.bv_len ? vtmp.bv_val : "" );
542 ber_memfree_x( vtmp.bv_val, memctx );
555 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
556 if ( !fstr->bv_val ) {
560 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
561 atmp.bv_val );
568 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 128, memctx ); /* FIXME: why 128? */
570 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%c)",
585 fstr->bv_val = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
586 if ( !fstr->bv_val ) {
587 ber_memfree_x( vtmp.bv_val, memctx );
591 snprintf( &fstr->bv_val[len-1], vtmp.bv_len + 2,
592 /*"("*/ "%s)", vtmp.bv_len ? vtmp.bv_val : "" );
594 ber_memfree_x( vtmp.bv_val, memctx );
617 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
618 if ( !fstr->bv_val ) {
619 ber_memfree_x( vtmp.bv_val, memctx );
623 snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s%s%s%s:=%s)",
624 atmp.bv_val,
627 !BER_BVISEMPTY( &f->f_mr_rule_text ) ? f->f_mr_rule_text.bv_val : "",
628 vtmp.bv_len ? vtmp.bv_val : "" );
629 ber_memfree_x( vtmp.bv_val, memctx );
700 ( !BER_BVISEMPTY( &ftmp ) ? ftmp.bv_val : dmy ),
701 fdc.conn, &fstr->bv_val ) )
705 fstr->bv_len = strlen( fstr->bv_val );
712 fdc.ctx, BER_BVISNULL( &ftmp ) ? "" : ftmp.bv_val,
713 BER_BVISNULL( fstr ) ? "" : fstr->bv_val );
734 if ( fstr->bv_val == dmy ) {
737 } else if ( fstr->bv_val != ftmp.bv_val ) {
743 ch_free( fstr->bv_val );
772 rc = ldap_url_parse( a_vals[ i ].bv_val, &ludp );
796 ber_memfree( a_vals[ i ].bv_val );
807 if ( !BER_BVISNULL( &dn ) && olddn.bv_val != dn.bv_val )
811 ludp->lud_dn = dn.bv_val;
813 free( dn.bv_val );
821 ber_memfree_x( a_vals[ i ].bv_val, memctx );
824 ludp->lud_dn = olddn.bv_val;
865 ch_free( a_vals[i].bv_val );
875 if ( !BER_BVISNULL( &bv ) && bv.bv_val != a_vals[i].bv_val ) {
876 ch_free( a_vals[i].bv_val );
909 ber_memfree( a_vals[i].bv_val );
919 if ( !BER_BVISNULL( &bv ) && a_vals[i].bv_val != bv.bv_val ) {
920 ber_memfree( a_vals[i].bv_val );