/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | cache.c | 70 struct berval bv; local 153 bv.bv_val = buf; 154 bv.bv_len = strlen( buf ); 155 bvp[0] = &bv;
|
H A D | sbind.c | 101 struct berval bv; local 103 bv.bv_val = (char *)passwd; 104 bv.bv_len = strlen( passwd ); 107 rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, &bv,
|
H A D | compare.c | 53 struct berval bv; local 57 bv.bv_val = (char *)value; 58 bv.bv_len = ( value == NULL ) ? 0 : strlen( value ); 60 if ( ldap_compare_ext( ld, dn, attr, &bv, NULL, NULL, &msgid ) 153 struct berval bv; local 155 bv.bv_val = (char *)value; 156 bv.bv_len = ( value == NULL ) ? 0 : strlen( value ); 158 return( ldap_compare_ext_s( ld, dn, attr, &bv, NULL, NULL ));
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | compare.c | 100 struct berval bv; local 119 bv.bv_val = value; 120 bv.bv_len = strlen(value); 122 if ((ber = ldap_build_compare_req(ld, dn, attr, &bv, NULL)) == NULLBER) { 171 struct berval bv; local
|
H A D | cldap.c | 484 struct berval *bv; local 489 bv = NULL; 507 if ( ber_get_stringal( ber, &bv ) == LBER_DEFAULT ) { 511 if ( ber_printf( ldm->lm_ber, "to", tag, bv->bv_val, 512 bv->bv_len ) == -1 ) { 515 ber_bvfree( bv ); 516 bv = NULL; 520 if ( ber_scanf( ber, "{aO", &dn, &bv ) == LBER_ERROR ) { 540 if ( ber_printf( ldm->lm_ber, "t{so}", tag, dn, bv->bv_val, 541 bv [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | kdb_ldap_conn.c | 124 struct berval bv={0, NULL}, *servercreds=NULL; local 132 &bv, 148 bv.bv_val = ldap_context->bind_pwd; 149 bv.bv_len = strlen(ldap_context->bind_pwd); 152 LDAP_SASL_SIMPLE, &bv, NULL,
|
/osnet-11/usr/src/lib/libkmf/ber_der/common/ |
H A D | decode.c | 319 ber_get_bigint(BerElement *ber, struct berval **bv) argument 324 if ((*bv = (struct berval *)malloc(sizeof (struct berval))) 328 (*bv)->bv_len = 0; 329 (*bv)->bv_val = NULL; 335 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1)) 343 if (kmfber_read(ber, (*bv)->bv_val, len) != (ber_slen_t)len) 346 (*bv)->bv_len = len; 350 char *p = (*bv)->bv_val; 351 while ((*p == 0x00) && ((*bv)->bv_len > 0) && (p[1] & 0x80)) { 353 (*bv) 367 kmfber_get_stringal(BerElement *ber, struct berval **bv) argument 481 kmfber_bvfree(struct berval *bv) argument 492 kmfber_bvecfree(struct berval **bv) argument 511 struct berval ***bv, **bvp, *bval; local 774 kmfber_bvdup(const struct berval *bv) argument [all...] |
H A D | encode.c | 604 struct berval **bv, *oid; local 692 if ((bv = va_arg(ap, struct berval **)) == NULL) 694 for (i = 0; bv[i] != NULL; i++) { 695 if ((rc = kmfber_put_ostring(ber, bv[i]->bv_val, 696 bv[i]->bv_len, ber->ber_tag)) == -1)
|
H A D | io.c | 342 kmfder_init(const struct berval *bv) argument 348 /* copy data from the bv argument into BerElement */ 350 if ((kmfber_write(ber, bv->bv_val, bv->bv_len, 0)) != 351 (ber_slen_t)bv->bv_len) { 364 * in the bv argument or a null pointer on error 370 kmfber_init(const struct berval *bv) argument 376 /* copy data from the bv argument into BerElement */ 378 if ((kmfber_write(ber, bv->bv_val, bv [all...] |
H A D | clasn1.c | 623 BerValue bv; local 631 bv.bv_val = (char *)EncodedSPKI->Data; 632 bv.bv_len = EncodedSPKI->Length; 634 if ((asn1 = kmfder_init(&bv)) == NULL) 1609 BerValue bv; local 1611 bv.bv_val = (char *)Data->Data; 1612 bv.bv_len = Data->Length; 1614 asn1 = kmfder_init(&bv); 1637 BerValue bv; local 1639 bv 1662 BerValue *bv = NULL; local [all...] |
/osnet-11/usr/src/lib/libldap4/ber/ |
H A D | decode.c | 279 ber_get_stringal( BerElement *ber, struct berval **bv ) 283 if ( (*bv = (struct berval *) malloc( sizeof(struct berval) )) == NULL ) 289 if ( ((*bv)->bv_val = (char *) malloc( (size_t)len + 1 )) == NULL ) 292 if ( ber_read( ber, (*bv)->bv_val, len ) != len ) 294 ((*bv)->bv_val)[len] = '\0'; 295 (*bv)->bv_len = len; 301 if ( (*(ber->ber_decode_translate_proc))( &((*bv)->bv_val), 303 free( (*bv)->bv_val ); 306 (*bv)->bv_len = len - 1; 406 struct berval ***bv, **bv local 609 struct berval * bv; local [all...] |
H A D | encode.c | 550 struct berval **bv; local 616 if ( (bv = va_arg( ap, struct berval ** )) == NULL ) 618 for ( i = 0; bv[i] != NULL; i++ ) { 619 if ( (rc = ber_put_ostring( ber, bv[i]->bv_val, 620 bv[i]->bv_len, ber->ber_tag )) == -1 )
|
H A D | io.c | 452 BerElement *ber_init(struct berval *bv) argument 456 if (bv == NULL) 461 if ((new->ber_buf = (char *)malloc(bv->bv_len + 1)) == NULL){ 465 SAFEMEMCPY(new->ber_buf, bv->bv_val, bv->bv_len); 466 new->ber_end = new->ber_buf + bv->bv_len; 468 new->ber_len = bv->bv_len;
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | decode.c | 300 ber_get_stringal( BerElement *ber, struct berval **bv ) 305 if ( (*bv = (struct berval *)NSLBERI_MALLOC( sizeof(struct berval) )) 314 if ( ((*bv)->bv_val = (char *)NSLBERI_MALLOC( (size_t)len + 1 )) 322 if ( ber_read( ber, (*bv)->bv_val, len ) != (ber_slen_t) len ) 324 ((*bv)->bv_val)[len] = '\0'; 325 (*bv)->bv_len = len; 331 if ( (*(ber->ber_decode_translate_proc))( &((*bv)->bv_val), 333 NSLBERI_FREE( (*bv)->bv_val ); 336 (*bv)->bv_len = len - 1; 437 struct berval ***bv, **bv local [all...] |
H A D | encode.c | 566 struct berval *bval, **bv; local 645 if ( (bv = va_arg( ap, struct berval ** )) == NULL ) 647 for ( i = 0; bv[i] != NULL; i++ ) { 648 if ( (rc = ber_put_ostring( ber, bv[i]->bv_val, 649 bv[i]->bv_len, ber->ber_tag )) == -1 )
|
/osnet-11/usr/src/lib/libnisdb/ |
H A D | ldap_print.c | 426 struct berval **bv = m->mod_bvalues; local 428 if (bv != 0) { 429 while (*bv != 0) { 431 (*bv)->bv_len); 432 bv++;
|
H A D | ldap_val.c | 347 struct berval *bv = 0; local 395 if (ber_flatten(ber, &bv) != 0 || bv == 0) { 404 val->val[i].length = bv->bv_len; 405 val->val[i].value = bv->bv_val; 431 struct berval bv; local 437 bv.bv_val = val->val[i].value; 438 bv.bv_len = val->val[i].length; 439 ber = ber_init(&bv); 466 struct berval *bv local [all...] |
/osnet-11/usr/src/cmd/ldap/common/ |
H A D | ldaptest.c | 98 file_read( char *path, struct berval *bv ) 115 bv->bv_len = ftell( fp ); 117 if (( bv->bv_val = (char *)malloc( bv->bv_len )) == NULL ) { 129 rlen = fread( bv->bv_val, 1, bv->bv_len, fp ); 133 if ( rlen != bv->bv_len ) { 135 free( bv->bv_val ); 139 return( bv->bv_len ); 275 struct berval bv, cre local [all...] |
H A D | ldapmodify.c | 270 struct berval bv, *retdata; local 273 bv.bv_val = bulkimport_suffix; 274 bv.bv_len = strlen(bulkimport_suffix); 276 BULKIMPORT_START_OID, &bv, NULL, 361 struct berval bv, *retdata; local 364 bv.bv_val = ""; 365 bv.bv_len = 0; 367 BULKIMPORT_STOP_OID, &bv, NULL,
|
H A D | common.c | 1444 struct berval bv; local 1446 bv.bv_val = (char *)passwd; /* XXXmcs: had to cast away const */ 1447 bv.bv_len = ( passwd == NULL ? 0 : strlen( passwd )); 1448 return( ldaptool_sasl_bind_s( ld, dn, LDAP_SASL_SIMPLE, &bv, serverctrls,
|
/osnet-11/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode.c | 95 static const struct info *dictval2info(const bitv *bv); 110 static void bitv_free(bitv *bv); 111 static void bitv_shift(bitv *bv, unsigned bits); 112 static void bitv_setlo(bitv *bv, unsigned bits, unsigned val); 113 static void bitv_shiftin(bitv *bv, unsigned bits, unsigned val); 114 static void bitv_shiftinv(bitv *bv, unsigned bits, const bitv *inbv); 115 static int bitv_bits(const bitv *bv); 116 static unsigned bitv_chunk(const bitv *bv, unsigned limbit, unsigned lobit); 117 static int bitv_mul(bitv *bv, unsigned long long val); 118 static int bitv_add(bitv *bv, unsigne 589 dictval2info(const bitv *bv) argument 1113 struct bitv *bv = malloc(sizeof (*bv)); local 1124 bitv_free(bitv *bv) argument 1131 bitv_shift(bitv *bv, unsigned bits) argument 1153 bitv_setlo(bitv *bv, unsigned bits, unsigned val) argument 1185 bitv_shiftin(bitv *bv, unsigned bits, unsigned val) argument 1193 bitv_shiftinv(bitv *bv, unsigned bits, const bitv *inbv) argument 1208 bitv_bits(const bitv *bv) argument 1229 bitv_chunk(const bitv *bv, unsigned limbit, unsigned lobit) argument 1256 bitv_mul(bitv *bv, unsigned long long val) argument 1308 bitv_add(bitv *bv, unsigned long long val) argument 1339 bitv_sub(bitv *bv, unsigned long long val) argument 1372 bitv_ge(const bitv *bv, unsigned long long val) argument 1400 bitv *bv = bitv_alloc(); local [all...] |
/osnet-11/usr/src/lib/libsun_ima/common/ |
H A D | ima.c | 698 IMA_BOOL_VALUE bv; local 700 bv.currentValue = initialR2T; 701 return (setISCSINodeParameter(BOOL_PARAM, &Oid, &bv, 720 IMA_BOOL_VALUE bv; local 722 bv.currentValue = immediateData; 723 return (setISCSINodeParameter(BOOL_PARAM, &Oid, &bv, 741 IMA_BOOL_VALUE bv; local 743 bv.currentValue = dataPduInOrder; 744 return (setISCSINodeParameter(BOOL_PARAM, &Oid, &bv, 762 IMA_BOOL_VALUE bv; local [all...] |