Lines Matching refs:ber
29 * Append a list of LDAPv3 controls to ber. If ctrls is NULL, use default
36 BerElement *ber )
72 if ( ber_printf( ber, "t{", LDAP_TAG_CONTROLS ) == -1 ) {
79 if ( ber_printf( ber, "{s", c->ldctl_oid ) == -1 ) {
86 if ( ber_printf( ber, "b", (int)c->ldctl_iscritical )
93 if ( ber_printf( ber, "o", c->ldctl_value.bv_val,
100 if ( ber_put_seq( ber ) == -1 ) {
105 if ( ber_put_seq( ber ) == -1 ) {
111 if ( closeseq && ber_put_seq( ber ) == -1 ) {
124 * Pull controls out of "ber" (if any present) and return them in "controlsp."
128 nsldapi_get_controls( BerElement *ber, LDAPControl ***controlsp )
157 if ( ber_get_option( ber, LBER_OPT_REMAINING_BYTES, &len ) != 0 ) {
165 if (( tag = ber_peek_tag( ber, &len )) != LDAP_TAG_CONTROLS ) {
184 for ( tag = ber_first_element( ber, &len, &last );
186 tag = ber_next_element( ber, &len, last ) ) {
207 if ( ber_scanf( ber, "{a", &newctrl->ldctl_oid )
214 if ( ber_peek_tag( ber, &len ) == LBER_BOOLEAN ) {
217 if ( ber_scanf( ber, "b", &aint ) == LBER_ERROR ) {
228 if ( ber_peek_tag( ber, &len ) == LBER_OCTETSTRING ) {
229 if ( ber_scanf( ber, "o", &newctrl->ldctl_value )
445 nsldapi_build_control( char *oid, BerElement *ber, int freeber, char iscritical,
451 if ( ber == NULL ) {
455 rc = ber_flatten( ber, &bvp );
457 ber_free( ber, 1 );