Home
last modified time | relevance | path

Searched refs:ldns_rr_rdf (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/ldns/drill/
H A Ddrill_util.c181 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 Dchasetrace.c95 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 Ddnssec.c57 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 Dsecuretrace.c285 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 Dupdate.c117 || 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 Ddane.c582 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 Dtsig.c319 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 Ddnssec.c91 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 Ddnssec_verify.c405 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 Ddnssec_zone.c712 && 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 Dhost2wire.c228 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 Drr_functions.c36 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 Dhigher.c315 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 Dzone.c260 && 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 Dhost2str.c1787 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 Dwire2host.c469 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 Drr.c90 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 Ddnssec_sign.c807 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 Dnet.c47 tsig_mac = ldns_rr_rdf(ldns_pkt_tsig(query_pkt), 3); in ldns_send()
H A Dresolver.c342 address = ldns_rr_rdf(rr, 0); /* extract the ip number */ in ldns_resolver_push_nameserver_rr()
/freebsd/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname-ldns.c218 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 Dldns-host.c148 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 Drr.h557 ldns_rdf* ldns_rr_rdf(const ldns_rr *rr, size_t nr);