Home
last modified time | relevance | path

Searched refs:bv_val (Results 1 – 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Ddecode.c306 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 Dclasn1.c211 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 Dio.c321 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()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcram_md5.c89 LDAPDebug (LDAP_DEBUG_TRACE, "SASL challenge: %s\n", challenge->bv_val, 0, 0); in ldap_sasl_cram_md5_bind_s()
91 hmac_md5((unsigned char *)challenge->bv_val, challenge->bv_len, in ldap_sasl_cram_md5_bind_s()
92 (unsigned char *)cred->bv_val, cred->bv_len, digest); in ldap_sasl_cram_md5_bind_s()
102 if ((resp.bv_val = (char *)malloc(resp.bv_len+1)) == NULL) { in ldap_sasl_cram_md5_bind_s()
106 sprintf(resp.bv_val, "%s %s", dn, theHDigest); in ldap_sasl_cram_md5_bind_s()
109 LDAPDebug (LDAP_DEBUG_TRACE, "SASL response: %s\n", resp.bv_val, 0, 0); in ldap_sasl_cram_md5_bind_s()
112 free(resp.bv_val); in ldap_sasl_cram_md5_bind_s()
H A Dcontrol.c90 if ( c->ldctl_value.bv_val != NULL ) { in nsldapi_put_controls()
91 if ( ber_printf( ber, "o", c->ldctl_value.bv_val, in nsldapi_put_controls()
233 (newctrl->ldctl_value).bv_val = NULL; in nsldapi_get_controls()
265 if ( ctrl->ldctl_value.bv_val != NULL ) { in ldap_control_free()
266 NSLDAPI_FREE( ctrl->ldctl_value.bv_val ); in ldap_control_free()
420 if ( ctrl_src->ldctl_value.bv_val == NULL || len <= 0 ) { in ldap_control_copy_contents()
422 ctrl_dst->ldctl_value.bv_val = NULL; in ldap_control_copy_contents()
425 if (( ctrl_dst->ldctl_value.bv_val = NSLDAPI_MALLOC( len )) in ldap_control_copy_contents()
430 SAFEMEMCPY( ctrl_dst->ldctl_value.bv_val, in ldap_control_copy_contents()
431 ctrl_src->ldctl_value.bv_val, len ); in ldap_control_copy_contents()
[all …]
H A Dspagectrl.c35 (cookie && cookie->bv_val) ? cookie->bv_val : "", in ldap_create_page_control()
36 (cookie && cookie->bv_val) ? cookie->bv_len : 0) in ldap_create_page_control()
H A Dcompare.c55 bv.bv_val = (char *)value; in ldap_compare()
125 attr, bvalue->bv_val, (int)bvalue->bv_len /* XXX lossy cast */ ) in ldap_compare_ext()
153 bv.bv_val = (char *)value; in ldap_compare_s()
H A Ddigest_md5.c674 cred->bv_val == NULL) in ldap_x_sasl_digest_md5_bind_s()
687 challenge->bv_val, 0, 0); in ldap_x_sasl_digest_md5_bind_s()
688 errnum = ldap_digest_md5_encode(challenge->bv_val, in ldap_x_sasl_digest_md5_bind_s()
689 user_name, cred->bv_val, &digest); in ldap_x_sasl_digest_md5_bind_s()
693 resp.bv_val = digest; in ldap_x_sasl_digest_md5_bind_s()
751 cred->bv_val == NULL || result == NULL || msgidp == NULL) in sasl_digest_md5_bind_2()
767 err = ldap_digest_md5_encode(challenge->bv_val, in sasl_digest_md5_bind_2()
768 user_name, cred->bv_val, &digest); in sasl_digest_md5_bind_2()
772 resp.bv_val = digest; in sasl_digest_md5_bind_2()
H A Dsaslbind.c119 tmpcred.bv_val = ""; in ldap_sasl_bind()
124 ldapversion, dn, LDAP_AUTH_SIMPLE, cred->bv_val, in ldap_sasl_bind()
135 mechanism, cred->bv_val, in ldap_sasl_bind()
H A Dextendop.c73 exdata == NULL || exdata->bv_val == NULL ) { in ldap_extended_operation()
104 exdata->bv_val, (int)exdata->bv_len /* XXX lossy cast */ ) == -1 ) { in ldap_extended_operation()
H A Dsasl.c698 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 Dfreevalues.c54 NSLDAPI_FREE( vals[i]->bv_val ); in ldap_value_free_len()
H A Dcache.c151 bv.bv_val = buf; in nsldapi_add_result_to_cache()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c310 if ( ((*bv)->bv_val = (char *)NSLBERI_MALLOC( (size_t)len + 1 )) in ber_get_stringal()
318 if ( ber_read( ber, (*bv)->bv_val, len ) != (ber_slen_t) len ) in ber_get_stringal()
320 ((*bv)->bv_val)[len] = '\0'; in ber_get_stringal()
327 if ( (*(ber->ber_decode_translate_proc))( &((*bv)->bv_val), in ber_get_stringal()
329 NSLBERI_FREE( (*bv)->bv_val ); in ber_get_stringal()
487 rc = ber_get_stringa( ber, &bval->bv_val ); in ber_scanf()
631 if (bval->bv_val) NSLBERI_FREE(bval->bv_val); in ber_scanf()
694 if ( bv->bv_val != NULL ) { in ber_bvfree()
695 NSLBERI_FREE( bv->bv_val ); in ber_bvfree()
725 if ( bv->bv_val == NULL ) { in ber_bvdup()
[all …]
H A Dio.c1246 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()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c305 key_octs->bv_val, key_octs->bv_len) == -1) {
338 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len);
491 key_octs->bv_val, key_octs->bv_len) == -1) {
524 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len);
662 key_octs->bv_val, key_octs->bv_len) == -1) {
695 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len);
851 key_octs->bv_val, key_octs->bv_len) == -1) {
884 (void) memcpy(buf, p8obj_octs->bv_val, *buf_len);
953 p8obj_octs.bv_val = (char *)buf;
961 key_octs.bv_val = NULL;
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dfileurl.c312 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value()
316 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value()
317 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 );
404 free( bvp->bv_val );
408 bvp->bv_val[ bvp->bv_len ] = '\0';
H A Dldaptest.c117 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 Detest.c138 if ( (rc = ber_put_ostring( ber, bv[i]->bv_val, in main()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_principal2.c68 UNSTORE16_INT ((unsigned char *)in->bv_val, (*out)->tl_data_type); in berval2tl_data()
69 memcpy ((*out)->tl_data_contents, in->bv_val + 2, (*out)->tl_data_length); in berval2tl_data()
404 ret[j]->bv_val = code->data; in krb5_encode_krbsecretkey()
436 (*out)->bv_val = (char *) malloc ((*out)->bv_len); in tl_data2berval()
437 if ((*out)->bv_val == NULL) { in tl_data2berval()
443 STORE16_INT((unsigned char *)(*out)->bv_val, in->tl_data_type); in tl_data2berval()
444 memcpy ((*out)->bv_val + 2, in->tl_data_contents, in->tl_data_length); in tl_data2berval()
1167 free (ber_tl_data[j]->bv_val);
1181 if (bersecretkey[l]->bv_val)
1182 free (bersecretkey[l]->bv_val);
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddirectory_provider_ad.c438 bv[0]->bv_len, bv[0]->bv_val, in directory_provider_ad_cb1()
496 uu_memdup(bv[i]->bv_val, bv[i]->bv_len); in bv_list_dav()
522 dump(stderr, " ", bv[i]->bv_val, bv[i]->bv_len); in dump_bv_list()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dcertgetsetop.c323 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 Dgeneralop.c1810 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()
/illumos-gate/usr/src/lib/libadutils/common/
H A Dadutils.c131 if (bval->bv_len > 8 && bval->bv_val[0] == 0x01 && in adutils_getsid()
132 bval->bv_len == 1 + 1 + 6 + bval->bv_val[1] * 4) { in adutils_getsid()
133 v = (uchar_t *)bval->bv_val; in adutils_getsid()
414 if (bval == NULL || bval->bv_val == NULL) in adutils_bv_uint()
419 (void) memcpy(buf, bval->bv_val, bval->bv_len); in adutils_bv_uint()
439 if (bval == NULL || bval->bv_val == NULL) in adutils_bv_str()
444 bval->bv_val); in adutils_bv_str()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_op.c589 ber_cred.bv_val = cred; in ldapBind()
596 ber_cred.bv_val = cred; in ldapBind()
1431 (spCookie->bv_val = sdup(myself, T, "")) != 0) { in ldapSearch()
1654 val[i]->bv_val, in ldapSearch()
1736 spCookie->bv_val == 0 || in ldapSearch()
1837 sfree((*b)->bv_val); in freeLdapModEntry()
1979 mods[nm]->mod_bvalues[j]->bv_val = am(myself, in search2LdapMod()
1981 if (mods[nm]->mod_bvalues[j]->bv_val == 0) { in search2LdapMod()
1987 memcpy(mods[nm]->mod_bvalues[j]->bv_val, in search2LdapMod()

12