-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathquery-ldns.h
63 lines (45 loc) · 1.27 KB
/
query-ldns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* query-ldns.h
*
*/
#ifndef __QUERY_LDNS_H__
#define __QUERY_LDNS_H__
#include <ldns/ldns.h>
#include "tlsardata.h"
/*
* Flags: dns bogus or indeterminate; authenticated responses
*/
extern int dns_bogus_or_indeterminate;
extern int v4_authenticated;
extern int v6_authenticated;
extern int mx_authenticated;
extern int srv_authenticated;
extern int tlsa_authenticated;
/*
* addresses: (head of) linked list of addrinfo structures
*/
extern size_t address_count;
struct addrinfo *
insert_addrinfo(struct addrinfo **headp,
struct addrinfo *current, struct addrinfo *new);
/*
* tlsa_count and response_rcode
*/
extern size_t tlsa_count;
extern ldns_pkt_rcode tlsa_response_rcode;
/*
* get_addresses_type() and get_addresses()
*/
ldns_rr_list *get_addresses_type(ldns_resolver *resolver,
ldns_rr_type rrtype,
ldns_rdf *host_rdf);
struct addrinfo *get_addresses(ldns_resolver *resolver,
const char *hostname, uint16_t port);
/*
* get_tlsa(): get TLSA records.
* Populates tlsa_rdata_list linked list with TLSA record rdata.
*/
tlsa_rdata *get_tlsa(ldns_resolver *resolver,
const char *hostname, uint16_t port);
ldns_resolver *get_resolver(char *conffile);
#endif /* __QUERY_LDNS_H__ */