/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | proxyauthctrl.c | 53 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 D | abandon.c | 112 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 D | add.c | 85 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 D | cache.c | 56 * 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 D | delete.c | 65 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 D | free.c | 133 * 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 D | modify.c | 78 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 D | sbind.c | 76 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 D | spagectrl.c | 26 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,
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | delete.c | 41 BerElement *ber; local 45 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 50 if ( ber_printf( ber, "{its", ++ld->ld_msgid, LDAP_REQ_DELETE, dn ) == -1 ) { 52 ber_free( ber, 1 ); 59 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){ 61 ber_free( ber, 1 ); 66 if (ldap_controls_code(ber, ld->ld_srvctrls) != LDAP_SUCCESS){ 68 ber_free( ber, 1 ); 73 if ( ber_printf( ber, "}" ) == -1 ) { 75 ber_free( ber, 94 BerElement *ber; local 143 BerElement *ber; local [all...] |
H A D | error.c | 307 BerElement ber; local 328 ber = *(lm->lm_ber); 330 rc = ber_scanf( &ber, "{iaa}", &along, &ld->ld_matched, 333 rc = ber_scanf( &ber, "{ia}", &along, &ld->ld_error );
|
H A D | extensions.c | 32 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 D | extop.c | 32 BerElement *ber; local 41 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 46 if ( ber_printf( ber, "{it{ts", ++ld->ld_msgid, LDAP_REQ_EXTENDED, LDAP_TAG_EXT_NAME, exoid ) == -1 ) { 48 ber_free( ber, 1 ); 52 if (exdata && (ber_printf(ber, "to", LDAP_TAG_EXT_VAL, exdata->bv_val, exdata->bv_len) == -1 )) { 54 ber_free( ber, 1 ); 58 if ( ber_printf( ber, "}" ) == -1 ) { 60 ber_free( ber, 1 ); 66 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){ 68 ber_free( ber, 103 BerElement *ber; local [all...] |
H A D | getvalues.c | 46 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 D | modrdn.c | 50 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 D | sbind.c | 52 BerElement *ber = NULL; local 59 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 64 if ( ber_printf( ber, "{it{ists}", ++ld->ld_msgid, LDAP_REQ_BIND, ld->ld_version, dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) { 66 ber_free( ber, 1 ); 73 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){ 75 ber_free( ber, 1 ); 80 if (ldap_controls_code(ber, ld->ld_srvctrls) != LDAP_SUCCESS){ 82 ber_free( ber, 1 ); 87 if ( ber_printf( ber, "}" ) == -1 ) { 89 ber_free( ber, 109 BerElement *ber; local [all...] |
H A D | unbind.c | 176 BerElement *ber; local 184 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 192 if ( ber_printf( ber, "{itn}", ++ld->ld_msgid, 195 ber_free( ber, 1 ); 203 if ( ber_flush( sb, ber, 1 ) == -1 ) { 205 ber_free( ber, 1 );
|
H A D | vlistctrl.c | 25 BerElement *ber; local 34 if ((ber = alloc_ber_with_options(ld)) == NULLBER) { 39 if (ber_printf(ber, "{ii", ldvlistp->ldvlist_before_count, 42 ber_free(ber, 1); 47 if (ber_printf(ber, "t{ii}}", LDAP_TAG_VLV_BY_INDEX, 51 ber_free(ber, 1); 55 if (ber_printf(ber, "to}", LDAP_TAG_VLV_BY_VALUE, 59 ber_free(ber, 1); 64 rc = ldap_build_control(LDAP_CONTROL_VLVREQUEST, ber, 1, 1, ctrlp); 73 BerElement *ber; local [all...] |
H A D | abandon.c | 51 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 D | add.c | 43 BerElement * ber; local 58 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 63 if ( ber_printf( ber, "{it{s{", ++ld->ld_msgid, LDAP_REQ_ADD, dn ) 66 ber_free( ber, 1 ); 73 rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type, 76 rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type, 81 ber_free( ber, 1 ); 86 if ( ber_printf( ber, "}}" ) == -1 ) { 88 ber_free( ber, 1 ); 95 if (ldap_controls_code(ber, serverctrl 140 BerElement *ber; local 207 BerElement *ber; local [all...] |
H A D | compare.c | 39 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 D | modify.c | 38 BerElement *ber; local 59 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) { 62 if ( ber_printf( ber, "{it{s{", ++ld->ld_msgid, LDAP_REQ_MODIFY, dn ) 65 ber_free( ber, 1 ); 72 rc = ber_printf( ber, "{e{s[V]}}", 76 rc = ber_printf( ber, "{e{s[v]}}", mods[i]->mod_op, 82 ber_free( ber, 1 ); 87 if ( ber_printf( ber, "}}" ) == -1 ) { 89 ber_free( ber, 1 ); 96 if (ldap_controls_code(ber, serverctrl 138 BerElement *ber; local 182 BerElement *ber; local [all...] |
/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | list_fsns.c | 49 BerElement *ber; local 101 for (a = ldap_first_attribute(ld, e, &ber); 102 a != NULL; a = ldap_next_attribute(ld, e, ber)) { 132 if (ber != NULL) 133 ber_free(ber, 0);
|
/osnet-11/usr/src/cmd/ldap/common/ |
H A D | dtest.c | 44 BerElement ber; local 56 if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) { 62 if ( ber_scanf( &ber, "i", &i ) == -1 ) {
|
H A D | etest.c | 37 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...] |