/titanic_41/usr/src/lib/libkmf/ber_der/common/ |
H A D | clasn1.c | 220 seqdata->bv_len = size; in get_sequence_data() 242 seqdata->bv_len = size; in get_sequence_data() 267 algoid->algorithm.Length = algoid_data.bv_len; in get_algoid() 279 algoid->algorithm.Length = AlgOID.bv_len; in get_algoid() 382 EncodedSPKI->Length = result->bv_len; in DerEncodeSPKI() 456 signature->Length = buf->bv_len; in DerEncodeDSASignature() 484 if (dst->bv_len > src->bv_len) { in convert_signed_to_fixed() 485 cnt = dst->bv_len - src->bv_len; in convert_signed_to_fixed() 489 src->bv_len); in convert_signed_to_fixed() 492 if (dst->bv_len == src->bv_len) { in convert_signed_to_fixed() [all …]
|
H A D | decode.c | 309 oid->bv_len = len; in ber_get_oid() 311 if (kmfber_read(ber, oid->bv_val, oid->bv_len) != in ber_get_oid() 312 (ber_slen_t)oid->bv_len) in ber_get_oid() 328 (*bv)->bv_len = 0; in ber_get_bigint() 346 (*bv)->bv_len = len; in ber_get_bigint() 351 while ((*p == 0x00) && ((*bv)->bv_len > 0) && (p[1] & 0x80)) { in ber_get_bigint() 353 (*bv)->bv_len--; in ber_get_bigint() 359 if ((p > (*bv)->bv_val) && ((*bv)->bv_len > 0)) in ber_get_bigint() 360 (void) bcopy(p, (*bv)->bv_val, (*bv)->bv_len); in ber_get_bigint() 392 (*bv)->bv_len = len; in kmfber_get_stringal() [all …]
|
H A D | io.c | 322 new->bv_len = 0; in kmfber_flatten() 332 new->bv_len = len; in kmfber_flatten() 350 if ((kmfber_write(ber, bv->bv_val, bv->bv_len, 0)) != in kmfder_init() 351 (ber_slen_t)bv->bv_len) { in kmfder_init() 378 if ((kmfber_write(ber, bv->bv_val, bv->bv_len, 0)) != in kmfber_init() 379 (ber_slen_t)bv->bv_len) { in kmfber_init()
|
H A D | encode.c | 238 len = (ber_int_t)oid->bv_len; in ber_put_oid() 240 kmfber_write(ber, oid->bv_val, oid->bv_len, 0) != in ber_put_oid() 241 (ber_int_t)oid->bv_len) { in ber_put_oid() 245 rc = taglen + lenlen + oid->bv_len; in ber_put_oid() 696 bv[i]->bv_len, ber->ber_tag)) == -1) in kmfber_printf()
|
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softASN1.c | 304 key_octs->bv_val, key_octs->bv_len) == -1) { 327 if ((buf == NULL) || ((ber_len_t)(*buf_len) < p8obj_octs->bv_len)) { 329 if ((buf == NULL) || ((ber_len_t)(*buf_len) < p8obj_octs->bv_len)) { 331 *buf_len = p8obj_octs->bv_len; 336 *buf_len = p8obj_octs->bv_len; 493 key_octs->bv_val, key_octs->bv_len) == -1) { 516 if ((buf == NULL) || ((ber_len_t)(*buf_len) < p8obj_octs->bv_len)) { 518 if ((buf == NULL) || ((ber_len_t)(*buf_len) < p8obj_octs->bv_len)) { 520 *buf_len = p8obj_octs->bv_len; 525 *buf_len = p8obj_octs->bv_len; [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | cram_md5.c | 93 hmac_md5((unsigned char *)challenge->bv_val, challenge->bv_len, in ldap_sasl_cram_md5_bind_s() 94 (unsigned char *)cred->bv_val, cred->bv_len, digest); in ldap_sasl_cram_md5_bind_s() 103 resp.bv_len = (strlen(dn) + 32 + 1); in ldap_sasl_cram_md5_bind_s() 104 if ((resp.bv_val = (char *)malloc(resp.bv_len+1)) == NULL) { in ldap_sasl_cram_md5_bind_s()
|
H A D | compare.c | 58 bv.bv_len = ( value == NULL ) ? 0 : strlen( value ); in ldap_compare() 93 if ( attr == NULL || bvalue == NULL || bvalue->bv_len == 0 in ldap_compare_ext() 127 attr, bvalue->bv_val, (int)bvalue->bv_len /* XXX lossy cast */ ) in ldap_compare_ext() 156 bv.bv_len = ( value == NULL ) ? 0 : strlen( value ); in ldap_compare_s()
|
H A D | control.c | 94 (int)c->ldctl_value.bv_len /* XXX lossy cast */ ) in nsldapi_put_controls() 236 (newctrl->ldctl_value).bv_len = 0; in nsldapi_get_controls() 421 len = (size_t)(ctrl_src->ldctl_value).bv_len; in ldap_control_copy_contents() 423 ctrl_dst->ldctl_value.bv_len = 0; in ldap_control_copy_contents() 426 ctrl_dst->ldctl_value.bv_len = len; in ldap_control_copy_contents() 484 (*ctrlp)->ldctl_value.bv_len = 0; in nsldapi_build_control()
|
H A D | saslbind.c | 122 tmpcred.bv_len = 0; in ldap_sasl_bind() 127 (int)cred->bv_len /* XXX lossy cast */ ); in ldap_sasl_bind() 138 (int)cred->bv_len /* XXX lossy cast */ ); in ldap_sasl_bind()
|
H A D | sasl.c | 699 ccred.bv_len = 0; in nsldapi_sasl_do_bind() 722 ccred.bv_len = credlen; in nsldapi_sasl_do_bind() 756 if (scred->bv_len == 0 ) { /* MS AD sends back empty screds */ in nsldapi_sasl_do_bind() 765 scred->bv_len, 0, 0); in nsldapi_sasl_do_bind() 784 (scred == NULL) ? 0 : scred->bv_len, in nsldapi_sasl_do_bind() 796 ccred.bv_len = credlen; in nsldapi_sasl_do_bind()
|
H A D | spagectrl.c | 38 (cookie && cookie->bv_val) ? cookie->bv_len : 0) in ldap_create_page_control()
|
H A D | cache.c | 154 bv.bv_len = strlen( buf ); in nsldapi_add_result_to_cache()
|
H A D | sbind.c | 104 bv.bv_len = strlen( passwd ); in simple_bind_nolock()
|
/titanic_41/usr/src/cmd/ldap/common/ |
H A D | fileurl.c | 310 bvp->bv_len = vlen; in ldaptool_berval_from_ldif_value() 385 bvp->bv_len = ftell( fp ); 387 if (( bvp->bv_val = (char *)malloc( bvp->bv_len + 1 )) == NULL ) { 399 rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp ); 403 if ( rlen != (long)bvp->bv_len ) { 409 bvp->bv_val[ bvp->bv_len ] = '\0';
|
H A D | ldaptest.c | 115 bv->bv_len = ftell( fp ); in file_read() 117 if (( bv->bv_val = (char *)malloc( bv->bv_len )) == NULL ) { in file_read() 129 rlen = fread( bv->bv_val, 1, bv->bv_len, fp ); in file_read() 133 if ( rlen != bv->bv_len ) { in file_read() 139 return( bv->bv_len ); in file_read() 191 bvals[i]->bv_len = in get_modlist() 510 cred.bv_len = strlen(passwd); in main() 536 bv.bv_len = strlen(value); in main() 952 bv.bv_len = strlen(line); in main() 1146 for ( j = 0; j < vals[i]->bv_len; j++ ) in print_search_entry() [all …]
|
H A D | etest.c | 139 bv[i]->bv_len, (char)ber->ber_tag )) == -1 ) in main()
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | decode.c | 325 (*bv)->bv_len = len; in ber_get_stringal() 336 (*bv)->bv_len = len - 1; in ber_get_stringal() 490 ber_peek_tag( ber, &bval->bv_len ); in ber_scanf() 731 new->bv_len = 0; in ber_bvdup() 733 if ( (new->bv_val = (char *)NSLBERI_MALLOC( bv->bv_len + 1 )) in ber_bvdup() 737 SAFEMEMCPY( new->bv_val, bv->bv_val, (size_t) bv->bv_len ); in ber_bvdup() 738 new->bv_val[bv->bv_len] = '\0'; in ber_bvdup() 739 new->bv_len = bv->bv_len; in ber_bvdup()
|
H A D | encode.c | 610 if( bval->bv_len == 0 ) { in ber_printf() 613 rc = ber_put_ostring( ber, bval->bv_val, bval->bv_len, in ber_printf() 649 bv[i]->bv_len, ber->ber_tag )) == -1 ) in ber_printf()
|
H A D | io.c | 1247 new->bv_len = 0; in ber_flatten() 1256 new->bv_len = len; in ber_flatten() 1281 if ( (ber_write ( ber, bv->bv_val, bv->bv_len, 0 )) in ber_init() 1282 != (ber_slen_t)bv->bv_len ) { in ber_init()
|
/titanic_41/usr/src/cmd/idmap/idmapd/ |
H A D | directory_provider_ad.c | 436 bv[0]->bv_len, bv[0]->bv_val, in directory_provider_ad_cb1() 494 uu_memdup(bv[i]->bv_val, bv[i]->bv_len); in bv_list_dav() 497 dav[i].directory_value_rpc_len = bv[i]->bv_len; in bv_list_dav() 520 dump(stderr, " ", bv[i]->bv_val, bv[i]->bv_len); in dump_bv_list()
|
/titanic_41/usr/src/lib/libadutils/common/ |
H A D | adutils.c | 130 if (bval->bv_len > 8 && bval->bv_val[0] == 0x01 && in adutils_getsid() 131 bval->bv_len == 1 + 1 + 6 + bval->bv_val[1] * 4) { in adutils_getsid() 415 if (bval->bv_len >= sizeof (buf)) in adutils_bv_uint() 418 (void) memcpy(buf, bval->bv_val, bval->bv_len); in adutils_bv_uint() 419 buf[bval->bv_len] = '\0'; in adutils_bv_uint() 440 if ((s = malloc(bval->bv_len + 1)) == NULL) in adutils_bv_str() 442 (void) snprintf(s, bval->bv_len + 1, "%.*s", bval->bv_len, in adutils_bv_str()
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 1808 if (kmfber_printf(asn1, "Tl", 0xA1, extdata->bv_len) == -1) in encode_krb5() 1811 extdata->bv_len, 0) != extdata->bv_len) in encode_krb5() 1844 if (kmfber_printf(asn1, "Tl", 0xA0, extdata->bv_len) == -1) in encode_krb5() 1847 extdata->bv_len, 0) != extdata->bv_len) in encode_krb5() 1860 derdata->Length = extdata->bv_len; in encode_krb5() 1899 derdata->Length = extdata->bv_len; in encode_sclogon() 2035 encodedname->Length = extdata->bv_len; in encode_altname() 2085 oldextn.bv_len = len; in GetSequenceContents() 2248 foundextn->BERvalue.Length = extdata->bv_len; in kmf_set_altname() 2253 subjAltName.BERvalue.Length = extdata->bv_len; in kmf_set_altname()
|
H A D | certgetsetop.c | 324 exdata.bv_len = asn1data->Length; in parse_eku_data() 444 exdata.bv_len = extn.value.tagAndValue->value.Length; in kmf_get_cert_basic_constraint() 644 exdata.bv_len = extn.BERvalue.Length; in kmf_get_cert_policies() 778 exdata.bv_len = extn.BERvalue.Length; in kmf_get_cert_auth_info_access() 931 ber_data.bv_len = dp_der_size; in parse_dp_name() 1070 exdata.bv_len = extn.BERvalue.Length; in kmf_get_cert_crl_dist_pts() 1851 extn.BERvalue.Length = extdata->bv_len; in set_key_usage_extension() 2143 foundextn->BERvalue.Length = extdata->bv_len; in kmf_add_cert_eku() 2152 newextn.BERvalue.Length = extdata->bv_len; in kmf_add_cert_eku() 2244 extn.BERvalue.Length = extdata->bv_len; in kmf_set_cert_basic_constraint()
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_principal2.c | 61 (*out)->tl_data_length = in->bv_len - 2; in berval2tl_data() 405 ret[j]->bv_len = code->length; in krb5_encode_krbsecretkey() 437 (*out)->bv_len = in->tl_data_length + 2; in tl_data2berval() 438 (*out)->bv_val = (char *) malloc ((*out)->bv_len); in tl_data2berval() 1270 if (bvalues[i]->bv_len == 0) 1272 in.length = bvalues[i]->bv_len;
|
/titanic_41/usr/src/lib/libkmf/ber_der/inc/ |
H A D | ber_der.h | 86 ber_len_t bv_len; member
|