/freebsd/contrib/ldns/ |
H A D | dname.c | 43 for (src_pos = 0; src_pos < ldns_rdf_size(dname); src_pos += len + 1) { in ldns_dname_last_label_is_root_label() 46 assert(src_pos == ldns_rdf_size(dname)); in ldns_dname_last_label_is_root_label() 67 left_size = ldns_rdf_size(rd1); in ldns_dname_cat_clone() 73 new_size = left_size + ldns_rdf_size(rd2); in ldns_dname_cat_clone() 81 memcpy(buf + left_size, ldns_rdf_data(rd2), ldns_rdf_size(rd2)); in ldns_dname_cat_clone() 104 left_size = ldns_rdf_size(rd1); in ldns_dname_cat() 109 size = left_size + ldns_rdf_size(rd2); in ldns_dname_cat() 117 ldns_rdf_size(rd2)); in ldns_dname_cat() 134 rd_size = ldns_rdf_size(dname); in ldns_dname_reverse() 173 data_size = ldns_rdf_size(d); in ldns_dname_clone_from() [all …]
|
H A D | host2str.c | 346 if (ldns_rdf_size(dname) > LDNS_MAX_DOMAINLEN) { in ldns_rdf2buffer_str_dname() 352 if (1 == ldns_rdf_size(dname)) { in ldns_rdf2buffer_str_dname() 355 while ((len > 0) && src_pos < ldns_rdf_size(dname)) { in ldns_rdf2buffer_str_dname() 376 if (src_pos < ldns_rdf_size(dname)) { in ldns_rdf2buffer_str_dname() 470 if(ldns_rdf_size(rdf) < 1) { in ldns_rdf2buffer_str_str() 473 if((int)ldns_rdf_size(rdf) < (int)ldns_rdf_data(rdf)[0] + 1) { in ldns_rdf2buffer_str_str() 489 if (ldns_rdf_size(rdf) == 0) { in ldns_rdf2buffer_str_b64() 493 size = ldns_b64_ntop_calculate_size(ldns_rdf_size(rdf)); in ldns_rdf2buffer_str_b64() 498 if (ldns_b64_ntop(ldns_rdf_data(rdf), ldns_rdf_size(rdf), b64, size)) { in ldns_rdf2buffer_str_b64() 510 if(ldns_rdf_size(rdf) == 0) in ldns_rdf2buffer_str_b32_ext() [all …]
|
H A D | host2wire.c | 38 if (ldns_buffer_reserve(buffer, ldns_rdf_size(name))) in ldns_dname2buffer_wire_compress() 40 ldns_buffer_write(buffer, ldns_rdf_data(name), ldns_rdf_size(name)); in ldns_dname2buffer_wire_compress() 95 size = ldns_rdf_size(label) - 1; /* Don't want the final zero */ in ldns_dname2buffer_wire_compress() 123 if (ldns_buffer_reserve(buffer, ldns_rdf_size(rdf))) { in ldns_rdf2buffer_wire_compress() 124 ldns_buffer_write(buffer, ldns_rdf_data(rdf), ldns_rdf_size(rdf)); in ldns_rdf2buffer_wire_compress() 136 if (ldns_buffer_reserve(buffer, ldns_rdf_size(rdf))) { in ldns_rdf2buffer_wire_canonical() 138 for (i = 0; i < ldns_rdf_size(rdf); i++) { in ldns_rdf2buffer_wire_canonical() 145 if (ldns_buffer_reserve(buffer, ldns_rdf_size(rdf))) { in ldns_rdf2buffer_wire_canonical() 148 ldns_rdf_size(rdf)); in ldns_rdf2buffer_wire_canonical()
|
H A D | rdata.c | 24 ldns_rdf_size(const ldns_rdf *rd) in ldns_rdf_size() function 75 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_BYTE) { in ldns_rdf2native_int8() 89 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_WORD) { in ldns_rdf2native_int16() 103 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_DOUBLEWORD) { in ldns_rdf2native_int32() 117 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_DOUBLEWORD || in ldns_rdf2native_time_t() 226 ldns_rdf_size(rd), ldns_rdf_data(rd))); in ldns_rdf_clone() 548 } else if ((rdf_size = ldns_rdf_size(rdf)) < 6) { in ldns_rdf_hip_get_alg_hit_pk() 669 i1 = ldns_rdf_size(rd1); in ldns_rdf_compare() 670 i2 = ldns_rdf_size(rd2); in ldns_rdf_compare()
|
H A D | dnssec.c | 1041 hashed_owner_str_len = salt_length + ldns_rdf_size(cann); in ldns_nsec3_hash_name() 1047 memcpy(hashed_owner_str, ldns_rdf_data(cann), ldns_rdf_size(cann)); in ldns_nsec3_hash_name() 1048 memcpy(hashed_owner_str + ldns_rdf_size(cann), salt, salt_length); in ldns_nsec3_hash_name() 1266 && ldns_rdf_size(ldns_rr_rdf(nsec3_rr, 0)) > 0) { in ldns_nsec3_algorithm() 1279 && ldns_rdf_size(ldns_rr_rdf(nsec3_rr, 1)) > 0) { in ldns_nsec3_flags() 1298 && ldns_rdf_size(ldns_rr_rdf(nsec3_rr, 2)) > 0) { in ldns_nsec3_iterations() 1321 if (salt_rdf && ldns_rdf_size(salt_rdf) > 0) { in ldns_nsec3_salt_length() 1335 if (salt_rdf && ldns_rdf_size(salt_rdf) > 0) { in ldns_nsec3_salt_data() 1337 if((size_t)salt_length+1 > ldns_rdf_size(salt_rdf)) in ldns_nsec3_salt_data() 1412 dend = ldns_rdf_data(bitmap) + ldns_rdf_size(bitmap); in ldns_nsec_bitmap_covers_type() [all …]
|
H A D | dane.c | 119 if (s + ldns_rdf_size(name) > LDNS_MAX_DOMAINLEN) { in ldns_dane_create_tlsa_owner() 122 memcpy(buf + s, ldns_rdf_data(name), ldns_rdf_size(name)); in ldns_dane_create_tlsa_owner() 124 s + ldns_rdf_size(name), buf); in ldns_dane_create_tlsa_owner() 717 ldns_rdf_data(data), ldns_rdf_size(data)) <= 0) in ldns_dane_verify_rr() 930 ldns_rdf_size(data)) <= 0) { in ldns_dane_verify()
|
H A D | tsig.c | 352 if( ldns_rdf_size(pkt_mac_rdf) != ldns_rdf_size(my_mac_rdf)) { in ldns_pkt_tsig_verify_next() 364 ldns_rdf_size(my_mac_rdf)) == 0) { in ldns_pkt_tsig_verify_next()
|
H A D | str2host.c | 1383 ipseckey_len = 3 + (int)ldns_rdf_size(gateway_rdf) + (int)ldns_rdf_size(publickey_rdf); in ldns_str2rdf_ipseckey() 1385 ipseckey_len = 3 + (int)ldns_rdf_size(publickey_rdf); in ldns_str2rdf_ipseckey() 1406 ldns_rdf_data(gateway_rdf), ldns_rdf_size(gateway_rdf)); in ldns_str2rdf_ipseckey() 1407 memcpy(data + 3 + ldns_rdf_size(gateway_rdf), in ldns_str2rdf_ipseckey() 1408 ldns_rdf_data(publickey_rdf), ldns_rdf_size(publickey_rdf)); in ldns_str2rdf_ipseckey() 1411 ldns_rdf_data(publickey_rdf), ldns_rdf_size(publickey_rdf)); in ldns_str2rdf_ipseckey() 1776 amtrelay_len = 2 + (int)ldns_rdf_size(relay_rdf); in ldns_str2rdf_amtrelay() 1796 ldns_rdf_data(relay_rdf), ldns_rdf_size(relay_rdf)); in ldns_str2rdf_amtrelay()
|
H A D | rr_functions.c | 351 ldns_rdf_size(ldns_rr_dnskey_key(key)), in ldns_rr_dnskey_key_size()
|
H A D | keys.c | 223 pkey = d2i_PrivateKey(gost_id, NULL, &pp, (int)ldns_rdf_size(b64rdf)); in ldns_key_new_frm_fp_gost_l() 282 bn = BN_bin2bn(pp, (int)ldns_rdf_size(b64rdf), NULL); in ldns_key_new_frm_fp_ecdsa_l() 363 (int)ldns_rdf_size(b64rdf)); in ldns_key_new_frm_fp_ed25519_l() 410 (int)ldns_rdf_size(b64rdf)); in ldns_key_new_frm_fp_ed448_l()
|
H A D | net.c | 85 memcpy(&(data_in->sin_addr), ldns_rdf_data(rd), ldns_rdf_size(rd)); in ldns_rdf2native_sockaddr_storage_port() 94 memcpy(&data_in6->sin6_addr, ldns_rdf_data(rd), ldns_rdf_size(rd)); in ldns_rdf2native_sockaddr_storage_port()
|
H A D | rr.c | 583 if (r && ldns_rdf_size(r) > 1 && in ldns_rr_new_frm_str_internal() 1589 offset = ldns_rdf_size(ldns_rr_owner(rr1)) + 4 + 2 + 2 + 2; in ldns_rr_compare_no_rdata() 1773 rrsize += ldns_rdf_size(ldns_rr_rdf(r, i)); in ldns_rr_uncompressed_size() 1776 rrsize += ldns_rdf_size(ldns_rr_owner(r)); in ldns_rr_uncompressed_size()
|
H A D | dnssec_zone.c | 1861 == ldns_rdf_size(ldns_rr_rdf(rrs->rr, 3)) 1871 == ldns_rdf_size(ldns_rr_rdf(rrs->rr, 3))
|
H A D | dnssec_verify.c | 1212 ldns_rdf_size(parent_domain) > 0) { in ldns_fetch_valid_domain_keys_time() 1520 rr_name_is_root = ldns_rdf_size(rr_name) == 1 in ldns_dnssec_verify_denial()
|
H A D | packet.c | 773 max = ldns_rdf_size(edns_data); in pkt_edns_data2edns_option_list()
|
H A D | dnssec_sign.c | 917 if (ldns_rdf_size(zone->soa->name) > 222) {
|
H A D | Changelog | 443 through ldns_rdf_size usage.
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getrrsetbyname-ldns.c | 135 len = ldns_rdf_size(ldns_rr_owner(ldns_rr_list_rr(rrdata, 0))); in getrrsetbyname() 218 ldns_rdf_size(ldns_rr_rdf(rr, j)); in getrrsetbyname() 229 len = ldns_rdf_size(ldns_rr_rdf(rr, j)); in getrrsetbyname()
|
/freebsd/contrib/ldns/ldns/ |
H A D | rdata.h | 242 size_t ldns_rdf_size(const ldns_rdf *rd);
|
/freebsd/contrib/ldns/drill/ |
H A D | drill.c | 593 if (ldns_rdf_size(src_rdf) == 4) { in main() 596 } else if (ldns_rdf_size(src_rdf) == 16) { in main()
|
/freebsd/contrib/ldns-host/ |
H A D | ldns-host.c | 168 if (ldns_rdf_size(rdf) != 4) return 0; in ldns_rr_soa_get_serial() 737 if (ldns_rdf_size(result) > LDNS_MAX_DOMAINLEN) in safe_dname_cat_clone()
|