Searched refs:bv (Results 1 - 25 of 30) sorted by relevance

12

/osnet-11/usr/src/lib/libldap4/ber/
H A Ddecode.c279 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 Dencode.c550 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 Dio.c452 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/libkmf/ber_der/common/
H A Ddecode.c319 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 Dio.c342 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 Dencode.c604 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 Dclasn1.c623 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/libldap5/sources/ldap/common/
H A Dcompare.c53 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 ));
H A Dcache.c70 struct berval bv; local
153 bv.bv_val = buf;
154 bv.bv_len = strlen( buf );
155 bvp[0] = &bv;
H A Dsbind.c101 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 Dllib-lldap346 BerElement *ber_init(const struct berval *bv);
351 struct berval *ber_bvdup(const struct berval *bv);
352 void ber_bvecfree(struct berval **bv);
353 void ber_bvfree(struct berval *bv);
/osnet-11/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c300 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 Dencode.c566 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/fm/libdiagcode/common/
H A Ddiagcode.c95 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/cmd/ldap/common/
H A Detest.c135 if ( (bv = va_arg( ap, struct berval ** )) == NULL )
137 for ( i = 0; bv[i] != NULL; i++ ) {
138 if ( (rc = ber_put_ostring( ber, bv[i]->bv_val,
139 bv[i]->bv_len, (char)ber->ber_tag )) == -1 )
H A Dldaptest.c98 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 Dldapmodify.c270 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,
/osnet-11/usr/src/lib/libldap4/common/
H A Dcldap.c484 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...]
H A Dcompare.c100 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
/osnet-11/usr/src/lib/libldap4/include/
H A Dlber.h142 unsigned int ber_get_stringal(BerElement *ber, struct berval **bv);
156 void ber_bvfree(struct berval *bv);
157 void ber_bvecfree(struct berval **bv);
158 struct berval *ber_bvdup(struct berval *bv);
199 BerElement *ber_init(struct berval *bv);
/osnet-11/usr/src/head/
H A Dlber.h154 struct berval **bv);
166 LDAP_API(void) LDAP_CALL ber_bvfree(struct berval *bv);
167 LDAP_API(void) LDAP_CALL ber_bvecfree(struct berval **bv);
168 struct berval *LDAP_CALL ber_bvdup(const struct berval *bv);
171 LDAP_API(BerElement *) LDAP_CALL ber_init(const struct berval *bv);
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dkdb_ldap_conn.c124 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/inc/
H A Dber_der.h92 BerElement *kmfder_init(const struct berval *bv);
93 BerElement *kmfber_init(const struct berval *bv);
/osnet-11/usr/src/lib/libnisdb/
H A Dldap_print.c426 struct berval **bv = m->mod_bvalues; local
428 if (bv != 0) {
429 while (*bv != 0) {
431 (*bv)->bv_len);
432 bv++;
H A Dldap_val.c347 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...]

Completed in 82 milliseconds

12