-
Notifications
You must be signed in to change notification settings - Fork 4
/
query-getdns.h
55 lines (39 loc) · 1.01 KB
/
query-getdns.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
#ifndef __QUERY_GETDNS_H__
#define __QUERY_GETDNS_H__
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include "tlsardata.h"
/*
* Flags: dns bogus or indeterminate; authenticate responses
*/
extern int dns_bogus_or_indeterminate;
extern int address_authenticated;
extern int v4_authenticated;
extern int v6_authenticated;
extern int mx_authenticated;
extern int srv_authenticated;
extern int tlsa_authenticated;
/*
* qinfo: structure to hold query information to be passed to
* callback functions.
*/
typedef struct qinfo {
const char *qname;
uint16_t qtype;
uint16_t port;
} qinfo;
/*
* addresses: (head of) linked list of addrinfo structures
*/
extern size_t address_count;
extern struct addrinfo *addresses;
struct addrinfo *
insert_addrinfo(struct addrinfo *current, struct addrinfo *new);
/*
* tlsa_count: count of TLSA records.
*/
extern size_t tlsa_count;
int do_dns_queries(const char *hostname, uint16_t port);
extern tlsa_rdata *tlsa_rdata_list;
#endif /* __QUERY_GETDNS_H__ */