Searched defs:ber (Results 1 - 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dproxyauthctrl.c53 BerElement *ber; local
69 /* create a ber package to hold the controlValue */
70 if ( ( nsldapi_alloc_ber_with_options( ld, &ber ) ) != LDAP_SUCCESS ) {
77 if ( LBER_ERROR == ber_printf( ber,
82 ber_free( ber, 1 );
86 rc = nsldapi_build_control( LDAP_CONTROL_PROXYAUTH, ber, 1,
117 BerElement *ber; local
129 /* create a ber package to hold the controlValue */
130 if ( ( nsldapi_alloc_ber_with_options( ld, &ber ) ) != LDAP_SUCCESS ) {
137 if ( LBER_ERROR == ber_printf( ber,
[all...]
H A Dabandon.c112 BerElement *ber; local
197 if (( lderr = nsldapi_alloc_ber_with_options( ld, &ber )) ==
202 bererr = ber_printf( ber, "{isti",
207 bererr = ber_printf( ber, "{iti",
216 1, ber )) != LDAP_SUCCESS ) {
218 ber_free( ber, 1 );
226 if ( nsldapi_ber_flush( ld, sb, ber, 1, 0 )
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 Dcache.c56 * to the ldap cache. this routine parses the ber for the entry and
68 BerElement *ber; local
92 for ( i = 0, a = ldap_first_attribute( ld, m, &ber ); a != NULL;
93 a = ldap_next_attribute( ld, m, ber ), i++ ) {
118 if ( ber != NULL ) {
119 ber_free( ber, 0 );
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 Dfree.c133 * ber_free() checks for ber == NULL, so we don't bother.
137 ldap_ber_free( BerElement *ber, int freebuf ) argument
139 ber_free( ber, freebuf );
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 Dsbind.c76 BerElement *ber; local
117 if (( rc = nsldapi_alloc_ber_with_options( ld, &ber ))
123 if ( ber_printf( ber, "{it{ists}", msgid, LDAP_REQ_BIND,
126 ber_free( ber, 1 );
130 if ( nsldapi_put_controls( ld, NULL, 1, ber ) != LDAP_SUCCESS ) {
131 ber_free( ber, 1 );
137 (char *)dn, ber ));
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 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 Dpsearch.c32 BerElement *ber; local
57 if (( nsldapi_alloc_ber_with_options( ld, &ber )) != LDAP_SUCCESS ) {
62 if ( ber_printf( ber, "{ibb}", changetypes, changesonly,
64 ber_free( ber, 1 );
69 rc = nsldapi_build_control( LDAP_CONTROL_PERSISTENTSEARCH, ber, 1,
83 BerElement *ber; local
122 if (( ber = ber_init( &(ctrls[i]->ldctl_value))) == NULL ) {
127 if ( ber_scanf( ber, "{e", &along ) == LBER_ERROR ) {
128 ber_free( ber, 1 );
135 if ( ber_scanf( ber, "
[all...]
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 );
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 Dunbind.c195 BerElement *ber; local
201 if (( err = nsldapi_alloc_ber_with_options( ld, &ber ))
211 if ( ber_printf( ber, "{itn", msgid, LDAP_REQ_UNBIND ) == -1 ) {
212 ber_free( ber, 1 );
218 if (( err = nsldapi_put_controls( ld, serverctrls, 1, ber ))
220 ber_free( ber, 1 );
225 if ( nsldapi_ber_flush( ld, sb, ber, 1, 0 ) != 0 ) {
226 ber_free( ber, 1 );
H A Dvlistctrl.c80 BerElement *ber; local
93 /* create a ber package to hold the controlValue */
94 if ( LDAP_SUCCESS != nsldapi_alloc_ber_with_options( ld, &ber ) )
100 if ( LBER_ERROR == ber_printf( ber,
107 ber_free( ber, 1 );
113 if ( LBER_ERROR == ber_printf( ber,
121 ber_free( ber, 1 );
127 if ( LBER_ERROR == ber_printf( ber,
133 ber_free( ber, 1 );
140 ber,
187 BerElement *ber; local
[all...]
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 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 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...]
/illumos-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 ) {
H A Detest.c37 BerElement *ber; local
61 if ( (ber = ber_alloc()) == NULLBER ) {
67 if ( ber_printf( ber, "{ti}", 0x1f44, num ) == -1 ) {
72 if ( ber_flush( &sb, ber, 1 ) == -1 ) {
87 if ( ber_printf( ber, "i", i ) == -1 ) {
95 rc = ber_put_enum( ber, i, (char)ber->ber_tag );
99 rc = ber_put_null( ber, (char)ber->ber_tag );
105 rc = ber_put_ostring( ber,
[all...]
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Ddecode.c36 /* decode.c - ber input decoding routines */
59 * Note: kmfber_get_tag() only uses the ber_end and ber_ptr elements of ber.
65 kmfber_get_tag(BerElement *ber) argument
72 if (kmfber_read(ber, (char *)&xbyte, 1) != 1)
81 if (kmfber_read(ber, (char *)&xbyte, 1) != 1)
99 * Note: kmfber_skip_tag() only uses the ber_end and ber_ptr elements of ber.
104 kmfber_skip_tag(BerElement *ber, ber_len_t *len) argument
112 * Any ber element looks like this: tag length contents.
125 if ((tag = kmfber_get_tag(ber)) == KMFBER_DEFAULT)
137 if (kmfber_read(ber, (cha
164 kmfber_peek_tag(BerElement *ber, ber_len_t *len) argument
174 ber_getnint(BerElement *ber, ber_int_t *num, ber_slen_t len) argument
209 kmfber_get_int(BerElement *ber, ber_int_t *num) argument
228 kmfber_get_stringb(BerElement *ber, char *buf, ber_len_t *len) argument
275 kmfber_get_stringa(BerElement *ber, char **buf) argument
297 ber_get_oid(BerElement *ber, struct berval *oid) argument
319 ber_get_bigint(BerElement *ber, struct berval **bv) argument
367 kmfber_get_stringal(BerElement *ber, struct berval **bv) argument
398 kmfber_get_bitstringa(BerElement *ber, char **buf, ber_len_t *blen) argument
427 kmfber_get_null(BerElement *ber) argument
442 kmfber_get_boolean(BerElement *ber, int *boolval) argument
454 kmfber_first_element(BerElement *ber, ber_len_t *len, char **last) argument
471 kmfber_next_element(BerElement *ber, ber_len_t *len, char *last) argument
506 kmfber_scanf(BerElement *ber, const char *fmt, ...) argument
[all...]
H A Dencode.c70 ber_put_tag(BerElement *ber, ber_tag_t tag, int nosos) argument
79 return (kmfber_write(ber,
111 kmfber_put_len(BerElement *ber, ber_int_t len, int nosos) argument
123 return (kmfber_write(ber,
146 if (kmfber_write(ber, &lenlen, 1, nosos) != 1)
151 if (kmfber_write(ber,
159 ber_put_int_or_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) argument
194 if ((taglen = ber_put_tag(ber, tag, 0)) == -1)
197 if ((lenlen = kmfber_put_len(ber, len, 0)) == -1)
201 if (kmfber_write(ber,
210 kmfber_put_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) argument
219 ber_put_int(BerElement *ber, ber_int_t num, ber_tag_t tag) argument
228 ber_put_oid(BerElement *ber, struct berval *oid, ber_tag_t tag) argument
251 ber_put_big_int(BerElement *ber, ber_tag_t tag, char *data, ber_len_t len) argument
288 kmfber_put_ostring(BerElement *ber, char *str, ber_len_t len, ber_tag_t tag) argument
338 kmfber_put_string(BerElement *ber, char *str, ber_tag_t tag) argument
344 kmfber_put_bitstring(BerElement *ber, char *str, ber_len_t blen , ber_tag_t tag) argument
372 kmfber_put_null(BerElement *ber, ber_tag_t tag) argument
389 kmfber_put_boolean(BerElement *ber, int boolval, ber_tag_t tag) argument
424 ber_start_seqorset(BerElement *ber, ber_tag_t tag) argument
464 kmfber_start_seq(BerElement *ber, ber_tag_t tag) argument
473 kmfber_start_set(BerElement *ber, ber_tag_t tag) argument
482 ber_put_seqorset(BerElement *ber) argument
600 kmfber_printf(BerElement *ber, const char *fmt, ...) argument
[all...]
H A Dio.c43 * Note: kmfber_read() only uses the ber_end and ber_ptr elements of ber.
46 * elements of the ber structure, those functions will need to be changed
50 kmfber_read(BerElement *ber, char *buf, ber_len_t len) argument
55 nleft = ber->ber_end - ber->ber_ptr;
58 (void) memmove(buf, ber->ber_ptr, (size_t)actuallen);
60 ber->ber_ptr += actuallen;
66 * enlarge the ber buffer.
70 kmfber_realloc(BerElement *ber, ber_len_t len) argument
78 have_bytes = ber
137 kmfber_write(BerElement *ber, char *buf, ber_len_t len, int nosos) argument
160 kmfber_free(BerElement *ber, int freebuf) argument
174 BerElement *ber; local
205 kmfber_dup(BerElement *ber) argument
219 ber_init_w_nullchar(BerElement *ber, int options) argument
229 kmfber_reset(BerElement *ber, int was_writing) argument
245 ber_dump(BerElement *ber, int inout) argument
304 kmfber_flatten(BerElement *ber, struct berval **bvPtr) argument
344 BerElement *ber; local
372 BerElement *ber; local
[all...]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c40 /* decode.c - ber input decoding routines */
46 * Note: ber_get_tag() only uses the ber_end and ber_ptr elements of ber.
53 ber_get_tag( BerElement *ber )
60 if ( ber_read( ber, (char *) &xbyte, 1 ) != 1 )
69 if ( ber_read( ber, (char *) &xbyte, 1 ) != 1 )
87 * Note: ber_skip_tag() only uses the ber_end and ber_ptr elements of ber.
93 ber_skip_tag( BerElement *ber, ber_len_t *len ) argument
101 * Any ber element looks like this: tag length contents.
114 if ( (tag = ber_get_tag( ber )) == LBER_DEFAULT )
125 if ( ber_read( ber, (cha
152 ber_peek_tag( BerElement *ber, ber_len_t *len ) argument
162 ber_getnint( BerElement *ber, ber_int_t *num, ber_slen_t len ) argument
198 ber_get_int( BerElement *ber, ber_int_t *num ) argument
218 ber_get_stringb( BerElement *ber, char *buf, ber_len_t *len ) argument
265 ber_get_stringa( BerElement *ber, char **buf ) argument
300 ber_get_stringal( BerElement *ber, struct berval **bv ) argument
345 ber_get_bitstringa( BerElement *ber, char **buf, ber_len_t *blen ) argument
389 ber_get_boolean( BerElement *ber, int *boolval ) argument
402 ber_first_element( BerElement *ber, ber_len_t *len, char **last ) argument
420 ber_next_element( BerElement *ber, ber_len_t *len, char *last ) argument
432 ber_scanf( BerElement *ber, const char *fmt, ... ) argument
761 ber_set_string_translators( BerElement *ber, BERTranslateProc encode_proc, BERTranslateProc decode_proc ) argument
[all...]

Completed in 148 milliseconds

12