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.c329 (*bv)->bv_val = NULL; in ber_get_bigint()
350 char *p = (*bv)->bv_val; in ber_get_bigint()
391 ((*bv)->bv_val)[len] = '\0'; in kmfber_get_stringal()
484 if (bv->bv_val != NULL) { in kmfber_bvfree()
485 free(bv->bv_val); in kmfber_bvfree()
561 rc = kmfber_get_stringa(ber, &bval->bv_val); in kmfber_scanf()
712 if (bval->bv_val) free(bval->bv_val); in kmfber_scanf()
782 if (bv->bv_val == NULL) { in kmfber_bvdup()
783 new->bv_val = NULL; in kmfber_bvdup()
790 (void) memmove(new->bv_val, bv->bv_val, (size_t)bv->bv_len); in kmfber_bvdup()
[all …]
H A Dclasn1.c488 (void) memcpy(dst->bv_val + cnt, src->bv_val, in convert_signed_to_fixed()
493 (void) memcpy(dst->bv_val, src->bv_val, in convert_signed_to_fixed()
502 p = src->bv_val; in convert_signed_to_fixed()
582 if (R && R->bv_val) in DerDecodeDSASignature()
583 free(R->bv_val); in DerDecodeDSASignature()
584 if (S && S->bv_val) in DerDecodeDSASignature()
585 free(S->bv_val); in DerDecodeDSASignature()
1374 free(bvserno->bv_val); in decode_tbscert_data()
2186 if (extnvalue->bv_val) in encode_csr_extensions()
2187 free(extnvalue->bv_val); in encode_csr_extensions()
[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 Dfreevalues.c54 NSLDAPI_FREE( vals[i]->bv_val ); in ldap_value_free_len()
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 Dcache.c151 bv.bv_val = buf; in nsldapi_add_result_to_cache()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c320 ((*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()
726 new->bv_val = NULL; in ber_bvdup()
733 SAFEMEMCPY( new->bv_val, bv->bv_val, (size_t) bv->bv_len ); 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.c961 key_octs.bv_val = NULL;
1237 if (key_octs.bv_val != NULL)
1238 free(key_octs.bv_val);
1267 key_octs.bv_val = NULL;
1441 if (key_octs.bv_val != NULL)
1442 free(key_octs.bv_val);
1471 key_octs.bv_val = NULL;
1621 if (key_octs.bv_val != NULL)
1622 free(key_octs.bv_val);
1651 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