Searched refs:ber (Results 26 - 50 of 93) sorted by relevance

1234

/opensolaris-onvv-gate/usr/src/lib/libldap4/common/
H A Dsearch.c47 static char *put_complex_filter(BerElement *ber, char *str,
49 static int put_filter(BerElement *ber, char *str);
50 static int put_simple_filter(BerElement *ber, char *str);
51 static int put_substring_filter(BerElement *ber, char *type, char *str);
52 static int put_filter_list(BerElement *ber, char *str);
74 BerElement *ber; local
109 if ((ber = alloc_ber_with_options(ld)) == NULLBER) {
132 err = ber_printf(ber, "{ist{seeiib", ++ld->ld_msgid,
138 err = ber_printf(ber, "{it{seeiib", ++ld->ld_msgid,
148 ber_free(ber,
223 BerElement *ber; local
291 put_complex_filter(BerElement *ber, char *str, unsigned int tag, int not) argument
331 put_filter(BerElement *ber, char *str) argument
492 put_filter_list(BerElement *ber, char *str) argument
523 put_simple_filter(BerElement *ber, char *str) argument
586 put_substring_filter(BerElement *ber, char *type, char *val) argument
628 put_extensible_filter(BerElement *ber, char *type, char *val) argument
765 BerElement *ber; local
[all...]
H A Dgetvalues.c46 BerElement ber; local
54 ber = *entry->lm_ber;
58 if ( ber_scanf( &ber, "{x{{s", attr, &len ) == LBER_ERROR ) {
69 if ( ber_scanf( &ber, "x}{s", attr, &len ) == LBER_ERROR ) {
83 if ( ber_scanf( &ber, "[v]", &vals ) == LBER_ERROR ) {
94 BerElement ber; local
102 ber = *entry->lm_ber;
106 if ( ber_scanf( &ber, "{x{{s", attr, &len ) == LBER_ERROR ) {
117 if ( ber_scanf( &ber, "x}{s", attr, &len ) == LBER_ERROR ) {
131 if ( ber_scanf( &ber, "[
[all...]
H A Dcompare.c39 BerElement *ber; local
53 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
58 if ( ber_printf( ber, "{it{s{so}}", ++ld->ld_msgid, LDAP_REQ_COMPARE,
61 ber_free( ber, 1 );
68 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){
74 if (ldap_controls_code(ber, ld->ld_srvctrls) != LDAP_SUCCESS){
79 if (ber_printf(ber, "}") == -1) {
81 ber_free(ber, 1);
85 return (ber);
99 BerElement *ber; local
170 BerElement *ber; local
[all...]
H A Dsaslbind.c25 BerElement *ber = NULL; local
49 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
52 if ( ber_printf( ber, "{it{ist{s", ++ld->ld_msgid, LDAP_REQ_BIND, ld->ld_version, dn, LDAP_AUTH_SASL, mechanism) == -1){
54 ber_free(ber, 1);
58 if (ber_printf(ber, "o", creds->bv_val, creds->bv_len) == -1){
60 ber_free(ber, 1);
64 if (ber_printf(ber, "}}") == -1){
66 ber_free( ber, 1 );
72 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){
74 ber_free( ber,
113 BerElement *ber = NULL; local
[all...]
H A Dabandon.c51 BerElement *ber; local
55 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
62 rc = ber_printf( ber, "{isti",
67 rc = ber_printf( ber, "{iti", ++ld->ld_msgid,
75 ber_free( ber, 1 );
81 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){
87 if (ldap_controls_code(ber, ld->ld_srvctrls) != LDAP_SUCCESS){
93 if ( ber_printf( ber, "}" ) == -1 ) {
95 ber_free( ber, 1 );
98 return (ber);
163 BerElement *ber; local
[all...]
H A Dextensions.c32 BerElement *ber; local
38 if ((ber = ber_alloc_t(LBER_USE_DER)) == NULLBER){
42 if (ber_printf(ber, "{io}", pagesize,
46 ber_free(ber, 1);
50 rc = ldap_build_control(LDAP_CONTROL_SIMPLE_PAGE, ber, 1, isCritical,
H A Dmodrdn.c50 BerElement *ber; local
68 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
75 if ( ber_printf( ber, "{it{ssb}}", ++ld->ld_msgid, LDAP_REQ_MODRDN, dn,
78 ber_free( ber, 1 );
86 rv = send_initial_request( ld, LDAP_REQ_MODRDN, dn, ber );
H A Dsortctrl.c30 BerElement *ber; local
42 /* create a ber package to hold the controlValue */
43 if ((ber = alloc_ber_with_options(ld)) == NULLBER) {
48 /* encode the start of the sequence of sequences into the ber */
49 if (ber_printf(ber, "{") == -1) {
61 /* encode the attributeType into the ber */
62 if (ber_printf(ber, "{s", (sortKeyList[i])->sk_attrtype)
67 /* encode the optional orderingRule into the ber */
69 if (ber_printf(ber, "ts", LDAP_TAG_SK_MATCHRULE,
76 /* Encode the optional reverseOrder flag into the ber
110 BerElement *ber; local
[all...]
H A Dreferral.c105 BerElement *ber; local
158 if (( ber = re_encode_request( ld, origreq->lr_ber, ++ld->ld_msgid, ludp )) == NULL ) {
169 ber_free( ber, 1 );
180 ber_free( ber, 1 );
190 if ( srv != NULL && send_server_request( ld, ber, ld->ld_msgid,
326 BerElement tmpber, *ber; local
355 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
364 ber_free( ber, 1);
377 if ( ber_printf( ber, "{its", msgid, tag, dn ) == -1 ) {
380 ber_free( ber,
[all...]
H A Dkbind.c60 BerElement *ber; local
100 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
109 if (( str_translation_on = (( ber->ber_options &
111 ber->ber_options &= ~LBER_TRANSLATE_STRINGS;
116 rc = ber_printf( ber, "{it{isto}}", ++ld->ld_msgid, LDAP_REQ_BIND,
121 ber->ber_options |= LBER_TRANSLATE_STRINGS;
127 ber_free( ber, 1 );
145 rv = send_initial_request( ld, LDAP_REQ_BIND, dn, ber );
149 return ( send_initial_request( ld, LDAP_REQ_BIND, dn, ber ));
187 BerElement *ber; local
[all...]
H A Dresult.c67 static int build_result_ber( LDAP *ld, BerElement *ber, LDAPRequest *lr );
360 BerElement ber; local
382 ber_zero_init( &ber, 0 );
383 set_ber_options( ld, &ber );
386 if ( (tag = ber_get_next( sb, &len, &ber ))
403 if ( ber_get_int( &ber, &id ) == LBER_ERROR ) {
410 free( ber.ber_buf ); /* gack! */
415 if ( (tag = ber_peek_tag( &ber, &len )) == LBER_ERROR ) {
439 tmpber = ber;
440 if (ber_scanf( &ber, "{ia
838 build_result_ber( LDAP *ld, BerElement *ber, LDAPRequest *lr ) argument
1214 BerElement ber; local
1395 BerElement ber; local
1525 BerElement ber; local
[all...]
/opensolaris-onvv-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dextendop.c46 BerElement *ber; local
98 if (( rc = nsldapi_alloc_ber_with_options( ld, &ber ))
104 if ( ber_printf( ber, "{it{tsto}", msgid, LDAP_REQ_EXTENDED,
109 ber_free( ber, 1 );
113 if (( rc = nsldapi_put_controls( ld, serverctrls, 1, ber ))
115 ber_free( ber, 1 );
121 ber );
188 struct berelement ber; local
205 ber = *(res->lm_ber);
211 if ( ber_scanf( &ber, "{ia
[all...]
H A Dsaslbind.c56 BerElement *ber; local
111 if (( rc = nsldapi_alloc_ber_with_options( ld, &ber ))
125 rc = ber_printf( ber, "{it{isto}", msgid, LDAP_REQ_BIND,
131 rc = ber_printf( ber, "{it{ist{s}}", msgid,
135 rc = ber_printf( ber, "{it{ist{so}}", msgid,
144 ber_free( ber, 1 );
148 if ( (rc = nsldapi_put_controls( ld, serverctrls, 1, ber ))
150 ber_free( ber, 1 );
156 (char *)dn, ber );
222 BerElement ber; local
[all...]
H A Dsortctrl.c47 BerElement *ber; local
59 /* create a ber package to hold the controlValue */
60 if ( ( nsldapi_alloc_ber_with_options( ld, &ber ) ) != LDAP_SUCCESS ) {
65 /* encode the start of the sequence of sequences into the ber */
66 if ( ber_printf( ber, "{" ) == -1 ) {
75 /* encode the attributeType into the ber */
76 if ( ber_printf( ber, "{s", (sortKeyList[i])->sk_attrtype )
81 /* encode the optional orderingRule into the ber */
83 if ( ber_printf( ber, "ts", LDAP_TAG_SK_MATCHRULE,
90 /* Encode the optional reverseOrder flag into the ber
146 BerElement *ber; local
[all...]
H A Dspagectrl.c26 BerElement *ber; local
32 if ((ber = ber_alloc_t(LBER_USE_DER)) == NULLBER){
36 if (ber_printf(ber, "{io}", pagesize,
40 ber_free(ber, 1);
44 rc = nsldapi_build_control(LDAP_CONTROL_SIMPLE_PAGE, ber, 1, isCritical,
H A Dadd.c85 BerElement *ber; local
138 if (( lderr = nsldapi_alloc_ber_with_options( ld, &ber ))
143 if ( ber_printf( ber, "{it{s{", *msgidp, LDAP_REQ_ADD, dn )
147 ber_free( ber, 1 );
154 rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type,
157 rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type,
163 ber_free( ber, 1 );
168 if ( ber_printf( ber, "}}" ) == -1 ) {
171 ber_free( ber, 1 );
175 if (( lderr = nsldapi_put_controls( ld, serverctrls, 1, ber ))
[all...]
H A Dmodify.c78 BerElement *ber; local
136 if (( lderr = nsldapi_alloc_ber_with_options( ld, &ber ))
141 if ( ber_printf( ber, "{it{s{", *msgidp, LDAP_REQ_MODIFY, dn )
145 ber_free( ber, 1 );
152 rc = ber_printf( ber, "{e{s[V]}}",
156 rc = ber_printf( ber, "{e{s[v]}}", mods[i]->mod_op,
163 ber_free( ber, 1 );
168 if ( ber_printf( ber, "}}" ) == -1 ) {
171 ber_free( ber, 1 );
175 if (( lderr = nsldapi_put_controls( ld, serverctrls, 1, ber ))
[all...]
H A Dsearch.c53 static char *put_complex_filter( BerElement *ber, char *str,
58 static int put_simple_filter( BerElement *ber, char *str );
59 static int put_substring_filter( BerElement *ber, char *type,
61 static int put_filter_list( BerElement *ber, char *str );
165 BerElement *ber; local
219 *msgidp, &ber )) != LDAP_SUCCESS ) {
225 (char *) base, ber );
284 BerElement *ber; local
313 if (( err = nsldapi_alloc_ber_with_options( ld, &ber ))
332 err = ber_printf( ber, "{is
407 put_complex_filter( BerElement *ber, char *str, ber_tag_t tag, int not ) argument
444 ldap_put_filter( BerElement *ber, char *str ) argument
585 put_filter_list( BerElement *ber, char *str ) argument
667 put_simple_filter( BerElement *ber, char *str ) argument
864 put_substring_filter( BerElement *ber, char *type, char *val ) argument
[all...]
H A Drename.c72 BerElement *ber; local
142 if (( err = nsldapi_alloc_ber_with_options( ld, &ber ))
148 if ( ber_printf( ber, "{it{ssb", *msgidp, LDAP_REQ_MODDN, dn,
151 ber_free( ber, 1 );
156 if ( ber_printf( ber, "}" ) == -1 ) {
158 ber_free( ber, 1 );
162 if ( ber_printf( ber, "ts}", LDAP_TAG_NEWSUPERIOR, newparent )
165 ber_free( ber, 1 );
170 if (( rc = nsldapi_put_controls( ld, serverctrls, 1, ber ))
172 ber_free( ber,
[all...]
H A Dcontrol.c29 * 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" (i
128 nsldapi_get_controls( BerElement *ber, LDAPControl ***controlsp ) argument
445 nsldapi_build_control( char *oid, BerElement *ber, int freeber, char iscritical, LDAPControl **ctrlp ) argument
[all...]
H A Dcompare.c74 BerElement *ber; local
121 if (( lderr = nsldapi_alloc_ber_with_options( ld, &ber ))
126 if ( ber_printf( ber, "{it{s{so}}", *msgidp, LDAP_REQ_COMPARE, dn,
131 ber_free( ber, 1 );
135 if (( lderr = nsldapi_put_controls( ld, serverctrls, 1, ber ))
137 ber_free( ber, 1 );
143 (char *)dn, ber );
H A Ddelete.c65 BerElement *ber; local
105 if (( lderr = nsldapi_alloc_ber_with_options( ld, &ber ))
110 if ( ber_printf( ber, "{its", *msgidp, LDAP_REQ_DELETE, dn )
114 ber_free( ber, 1 );
118 if (( lderr = nsldapi_put_controls( ld, serverctrls, 1, ber ))
120 ber_free( ber, 1 );
126 (char *)dn, ber );
H A Dreferral.c127 BerElement ber; local
149 ber = *rber; /* struct copy */
151 if ( ber_scanf( &ber, "{v", &refs ) == LBER_ERROR ) {
155 if ( ber_scanf( &ber, "}" ) == LBER_ERROR ) {
158 err = nsldapi_get_controls( &ber, serverctrlsp );
/opensolaris-onvv-gate/usr/src/cmd/ldap/common/
H A Ddtest.c44 BerElement ber; local
56 if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) {
62 if ( ber_scanf( &ber, "i", &i ) == -1 ) {
/opensolaris-onvv-gate/usr/src/lib/pkcs11/
H A Dinc.flg31 find_files "s.*" usr/src/lib/libldap5/sources/ldap/ber

Completed in 260 milliseconds

1234