/titanic_44/usr/src/lib/libkmf/ber_der/common/ |
H A D | decode.c | 306 if ((oid->bv_val = (char *)malloc((size_t)len + 1)) == NULL) { in ber_get_oid() 311 if (kmfber_read(ber, oid->bv_val, oid->bv_len) != in ber_get_oid() 329 (*bv)->bv_val = NULL; in ber_get_bigint() 335 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1)) in ber_get_bigint() 343 if (kmfber_read(ber, (*bv)->bv_val, len) != (ber_slen_t)len) in ber_get_bigint() 350 char *p = (*bv)->bv_val; 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() 381 if (((*bv)->bv_val = (char *)malloc((size_t)len + 1)) in kmfber_get_stringal() 389 if (kmfber_read(ber, (*bv)->bv_val, len) != (ber_slen_t)len) in kmfber_get_stringal() [all …]
|
H A D | clasn1.c | 211 seqdata->bv_val = malloc(size); in get_sequence_data() 212 if (seqdata->bv_val == NULL) { in get_sequence_data() 216 if (kmfber_read(asn1, seqdata->bv_val, size) == in get_sequence_data() 233 seqdata->bv_val = malloc(size); in get_sequence_data() 234 if (seqdata->bv_val == NULL) { in get_sequence_data() 238 if (kmfber_read(asn1, seqdata->bv_val, size) == in get_sequence_data() 266 algoid->algorithm.Data = (uchar_t *)algoid_data.bv_val; in get_algoid() 278 algoid->algorithm.Data = (uchar_t *)AlgOID.bv_val; in get_algoid() 381 EncodedSPKI->Data = (uchar_t *)result->bv_val; in DerEncodeSPKI() 455 signature->Data = (uchar_t *)buf->bv_val; in DerEncodeDSASignature() [all …]
|
H A D | io.c | 321 new->bv_val = NULL; in kmfber_flatten() 325 new->bv_val = (char *)malloc((size_t)(len + 1)); in kmfber_flatten() 326 if (new->bv_val == NULL) { in kmfber_flatten() 330 (void) memmove(new->bv_val, ber->ber_buf, (size_t)len); in kmfber_flatten() 331 new->bv_val[len] = '\0'; in kmfber_flatten() 350 if ((kmfber_write(ber, bv->bv_val, bv->bv_len, 0)) != in kmfder_init() 378 if ((kmfber_write(ber, bv->bv_val, bv->bv_len, 0)) != in kmfber_init()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | cram_md5.c | 91 LDAPDebug (LDAP_DEBUG_TRACE, "SASL challenge: %s\n", challenge->bv_val, 0, 0); in ldap_sasl_cram_md5_bind_s() 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() 104 if ((resp.bv_val = (char *)malloc(resp.bv_len+1)) == NULL) { in ldap_sasl_cram_md5_bind_s() 108 sprintf(resp.bv_val, "%s %s", dn, theHDigest); in ldap_sasl_cram_md5_bind_s() 111 LDAPDebug (LDAP_DEBUG_TRACE, "SASL response: %s\n", resp.bv_val, 0, 0); in ldap_sasl_cram_md5_bind_s() 114 free(resp.bv_val); in ldap_sasl_cram_md5_bind_s()
|
H A D | control.c | 92 if ( c->ldctl_value.bv_val != NULL ) { in nsldapi_put_controls() 93 if ( ber_printf( ber, "o", c->ldctl_value.bv_val, in nsldapi_put_controls() 235 (newctrl->ldctl_value).bv_val = NULL; in nsldapi_get_controls() 267 if ( ctrl->ldctl_value.bv_val != NULL ) { in ldap_control_free() 268 NSLDAPI_FREE( ctrl->ldctl_value.bv_val ); in ldap_control_free() 422 if ( ctrl_src->ldctl_value.bv_val == NULL || len <= 0 ) { in ldap_control_copy_contents() 424 ctrl_dst->ldctl_value.bv_val = NULL; in ldap_control_copy_contents() 427 if (( ctrl_dst->ldctl_value.bv_val = NSLDAPI_MALLOC( len )) in ldap_control_copy_contents() 432 SAFEMEMCPY( ctrl_dst->ldctl_value.bv_val, in ldap_control_copy_contents() 433 ctrl_src->ldctl_value.bv_val, len ); in ldap_control_copy_contents() [all …]
|
H A D | spagectrl.c | 37 (cookie && cookie->bv_val) ? cookie->bv_val : "", in ldap_create_page_control() 38 (cookie && cookie->bv_val) ? cookie->bv_len : 0) in ldap_create_page_control()
|
H A D | compare.c | 57 bv.bv_val = (char *)value; in ldap_compare() 127 attr, bvalue->bv_val, (int)bvalue->bv_len /* XXX lossy cast */ ) in ldap_compare_ext() 155 bv.bv_val = (char *)value; in ldap_compare_s()
|
H A D | digest_md5.c | 676 cred->bv_val == NULL) in ldap_x_sasl_digest_md5_bind_s() 689 challenge->bv_val, 0, 0); in ldap_x_sasl_digest_md5_bind_s() 690 errnum = ldap_digest_md5_encode(challenge->bv_val, in ldap_x_sasl_digest_md5_bind_s() 691 user_name, cred->bv_val, &digest); in ldap_x_sasl_digest_md5_bind_s() 695 resp.bv_val = digest; in ldap_x_sasl_digest_md5_bind_s() 753 cred->bv_val == NULL || result == NULL || msgidp == NULL) in sasl_digest_md5_bind_2() 769 err = ldap_digest_md5_encode(challenge->bv_val, in sasl_digest_md5_bind_2() 770 user_name, cred->bv_val, &digest); in sasl_digest_md5_bind_2() 774 resp.bv_val = digest; in sasl_digest_md5_bind_2()
|
H A D | saslbind.c | 121 tmpcred.bv_val = ""; in ldap_sasl_bind() 126 ldapversion, dn, LDAP_AUTH_SIMPLE, cred->bv_val, in ldap_sasl_bind() 137 mechanism, cred->bv_val, in ldap_sasl_bind()
|
H A D | extendop.c | 75 exdata == NULL || exdata->bv_val == NULL ) { in ldap_extended_operation() 106 exdata->bv_val, (int)exdata->bv_len /* XXX lossy cast */ ) == -1 ) { in ldap_extended_operation()
|
H A D | freevalues.c | 56 NSLDAPI_FREE( vals[i]->bv_val ); in ldap_value_free_len()
|
H A D | sasl.c | 698 ccred.bv_val = NULL; in nsldapi_sasl_do_bind() 708 (const char **)&ccred.bv_val, in nsldapi_sasl_do_bind() 744 if ( ccred.bv_val != NULL ) { in nsldapi_sasl_do_bind() 745 ccred.bv_val = NULL; in nsldapi_sasl_do_bind() 783 (scred == NULL) ? NULL : scred->bv_val, in nsldapi_sasl_do_bind() 786 (const char **)&ccred.bv_val, in nsldapi_sasl_do_bind()
|
H A D | cache.c | 153 bv.bv_val = buf; in nsldapi_add_result_to_cache()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | decode.c | 314 if ( ((*bv)->bv_val = (char *)NSLBERI_MALLOC( (size_t)len + 1 )) in ber_get_stringal() 322 if ( ber_read( ber, (*bv)->bv_val, len ) != (ber_slen_t) len ) in ber_get_stringal() 324 ((*bv)->bv_val)[len] = '\0'; in ber_get_stringal() 331 if ( (*(ber->ber_decode_translate_proc))( &((*bv)->bv_val), in ber_get_stringal() 333 NSLBERI_FREE( (*bv)->bv_val ); in ber_get_stringal() 491 rc = ber_get_stringa( ber, &bval->bv_val ); in ber_scanf() 635 if (bval->bv_val) NSLBERI_FREE(bval->bv_val); in ber_scanf() 698 if ( bv->bv_val != NULL ) { in ber_bvfree() 699 NSLBERI_FREE( bv->bv_val ); in ber_bvfree() 729 if ( bv->bv_val == NULL ) { in ber_bvdup() [all …]
|
H A D | io.c | 1246 new->bv_val = NULL; in ber_flatten() 1250 if ( ( new->bv_val = (char *)NSLBERI_MALLOC( len + 1 )) == NULL ) { in ber_flatten() 1254 SAFEMEMCPY( new->bv_val, ber->ber_buf, (size_t)len ); in ber_flatten() 1255 new->bv_val[len] = '\0'; in ber_flatten() 1281 if ( (ber_write ( ber, bv->bv_val, bv->bv_len, 0 )) in ber_init()
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softASN1.c | 304 key_octs->bv_val, key_octs->bv_len) == -1) { 337 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len); 493 key_octs->bv_val, key_octs->bv_len) == -1) { 526 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len); 667 key_octs->bv_val, key_octs->bv_len) == -1) { 700 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len); 859 key_octs->bv_val, key_octs->bv_len) == -1) { 892 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len); 964 p8obj_octs.bv_val = (char *)buf; 972 key_octs.bv_val = NULL; [all …]
|
/titanic_44/usr/src/cmd/ldap/common/ |
H A D | fileurl.c | 311 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value() 315 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value() 316 bvp->bv_val[ vlen ] = '\0'; in ldaptool_berval_from_ldif_value() 387 if (( bvp->bv_val = (char *)malloc( bvp->bv_len + 1 )) == NULL ) { 399 rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp ); 405 free( bvp->bv_val ); 409 bvp->bv_val[ bvp->bv_len ] = '\0';
|
H A D | ldaptest.c | 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() 135 free( bv->bv_val ); in file_read() 190 bvals[i]->bv_val = tmp.mod_values[i]; in get_modlist() 509 cred.bv_val = passwd; in main() 535 bv.bv_val = value; in main() 951 bv.bv_val = strdup(line); in main() 1147 if ( !isascii( vals[i]->bv_val[j] ) ) { in print_search_entry() 1155 lber_bprint( vals[i]->bv_val, in print_search_entry() 1161 vals[i]->bv_len, vals[i]->bv_val ); in print_search_entry()
|
H A D | etest.c | 138 if ( (rc = ber_put_ostring( ber, bv[i]->bv_val, in main()
|
/titanic_44/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_principal2.c | 70 UNSTORE16_INT ((unsigned char *)in->bv_val, (*out)->tl_data_type); in berval2tl_data() 71 memcpy ((*out)->tl_data_contents, in->bv_val + 2, (*out)->tl_data_length); in berval2tl_data() 406 ret[j]->bv_val = code->data; in krb5_encode_krbsecretkey() 438 (*out)->bv_val = (char *) malloc ((*out)->bv_len); in tl_data2berval() 439 if ((*out)->bv_val == NULL) { in tl_data2berval() 445 STORE16_INT((unsigned char *)(*out)->bv_val, in->tl_data_type); in tl_data2berval() 446 memcpy ((*out)->bv_val + 2, in->tl_data_contents, in->tl_data_length); in tl_data2berval() 1169 free (ber_tl_data[j]->bv_val); 1183 if (bersecretkey[l]->bv_val) 1184 free (bersecretkey[l]->bv_val); [all …]
|
/titanic_44/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() 520 dump(stderr, " ", bv[i]->bv_val, bv[i]->bv_len); in dump_bv_list()
|
/titanic_44/usr/src/lib/libkmf/libkmf/common/ |
H A D | certgetsetop.c | 323 exdata.bv_val = (char *)asn1data->Data; in parse_eku_data() 443 exdata.bv_val = (char *)extn.value.tagAndValue->value.Data; in kmf_get_cert_basic_constraint() 643 exdata.bv_val = (char *)extn.BERvalue.Data; in kmf_get_cert_policies() 777 exdata.bv_val = (char *)extn.BERvalue.Data; in kmf_get_cert_auth_info_access() 930 ber_data.bv_val = dp_der_code; in parse_dp_name() 1069 exdata.bv_val = (char *)extn.BERvalue.Data; in kmf_get_cert_crl_dist_pts() 1850 extn.BERvalue.Data = (uchar_t *)extdata->bv_val; in set_key_usage_extension() 2142 foundextn->BERvalue.Data = (uchar_t *)extdata->bv_val; in kmf_add_cert_eku() 2151 newextn.BERvalue.Data = (uchar_t *)extdata->bv_val; in kmf_add_cert_eku() 2243 extn.BERvalue.Data = (uchar_t *)extdata->bv_val; in kmf_set_cert_basic_constraint()
|
H A D | generalop.c | 1810 if (kmfber_write(asn1, extdata->bv_val, in encode_krb5() 1846 if (kmfber_write(asn1, extdata->bv_val, in encode_krb5() 1858 derdata->Data = (uchar_t *)extdata->bv_val; in encode_krb5() 1859 extdata->bv_val = NULL; /* clear it so it is not freed later */ in encode_krb5() 1898 derdata->Data = (uchar_t *)extdata->bv_val; in encode_sclogon() 2034 encodedname->Data = (uchar_t *)extdata->bv_val; in encode_altname() 2084 oldextn.bv_val = data; in GetSequenceContents() 2247 foundextn->BERvalue.Data = (uchar_t *)extdata->bv_val; in kmf_set_altname() 2252 subjAltName.BERvalue.Data = (uchar_t *)extdata->bv_val; in kmf_set_altname()
|
/titanic_44/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() 132 v = (uchar_t *)bval->bv_val; in adutils_getsid() 413 if (bval == NULL || bval->bv_val == NULL) in adutils_bv_uint() 418 (void) memcpy(buf, bval->bv_val, bval->bv_len); in adutils_bv_uint() 438 if (bval == NULL || bval->bv_val == NULL) in adutils_bv_str() 443 bval->bv_val); in adutils_bv_str()
|
/titanic_44/usr/src/lib/libkmf/ber_der/inc/ |
H A D | ber_der.h | 87 char *bv_val; member
|