/freebsd/contrib/ldns/drill/ |
H A D | drill_util.c | 181 ldns_rdf_print(fp, ldns_rr_rdf(ds, 0)); fprintf(fp, " "); in print_ds_abbr() 182 ldns_rdf_print(fp, ldns_rr_rdf(ds, 1)); fprintf(fp, " "); in print_ds_abbr() 183 ldns_rdf_print(fp, ldns_rr_rdf(ds, 2)); fprintf(fp, " "); in print_ds_abbr() 184 ldns_rdf_print(fp, ldns_rr_rdf(ds, 3)); fprintf(fp, " "); in print_ds_abbr() 200 ldns_rdf_print(fp, ldns_rr_rdf(sig, 0)); fprintf(fp, " "); in print_rrsig_abbr() 202 ldns_rdf_print(fp, ldns_rr_rdf(sig, 1)); fprintf(fp, " "); in print_rrsig_abbr() 204 ldns_rdf_print(fp, ldns_rr_rdf(sig, 2)); fprintf(fp, " (\n\t\t\t"); in print_rrsig_abbr() 206 ldns_rdf_print(fp, ldns_rr_rdf(sig, 4)); fprintf(fp, " "); in print_rrsig_abbr() 208 ldns_rdf_print(fp, ldns_rr_rdf(sig, 5)); fprintf(fp, " "); in print_rrsig_abbr() 210 ldns_rdf_print(fp, ldns_rr_rdf(sig, 6)); fprintf(fp, " "); in print_rrsig_abbr() [all …]
|
H A D | chasetrace.c | 95 referrals, ldns_rr_rdf(nss_rrs->rr, 0), LDNS_RR_TYPE_A))) in set_nss_for_name() 98 res, ldns_rr_rdf(as_rrs->rr, 0)); in set_nss_for_name() 101 referrals, ldns_rr_rdf(nss_rrs->rr, 0), LDNS_RR_TYPE_AAAA))) in set_nss_for_name() 104 res, ldns_rr_rdf(as_rrs->rr, 0)); in set_nss_for_name() 115 local_res, ldns_rr_rdf(nss_rrs->rr, 0), c, 0); in set_nss_for_name() 279 name = ldns_rr_rdf(ldns_rr_list_rr(cname, 0), 0); in do_trace()
|
H A D | dnssec.c | 57 ldns_rr_rdf(ldns_rr_list_rr(hostnames, 0), 0)); in drill_pkt_print() 88 ldns_rr_rdf(ldns_rr_list_rr(hostnames, 0), 0)); in drill_pkt_print_footer()
|
H A D | securetrace.c | 285 pop = ldns_rr_rdf(ns_rr, 0); in do_secure_trace() 387 ldns_dname_is_subdomain(ldns_rr_rdf(nsecrr, 0), labels[i])) { in do_secure_trace()
|
/freebsd/contrib/ldns/ |
H A D | update.c | 117 || ldns_rr_rdf(soa_rr, 0) == NULL) in ldns_update_soa_mname() 120 *mname = ldns_rdf_clone(ldns_rr_rdf(soa_rr, 0)); in ldns_update_soa_mname() 167 || ldns_rr_rdf(soa_rr, 0) == NULL) in ldns_update_soa_zone_mname() 170 soa_mname = ldns_rdf_clone(ldns_rr_rdf(soa_rr, 0)); in ldns_update_soa_zone_mname() 202 ipaddr = ldns_rr_rdf(rr, 0); in ldns_update_soa_zone_mname() 257 || ldns_rr_rdf(soa_rr, 0) == NULL) in ldns_update_soa_zone_mname() 260 soa_mname = ldns_rdf_clone(ldns_rr_rdf(soa_rr, 0)); in ldns_update_soa_zone_mname()
|
H A D | dane.c | 582 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 0)) <= 3 && in ldns_dane_filter_unusable_records() 583 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 1)) <= 1 && in ldns_dane_filter_unusable_records() 584 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 2)) <= 2) { in ldns_dane_filter_unusable_records() 678 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 0)) > 3 || in ldns_dane_verify_rr() 679 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 1)) > 1 || in ldns_dane_verify_rr() 680 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 2)) > 2 ) { in ldns_dane_verify_rr() 686 usage = ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 0)); in ldns_dane_verify_rr() 687 selector = ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 1)); in ldns_dane_verify_rr() 688 mtype = ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 2)); in ldns_dane_verify_rr() 689 data = ldns_rr_rdf(tlsa_rr, 3) ; in ldns_dane_verify_rr() [all …]
|
H A D | tsig.c | 319 algorithm_rdf = ldns_rr_rdf(orig_tsig, 0); in ldns_pkt_tsig_verify_next() 320 time_signed_rdf = ldns_rr_rdf(orig_tsig, 1); in ldns_pkt_tsig_verify_next() 321 fudge_rdf = ldns_rr_rdf(orig_tsig, 2); in ldns_pkt_tsig_verify_next() 322 pkt_mac_rdf = ldns_rr_rdf(orig_tsig, 3); in ldns_pkt_tsig_verify_next() 323 orig_id_rdf = ldns_rr_rdf(orig_tsig, 4); in ldns_pkt_tsig_verify_next() 324 error_rdf = ldns_rr_rdf(orig_tsig, 5); in ldns_pkt_tsig_verify_next() 325 other_data_rdf = ldns_rr_rdf(orig_tsig, 6); in ldns_pkt_tsig_verify_next()
|
H A D | dnssec.c | 91 return ldns_rr_rdf(nsec, 1); in ldns_nsec_get_bitmap() 93 return ldns_rr_rdf(nsec, 5); in ldns_nsec_get_bitmap() 599 if ((tmp = ldns_rr_rdf(key, 2)) == NULL) { in ldns_key_rr2ds() 1265 && (ldns_rr_rdf(nsec3_rr, 0) != NULL) in ldns_nsec3_algorithm() 1266 && ldns_rdf_size(ldns_rr_rdf(nsec3_rr, 0)) > 0) { in ldns_nsec3_algorithm() 1267 return ldns_rdf2native_int8(ldns_rr_rdf(nsec3_rr, 0)); in ldns_nsec3_algorithm() 1278 && (ldns_rr_rdf(nsec3_rr, 1) != NULL) in ldns_nsec3_flags() 1279 && ldns_rdf_size(ldns_rr_rdf(nsec3_rr, 1)) > 0) { in ldns_nsec3_flags() 1280 return ldns_rdf2native_int8(ldns_rr_rdf(nsec3_rr, 1)); in ldns_nsec3_flags() 1297 && (ldns_rr_rdf(nsec3_rr, 2) != NULL) in ldns_nsec3_iterations() [all …]
|
H A D | dnssec_verify.c | 405 key_name = ldns_rr_rdf(ldns_rr_list_rr(signatures, 0), 7); in ldns_dnssec_build_data_chain() 540 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 2)); in ldns_dnssec_trust_tree_print_sm_fmt() 542 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 0)); in ldns_dnssec_trust_tree_print_sm_fmt() 545 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 0)); in ldns_dnssec_trust_tree_print_sm_fmt() 547 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 2)); in ldns_dnssec_trust_tree_print_sm_fmt() 551 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 0)); in ldns_dnssec_trust_tree_print_sm_fmt() 553 ldns_rdf_print(out, ldns_rr_rdf(tree->rr, 1)); in ldns_dnssec_trust_tree_print_sm_fmt() 2121 orig_ttl = ldns_rdf2native_int32( ldns_rr_rdf(rrsig, 3)); in ldns_rrset_use_signature_ttl() 2122 label_count = ldns_rdf2native_int8(ldns_rr_rdf(rrsig, 2)); in ldns_rrset_use_signature_ttl() 2164 if (ldns_rr_rdf(rrsig, 1) == NULL) { in ldns_rrsig2rawsig_buffer() [all …]
|
H A D | dnssec_zone.c | 712 && ldns_rdf_get_type(ldns_rr_rdf(cur_rr, 3)) == LDNS_RDF_TYPE_INT32) 724 ldns_rr_rdf(rr, 3))); 1645 if (!(rdf = ldns_rdf_clone(ldns_rr_rdf(soa, 2)))) 1711 ldns_sha384_final( ldns_rdf_data(ldns_rr_rdf(sha384,3)) 1714 ldns_sha512_final( ldns_rdf_data(ldns_rr_rdf(sha512,3)) 1822 if (ldns_rdf2native_int32(ldns_rr_rdf(soa_rr, 2)) 1823 != ldns_rdf2native_int32(ldns_rr_rdf(rrs->rr, 0))) 1828 ldns_rdf2native_int8(ldns_rr_rdf(rrs->rr, 1)), 1829 ldns_rdf2native_int8(ldns_rr_rdf(rrs->rr, 2))); 1850 if (ldns_rdf2native_int32(ldns_rr_rdf(soa_rr, 2)) [all …]
|
H A D | host2wire.c | 228 buffer, ldns_rr_rdf(rr, i)); in ldns_rr2buffer_wire_canonical() 231 buffer, ldns_rr_rdf(rr, i)); in ldns_rr2buffer_wire_canonical() 276 ldns_rr_rdf(rr, i), compression_data); in ldns_rr2buffer_wire_compress() 281 buffer, ldns_rr_rdf(rr, i)); in ldns_rr2buffer_wire_compress() 307 ldns_rr_rdf(rr, i)); in ldns_rrsig2buffer_wire() 320 (void) ldns_rdf2buffer_wire(buffer, ldns_rr_rdf(rr,i)); in ldns_rr_rdata2buffer_wire()
|
H A D | rr_functions.c | 36 return ldns_rr_rdf(rr, pos); in ldns_rr_function() 68 return ldns_rr_rdf(r, 0); in ldns_rr_a_address() 408 || !ldns_rr_rdf(soa, 2)) { in ldns_rr_soa_increment_func_data() 416 ldns_rr_rdf(soa, 2)) in ldns_rr_soa_increment_func_data()
|
H A D | higher.c | 315 ldns_rr_rdf(nsec, 1), t); in ldns_nsec_type_check() 321 ldns_rr_rdf(nsec, 5), t); in ldns_nsec_type_check() 337 rd = ldns_rr_rdf(r, rdf); in ldns_print_rr_rdf()
|
H A D | zone.c | 260 && ldns_rdf_get_type(ldns_rr_rdf(rr, 3)) == LDNS_RDF_TYPE_INT32) in ldns_zone_new_frm_fp_l() 272 ldns_rr_rdf(rr, 3))); in ldns_zone_new_frm_fp_l()
|
H A D | host2str.c | 1787 total_rdfsize += ldns_rdf_size(ldns_rr_rdf(rr, i)); in ldns_rr2buffer_str_rfc3597() 1795 for (j = 0; j < ldns_rdf_size(ldns_rr_rdf(rr, i)); j++) { in ldns_rr2buffer_str_rfc3597() 1797 ldns_rdf_data(ldns_rr_rdf(rr, i))[j]); in ldns_rr2buffer_str_rfc3597() 1865 ldns_rdf_get_type(ldns_rr_rdf(rr, 4)) == in ldns_rr2buffer_str_fmt() 1868 ldns_rdf_get_type(ldns_rr_rdf(rr, 5)) == in ldns_rr2buffer_str_fmt() 1871 ldns_rdf_get_type(ldns_rr_rdf(rr, 8)) == in ldns_rr2buffer_str_fmt() 1879 ldns_rdf_get_type(ldns_rr_rdf(rr, 2)) == in ldns_rr2buffer_str_fmt() 1883 ldns_rdf_data(ldns_rr_rdf(rr, 2)))); in ldns_rr2buffer_str_fmt() 1887 fmt, ldns_rr_rdf(rr, i)); in ldns_rr2buffer_str_fmt() 1906 flags = ldns_rdf2native_int16(ldns_rr_rdf(rr, 0)); in ldns_rr2buffer_str_fmt() [all …]
|
H A D | wire2host.c | 469 if (ldns_rr_rdf(rr, 0)) { in ldns_wire2pkt() 471 ldns_pkt_set_edns_data(packet, ldns_rdf_clone(ldns_rr_rdf(rr, 0))); in ldns_wire2pkt()
|
H A D | rr.c | 90 ldns_rdf_deep_free(ldns_rr_rdf(rr, i)); in ldns_rr_free() 910 ldns_rr_rdf(const ldns_rr *rr, size_t nr) in ldns_rr_rdf() function 1108 list_rdf = ldns_rr_rdf( in ldns_rr_list_subtype_by_rdf() 1423 if (ldns_rr_rdf(rr,i)) { in ldns_rr_clone() 1424 ldns_rr_push_rdf(new_rr, ldns_rdf_clone(ldns_rr_rdf(rr, i))); in ldns_rr_clone() 1697 if (ldns_rr_rdf(ds, 2) == NULL) { in ldns_rr_compare_ds_dnskey() 1700 algo = ldns_rdf2native_int8(ldns_rr_rdf(ds, 2)); in ldns_rr_compare_ds_dnskey() 1773 rrsize += ldns_rdf_size(ldns_rr_rdf(r, i)); in ldns_rr_uncompressed_size() 1824 ldns_dname2canonical(ldns_rr_rdf(rr, i)); in ldns_rr2canonical()
|
H A D | dnssec_sign.c | 807 ldns_rdf *min_rdf = ldns_rr_rdf(soa_rr, 6); 908 ldns_rdf *min_rdf = ldns_rr_rdf(soa_rr, 6); 1520 ldns_set_bit(ldns_rdf_data(ldns_rr_rdf(nsec3param, 1)), 0, 0);
|
H A D | net.c | 47 tsig_mac = ldns_rr_rdf(ldns_pkt_tsig(query_pkt), 3); in ldns_send()
|
H A D | resolver.c | 342 address = ldns_rr_rdf(rr, 0); /* extract the ip number */ in ldns_resolver_push_nameserver_rr()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getrrsetbyname-ldns.c | 218 ldns_rdf_size(ldns_rr_rdf(rr, j)); in getrrsetbyname() 229 len = ldns_rdf_size(ldns_rr_rdf(rr, j)); in getrrsetbyname() 231 ldns_rdf_data(ldns_rr_rdf(rr, j)), len); in getrrsetbyname()
|
/freebsd/contrib/ldns-host/ |
H A D | ldns-host.c | 148 if (ldns_rr_rdf(rr, 1) == NULL || ldns_rr_rdf(rr, 4) == NULL || in ldns_pkt_push_rr_soa() 149 ldns_rr_rdf(rr, 5) == NULL || ldns_rr_rdf(rr, 6) == NULL || in ldns_pkt_push_rr_soa() 166 rdf = ldns_rr_rdf(rr, 2); in ldns_rr_soa_get_serial() 468 print_rdf(ldns_rr_rdf(rr, i)); in print_rr_verbose() 537 print_rdf(ldns_rr_rdf(rr, i)); in print_rr_short()
|
/freebsd/contrib/ldns/ldns/ |
H A D | rr.h | 557 ldns_rdf* ldns_rr_rdf(const ldns_rr *rr, size_t nr);
|