| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#include "EXTERN.h" |
|
2
|
|
|
|
|
|
|
#include "perl.h" |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
/* Define if building universal (internal helper macro) */ |
|
5
|
|
|
|
|
|
|
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
8
|
|
|
|
|
|
|
#define HAVE_ARPA_INET_H 1 |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
/* Whether the C compiler accepts the "format" attribute */ |
|
11
|
|
|
|
|
|
|
#define HAVE_ATTR_FORMAT 1 |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
/* Whether the C compiler accepts the "unused" attribute */ |
|
14
|
|
|
|
|
|
|
#define HAVE_ATTR_UNUSED 1 |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
/* Define to 1 if you have the `b32_ntop' function. */ |
|
17
|
|
|
|
|
|
|
/* #undef HAVE_B32_NTOP */ |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
/* Define to 1 if you have the `b32_pton' function. */ |
|
20
|
|
|
|
|
|
|
/* #undef HAVE_B32_PTON */ |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
/* Define to 1 if you have the `b64_ntop' function. */ |
|
23
|
|
|
|
|
|
|
/* #undef HAVE_B64_NTOP */ |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
/* Define to 1 if you have the `b64_pton' function. */ |
|
26
|
|
|
|
|
|
|
/* #undef HAVE_B64_PTON */ |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
/* Define to 1 if you have the `bzero' function. */ |
|
29
|
|
|
|
|
|
|
#define HAVE_BZERO 1 |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
/* Define to 1 if you have the `calloc' function. */ |
|
32
|
|
|
|
|
|
|
#define HAVE_CALLOC 1 |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
/* Define to 1 if you have the `ctime_r' function. */ |
|
35
|
|
|
|
|
|
|
#define HAVE_CTIME_R 1 |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
/* Is a CAFILE given at configure time */ |
|
38
|
|
|
|
|
|
|
#define HAVE_DANE_CA_FILE 0 |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
/* Is a CAPATH given at configure time */ |
|
41
|
|
|
|
|
|
|
#define HAVE_DANE_CA_PATH 0 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you |
|
44
|
|
|
|
|
|
|
don't. */ |
|
45
|
|
|
|
|
|
|
#define HAVE_DECL_NID_SECP384R1 1 |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 |
|
48
|
|
|
|
|
|
|
if you don't. */ |
|
49
|
|
|
|
|
|
|
#define HAVE_DECL_NID_X9_62_PRIME256V1 1 |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
52
|
|
|
|
|
|
|
#define HAVE_DLFCN_H 1 |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
/* Define to 1 if you have the `endprotoent' function. */ |
|
55
|
|
|
|
|
|
|
#define HAVE_ENDPROTOENT 1 |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
/* Define to 1 if you have the `endservent' function. */ |
|
58
|
|
|
|
|
|
|
#define HAVE_ENDSERVENT 1 |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
/* Define to 1 if you have the `ENGINE_load_cryptodev' function. */ |
|
61
|
|
|
|
|
|
|
#define HAVE_ENGINE_LOAD_CRYPTODEV 1 |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
/* Define to 1 if you have the `EVP_sha256' function. */ |
|
64
|
|
|
|
|
|
|
#define HAVE_EVP_SHA256 1 |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
/* Define to 1 if you have the `fcntl' function. */ |
|
67
|
|
|
|
|
|
|
#define HAVE_FCNTL 1 |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
/* Define to 1 if you have the `fork' function. */ |
|
70
|
|
|
|
|
|
|
#define HAVE_FORK 1 |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
/* Whether getaddrinfo is available */ |
|
73
|
|
|
|
|
|
|
#define HAVE_GETADDRINFO 1 |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
76
|
|
|
|
|
|
|
#define HAVE_GETOPT_H 1 |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
/* Define to 1 if you have the `gmtime_r' function. */ |
|
79
|
|
|
|
|
|
|
#define HAVE_GMTIME_R 1 |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
/* If you have HMAC_CTX_init */ |
|
82
|
|
|
|
|
|
|
#define HAVE_HMAC_CTX_INIT 1 |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
/* Define to 1 if you have the `inet_aton' function. */ |
|
85
|
|
|
|
|
|
|
#define HAVE_INET_ATON 1 |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
/* Define to 1 if you have the `inet_ntop' function. */ |
|
88
|
|
|
|
|
|
|
#define HAVE_INET_NTOP 1 |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
/* Define to 1 if you have the `inet_pton' function. */ |
|
91
|
|
|
|
|
|
|
#define HAVE_INET_PTON 1 |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
/* define if you have inttypes.h */ |
|
94
|
|
|
|
|
|
|
#define HAVE_INTTYPES_H 1 |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
/* if the function 'ioctlsocket' is available */ |
|
97
|
|
|
|
|
|
|
/* #undef HAVE_IOCTLSOCKET */ |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
/* Define to 1 if you have the `isascii' function. */ |
|
100
|
|
|
|
|
|
|
#define HAVE_ISASCII 1 |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
/* Define to 1 if you have the `isblank' function. */ |
|
103
|
|
|
|
|
|
|
#define HAVE_ISBLANK 1 |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
/* Define to 1 if you have the `pcap' library (-lpcap). */ |
|
106
|
|
|
|
|
|
|
/* #undef HAVE_LIBPCAP */ |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
/* Define to 1 if you have the `localtime_r' function. */ |
|
109
|
|
|
|
|
|
|
#define HAVE_LOCALTIME_R 1 |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and |
|
112
|
|
|
|
|
|
|
to 0 otherwise. */ |
|
113
|
|
|
|
|
|
|
#define HAVE_MALLOC 1 |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
/* Define to 1 if you have the `memmove' function. */ |
|
116
|
|
|
|
|
|
|
#define HAVE_MEMMOVE 1 |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
119
|
|
|
|
|
|
|
#define HAVE_MEMORY_H 1 |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
/* Define to 1 if you have the `memset' function. */ |
|
122
|
|
|
|
|
|
|
#define HAVE_MEMSET 1 |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
125
|
|
|
|
|
|
|
#define HAVE_NETDB_H 1 |
|
126
|
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
128
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IF_ETHER_H */ |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
131
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IGMP_H */ |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
134
|
|
|
|
|
|
|
#define HAVE_NETINET_IN_H 1 |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
137
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IN_SYSTM_H */ |
|
138
|
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
140
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IP6_H */ |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
143
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IP_COMPAT_H */ |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
146
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_IP_H */ |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
149
|
|
|
|
|
|
|
/* #undef HAVE_NETINET_UDP_H */ |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
152
|
|
|
|
|
|
|
/* #undef HAVE_NET_ETHERNET_H */ |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
155
|
|
|
|
|
|
|
/* #undef HAVE_NET_IF_H */ |
|
156
|
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
158
|
|
|
|
|
|
|
#define HAVE_OPENSSL_ERR_H 1 |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
161
|
|
|
|
|
|
|
#define HAVE_OPENSSL_RAND_H 1 |
|
162
|
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
164
|
|
|
|
|
|
|
#define HAVE_OPENSSL_SSL_H 1 |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
167
|
|
|
|
|
|
|
/* #undef HAVE_PCAP_H */ |
|
168
|
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
/* Define to 1 if you have the `random' function. */ |
|
170
|
|
|
|
|
|
|
#define HAVE_RANDOM 1 |
|
171
|
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
/* Define to 1 if your system has a GNU libc compatible `realloc' function, |
|
173
|
|
|
|
|
|
|
and to 0 otherwise. */ |
|
174
|
|
|
|
|
|
|
#define HAVE_REALLOC 1 |
|
175
|
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
/* Define to 1 if you have the `sleep' function. */ |
|
177
|
|
|
|
|
|
|
#define HAVE_SLEEP 1 |
|
178
|
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
/* Define to 1 if you have the `snprintf' function. */ |
|
180
|
|
|
|
|
|
|
#define HAVE_SNPRINTF 1 |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
/* Define if you have the SSL libraries installed. */ |
|
183
|
|
|
|
|
|
|
#define HAVE_SSL /**/ |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
186
|
|
|
|
|
|
|
#define HAVE_STDARG_H 1 |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
/* Define to 1 if stdbool.h conforms to C99. */ |
|
189
|
|
|
|
|
|
|
#define HAVE_STDBOOL_H 1 |
|
190
|
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
192
|
|
|
|
|
|
|
#define HAVE_STDINT_H 1 |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
195
|
|
|
|
|
|
|
#define HAVE_STDLIB_H 1 |
|
196
|
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
198
|
|
|
|
|
|
|
#define HAVE_STRINGS_H 1 |
|
199
|
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
201
|
|
|
|
|
|
|
#define HAVE_STRING_H 1 |
|
202
|
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
/* Define to 1 if you have the `strlcpy' function. */ |
|
204
|
|
|
|
|
|
|
#ifdef HAS_STRLCPY |
|
205
|
|
|
|
|
|
|
#define HAVE_STRLCPY 1 |
|
206
|
|
|
|
|
|
|
#else |
|
207
|
|
|
|
|
|
|
#undef HAVE_STRLCPY |
|
208
|
|
|
|
|
|
|
#endif |
|
209
|
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
/* Define to 1 if you have the `strtoul' function. */ |
|
211
|
|
|
|
|
|
|
#define HAVE_STRTOUL 1 |
|
212
|
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
214
|
|
|
|
|
|
|
#define HAVE_SYS_MOUNT_H 1 |
|
215
|
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
217
|
|
|
|
|
|
|
#define HAVE_SYS_PARAM_H 1 |
|
218
|
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
/* define if you have sys/socket.h */ |
|
220
|
|
|
|
|
|
|
#define HAVE_SYS_SOCKET_H 1 |
|
221
|
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
223
|
|
|
|
|
|
|
#define HAVE_SYS_STAT_H 1 |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
/* define if you have sys/types.h */ |
|
226
|
|
|
|
|
|
|
#define HAVE_SYS_TYPES_H 1 |
|
227
|
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
/* Define to 1 if you have the `timegm' function. */ |
|
229
|
|
|
|
|
|
|
#define HAVE_TIMEGM 1 |
|
230
|
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
232
|
|
|
|
|
|
|
#define HAVE_TIME_H 1 |
|
233
|
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
/* define if you have unistd.h */ |
|
235
|
|
|
|
|
|
|
#define HAVE_UNISTD_H 1 |
|
236
|
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
/* Define to 1 if you have the `vfork' function. */ |
|
238
|
|
|
|
|
|
|
#define HAVE_VFORK 1 |
|
239
|
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
241
|
|
|
|
|
|
|
/* #undef HAVE_VFORK_H */ |
|
242
|
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
244
|
|
|
|
|
|
|
/* #undef HAVE_WINSOCK2_H */ |
|
245
|
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
/* Define to 1 if `fork' works. */ |
|
247
|
|
|
|
|
|
|
#define HAVE_WORKING_FORK 1 |
|
248
|
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
/* Define to 1 if `vfork' works. */ |
|
250
|
|
|
|
|
|
|
#define HAVE_WORKING_VFORK 1 |
|
251
|
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
/* Define to 1 if you have the header file. */ |
|
253
|
|
|
|
|
|
|
/* #undef HAVE_WS2TCPIP_H */ |
|
254
|
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
/* Define to 1 if the system has the type `_Bool'. */ |
|
256
|
|
|
|
|
|
|
#define HAVE__BOOL 1 |
|
257
|
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
/* Is a CAFILE given at configure time */ |
|
259
|
|
|
|
|
|
|
/* #undef LDNS_DANE_CA_FILE */ |
|
260
|
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
/* Is a CAPATH given at configure time */ |
|
262
|
|
|
|
|
|
|
/* #undef LDNS_DANE_CA_PATH */ |
|
263
|
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
/* Define to the sub-directory where libtool stores uninstalled libraries. */ |
|
265
|
|
|
|
|
|
|
#define LT_OBJDIR ".libs/" |
|
266
|
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */ |
|
268
|
|
|
|
|
|
|
#define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" |
|
269
|
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
/* Define to the full name of this package. */ |
|
271
|
|
|
|
|
|
|
#define PACKAGE_NAME "ldns" |
|
272
|
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
/* Define to the full name and version of this package. */ |
|
274
|
|
|
|
|
|
|
#define PACKAGE_STRING "ldns 1.6.17" |
|
275
|
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
/* Define to the one symbol short name of this package. */ |
|
277
|
|
|
|
|
|
|
#define PACKAGE_TARNAME "libdns" |
|
278
|
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
/* Define to the home page for this package. */ |
|
280
|
|
|
|
|
|
|
#define PACKAGE_URL "" |
|
281
|
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
/* Define to the version of this package. */ |
|
283
|
|
|
|
|
|
|
#define PACKAGE_VERSION "1.6.17" |
|
284
|
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
/* Define this to enable RR type NINFO. */ |
|
286
|
|
|
|
|
|
|
/* #undef RRTYPE_NINFO */ |
|
287
|
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
/* Define this to enable RR type OPENPGPKEY. */ |
|
289
|
|
|
|
|
|
|
/* #undef RRTYPE_OPENPGPKEY */ |
|
290
|
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
/* Define this to enable RR type RKEY. */ |
|
292
|
|
|
|
|
|
|
/* #undef RRTYPE_RKEY */ |
|
293
|
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
/* Define this to enable RR type TA. */ |
|
295
|
|
|
|
|
|
|
/* #undef RRTYPE_TA */ |
|
296
|
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
/* Define this to enable RR type URI. */ |
|
298
|
|
|
|
|
|
|
/* #undef RRTYPE_URI */ |
|
299
|
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
/* The size of `time_t', as computed by sizeof. */ |
|
301
|
|
|
|
|
|
|
#define SIZEOF_TIME_T 8 |
|
302
|
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */ |
|
304
|
|
|
|
|
|
|
#define STDC_HEADERS 1 |
|
305
|
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
/* Define this to enable messages to stderr. */ |
|
307
|
|
|
|
|
|
|
/* #undef STDERR_MSGS */ |
|
308
|
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
/* System configuration dir */ |
|
310
|
|
|
|
|
|
|
#define SYSCONFDIR sysconfdir |
|
311
|
|
|
|
|
|
|
|
|
312
|
|
|
|
|
|
|
/* Define this to enable DANE support. */ |
|
313
|
|
|
|
|
|
|
#define USE_DANE 1 |
|
314
|
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
/* Define this to enable ECDSA support. */ |
|
316
|
|
|
|
|
|
|
#define USE_ECDSA 1 |
|
317
|
|
|
|
|
|
|
|
|
318
|
|
|
|
|
|
|
/* Define this to enable GOST support. */ |
|
319
|
|
|
|
|
|
|
/* #define USE_GOST 1 */ |
|
320
|
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
/* Define this to enable SHA256 and SHA512 support. */ |
|
322
|
|
|
|
|
|
|
#define USE_SHA2 1 |
|
323
|
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
/* Enable extensions on AIX 3, Interix. */ |
|
325
|
|
|
|
|
|
|
#ifndef _ALL_SOURCE |
|
326
|
|
|
|
|
|
|
# define _ALL_SOURCE 1 |
|
327
|
|
|
|
|
|
|
#endif |
|
328
|
|
|
|
|
|
|
/* Enable GNU extensions on systems that have them. */ |
|
329
|
|
|
|
|
|
|
#ifndef _GNU_SOURCE |
|
330
|
|
|
|
|
|
|
# define _GNU_SOURCE 1 |
|
331
|
|
|
|
|
|
|
#endif |
|
332
|
|
|
|
|
|
|
/* Enable threading extensions on Solaris. */ |
|
333
|
|
|
|
|
|
|
#ifndef _POSIX_PTHREAD_SEMANTICS |
|
334
|
|
|
|
|
|
|
# define _POSIX_PTHREAD_SEMANTICS 1 |
|
335
|
|
|
|
|
|
|
#endif |
|
336
|
|
|
|
|
|
|
/* Enable extensions on HP NonStop. */ |
|
337
|
|
|
|
|
|
|
#ifndef _TANDEM_SOURCE |
|
338
|
|
|
|
|
|
|
# define _TANDEM_SOURCE 1 |
|
339
|
|
|
|
|
|
|
#endif |
|
340
|
|
|
|
|
|
|
/* Enable general extensions on Solaris. */ |
|
341
|
|
|
|
|
|
|
#ifndef __EXTENSIONS__ |
|
342
|
|
|
|
|
|
|
# define __EXTENSIONS__ 1 |
|
343
|
|
|
|
|
|
|
#endif |
|
344
|
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
/* Whether the windows socket API is used */ |
|
347
|
|
|
|
|
|
|
/* #undef USE_WINSOCK */ |
|
348
|
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
/* the version of the windows API enabled */ |
|
350
|
|
|
|
|
|
|
#define WINVER 0x0502 |
|
351
|
|
|
|
|
|
|
|
|
352
|
|
|
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most |
|
353
|
|
|
|
|
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
354
|
|
|
|
|
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
355
|
|
|
|
|
|
|
# if defined __BIG_ENDIAN__ |
|
356
|
|
|
|
|
|
|
# define WORDS_BIGENDIAN 1 |
|
357
|
|
|
|
|
|
|
# endif |
|
358
|
|
|
|
|
|
|
#else |
|
359
|
|
|
|
|
|
|
# ifndef WORDS_BIGENDIAN |
|
360
|
|
|
|
|
|
|
/* # undef WORDS_BIGENDIAN */ |
|
361
|
|
|
|
|
|
|
# endif |
|
362
|
|
|
|
|
|
|
#endif |
|
363
|
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
/* Define to 1 if on MINIX. */ |
|
365
|
|
|
|
|
|
|
/* #undef _MINIX */ |
|
366
|
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
/* Enable for compile on Minix */ |
|
368
|
|
|
|
|
|
|
/* #undef _NETBSD_SOURCE */ |
|
369
|
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
/* Define to 2 if the system does not provide POSIX.1 features except with |
|
371
|
|
|
|
|
|
|
this defined. */ |
|
372
|
|
|
|
|
|
|
/* #undef _POSIX_1_SOURCE */ |
|
373
|
|
|
|
|
|
|
|
|
374
|
|
|
|
|
|
|
/* Define to 1 if you need to in order for `stat' and other things to work. */ |
|
375
|
|
|
|
|
|
|
/* #undef _POSIX_SOURCE */ |
|
376
|
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
/* Define to empty if `const' does not conform to ANSI C. */ |
|
378
|
|
|
|
|
|
|
/* #undef const */ |
|
379
|
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
/* in_addr_t */ |
|
381
|
|
|
|
|
|
|
/* #undef in_addr_t */ |
|
382
|
|
|
|
|
|
|
|
|
383
|
|
|
|
|
|
|
/* in_port_t */ |
|
384
|
|
|
|
|
|
|
/* #undef in_port_t */ |
|
385
|
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
/* Define to `__inline__' or `__inline' if that's what the C compiler |
|
387
|
|
|
|
|
|
|
calls it, or to nothing if 'inline' is not supported under any name. */ |
|
388
|
|
|
|
|
|
|
#ifndef __cplusplus |
|
389
|
|
|
|
|
|
|
/* #undef inline */ |
|
390
|
|
|
|
|
|
|
#endif |
|
391
|
|
|
|
|
|
|
|
|
392
|
|
|
|
|
|
|
/* Define to `short' if does not define. */ |
|
393
|
|
|
|
|
|
|
/* #undef int16_t */ |
|
394
|
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
/* Define to `int' if does not define. */ |
|
396
|
|
|
|
|
|
|
/* #undef int32_t */ |
|
397
|
|
|
|
|
|
|
|
|
398
|
|
|
|
|
|
|
/* Define to `long long' if does not define. */ |
|
399
|
|
|
|
|
|
|
/* #undef int64_t */ |
|
400
|
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
/* Define to `char' if does not define. */ |
|
402
|
|
|
|
|
|
|
/* #undef int8_t */ |
|
403
|
|
|
|
|
|
|
|
|
404
|
|
|
|
|
|
|
/* Define to `size_t' if does not define. */ |
|
405
|
|
|
|
|
|
|
/* #undef intptr_t */ |
|
406
|
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
/* Define to rpl_malloc if the replacement function should be used. */ |
|
408
|
|
|
|
|
|
|
/* #undef malloc */ |
|
409
|
|
|
|
|
|
|
|
|
410
|
|
|
|
|
|
|
/* Define to `int' if does not define. */ |
|
411
|
|
|
|
|
|
|
/* #undef pid_t */ |
|
412
|
|
|
|
|
|
|
|
|
413
|
|
|
|
|
|
|
/* Define to rpl_realloc if the replacement function should be used. */ |
|
414
|
|
|
|
|
|
|
/* #undef realloc */ |
|
415
|
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
/* Define to `unsigned int' if does not define. */ |
|
417
|
|
|
|
|
|
|
/* #undef size_t */ |
|
418
|
|
|
|
|
|
|
|
|
419
|
|
|
|
|
|
|
/* Define to 'int' if not defined */ |
|
420
|
|
|
|
|
|
|
/* #undef socklen_t */ |
|
421
|
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
/* Fallback member name for socket family in struct sockaddr_storage */ |
|
423
|
|
|
|
|
|
|
/* #undef ss_family */ |
|
424
|
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
/* Define to `int' if does not define. */ |
|
426
|
|
|
|
|
|
|
/* #undef ssize_t */ |
|
427
|
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
/* Define to `unsigned short' if does not define. */ |
|
429
|
|
|
|
|
|
|
/* #undef uint16_t */ |
|
430
|
|
|
|
|
|
|
|
|
431
|
|
|
|
|
|
|
/* Define to `unsigned int' if does not define. */ |
|
432
|
|
|
|
|
|
|
/* #undef uint32_t */ |
|
433
|
|
|
|
|
|
|
|
|
434
|
|
|
|
|
|
|
/* Define to `unsigned long long' if does not define. */ |
|
435
|
|
|
|
|
|
|
/* #undef uint64_t */ |
|
436
|
|
|
|
|
|
|
|
|
437
|
|
|
|
|
|
|
/* Define to `unsigned char' if does not define. */ |
|
438
|
|
|
|
|
|
|
/* #undef uint8_t */ |
|
439
|
|
|
|
|
|
|
|
|
440
|
|
|
|
|
|
|
/* Define as `fork' if `vfork' does not work. */ |
|
441
|
|
|
|
|
|
|
/* #undef vfork */ |
|
442
|
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
|
|
444
|
|
|
|
|
|
|
#include |
|
445
|
|
|
|
|
|
|
#include |
|
446
|
|
|
|
|
|
|
#include |
|
447
|
|
|
|
|
|
|
#include |
|
448
|
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
#ifndef LITTLE_ENDIAN |
|
450
|
|
|
|
|
|
|
#define LITTLE_ENDIAN 1234 |
|
451
|
|
|
|
|
|
|
#endif |
|
452
|
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
#ifndef BIG_ENDIAN |
|
454
|
|
|
|
|
|
|
#define BIG_ENDIAN 4321 |
|
455
|
|
|
|
|
|
|
#endif |
|
456
|
|
|
|
|
|
|
|
|
457
|
|
|
|
|
|
|
#ifndef BYTE_ORDER |
|
458
|
|
|
|
|
|
|
#ifdef WORDS_BIGENDIAN |
|
459
|
|
|
|
|
|
|
#define BYTE_ORDER BIG_ENDIAN |
|
460
|
|
|
|
|
|
|
#else |
|
461
|
|
|
|
|
|
|
#define BYTE_ORDER LITTLE_ENDIAN |
|
462
|
|
|
|
|
|
|
#endif /* WORDS_BIGENDIAN */ |
|
463
|
|
|
|
|
|
|
#endif /* BYTE_ORDER */ |
|
464
|
|
|
|
|
|
|
|
|
465
|
|
|
|
|
|
|
#if STDC_HEADERS |
|
466
|
|
|
|
|
|
|
#include |
|
467
|
|
|
|
|
|
|
#include |
|
468
|
|
|
|
|
|
|
#endif |
|
469
|
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
#ifdef HAVE_STDINT_H |
|
471
|
|
|
|
|
|
|
#include |
|
472
|
|
|
|
|
|
|
#endif |
|
473
|
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
#ifdef HAVE_SYS_SOCKET_H |
|
475
|
|
|
|
|
|
|
#include |
|
476
|
|
|
|
|
|
|
#endif |
|
477
|
|
|
|
|
|
|
|
|
478
|
|
|
|
|
|
|
#ifdef HAVE_NETINET_IN_H |
|
479
|
|
|
|
|
|
|
#include |
|
480
|
|
|
|
|
|
|
#endif |
|
481
|
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
#ifdef HAVE_ARPA_INET_H |
|
483
|
|
|
|
|
|
|
#include |
|
484
|
|
|
|
|
|
|
#endif |
|
485
|
|
|
|
|
|
|
|
|
486
|
|
|
|
|
|
|
#ifdef HAVE_WINSOCK2_H |
|
487
|
|
|
|
|
|
|
#include |
|
488
|
|
|
|
|
|
|
#endif |
|
489
|
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
#ifdef HAVE_WS2TCPIP_H |
|
491
|
|
|
|
|
|
|
#include |
|
492
|
|
|
|
|
|
|
#endif |
|
493
|
|
|
|
|
|
|
|
|
494
|
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ |
|
496
|
|
|
|
|
|
|
#ifdef HAVE_WINSOCK2_H |
|
497
|
|
|
|
|
|
|
#define FD_SET_T (u_int) |
|
498
|
|
|
|
|
|
|
#else |
|
499
|
|
|
|
|
|
|
#define FD_SET_T |
|
500
|
|
|
|
|
|
|
#endif |
|
501
|
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
|
|
503
|
|
|
|
|
|
|
|
|
504
|
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
506
|
|
|
|
|
|
|
extern "C" { |
|
507
|
|
|
|
|
|
|
#endif |
|
508
|
|
|
|
|
|
|
|
|
509
|
|
|
|
|
|
|
int ldns_b64_ntop(uint8_t const *src, size_t srclength, |
|
510
|
|
|
|
|
|
|
char *target, size_t targsize); |
|
511
|
|
|
|
|
|
|
/** |
|
512
|
|
|
|
|
|
|
* calculates the size needed to store the result of b64_ntop |
|
513
|
|
|
|
|
|
|
*/ |
|
514
|
|
|
|
|
|
|
/*@unused@*/ |
|
515
|
8
|
|
|
|
|
|
static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize) |
|
516
|
|
|
|
|
|
|
{ |
|
517
|
8
|
|
|
|
|
|
return ((((srcsize + 2) / 3) * 4) + 1); |
|
518
|
|
|
|
|
|
|
} |
|
519
|
|
|
|
|
|
|
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize); |
|
520
|
|
|
|
|
|
|
/** |
|
521
|
|
|
|
|
|
|
* calculates the size needed to store the result of ldns_b64_pton |
|
522
|
|
|
|
|
|
|
*/ |
|
523
|
|
|
|
|
|
|
/*@unused@*/ |
|
524
|
0
|
|
|
|
|
|
static inline size_t ldns_b64_pton_calculate_size(size_t srcsize) |
|
525
|
|
|
|
|
|
|
{ |
|
526
|
0
|
|
|
|
|
|
return (((((srcsize + 3) / 4) * 3)) + 1); |
|
527
|
|
|
|
|
|
|
} |
|
528
|
|
|
|
|
|
|
|
|
529
|
|
|
|
|
|
|
/** |
|
530
|
|
|
|
|
|
|
* Given in dnssec_zone.c, also used in dnssec_sign.c:w |
|
531
|
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
*/ |
|
533
|
|
|
|
|
|
|
int ldns_dname_compare_v(const void *a, const void *b); |
|
534
|
|
|
|
|
|
|
|
|
535
|
|
|
|
|
|
|
#ifndef HAVE_SLEEP |
|
536
|
|
|
|
|
|
|
/* use windows sleep, in millisecs, instead */ |
|
537
|
|
|
|
|
|
|
#define sleep(x) Sleep((x)*1000) |
|
538
|
|
|
|
|
|
|
#endif |
|
539
|
|
|
|
|
|
|
|
|
540
|
|
|
|
|
|
|
#ifndef HAVE_RANDOM |
|
541
|
|
|
|
|
|
|
#define srandom(x) srand(x) |
|
542
|
|
|
|
|
|
|
#define random(x) rand(x) |
|
543
|
|
|
|
|
|
|
#endif |
|
544
|
|
|
|
|
|
|
|
|
545
|
|
|
|
|
|
|
#ifndef HAVE_TIMEGM |
|
546
|
|
|
|
|
|
|
#include |
|
547
|
|
|
|
|
|
|
time_t timegm (struct tm *tm); |
|
548
|
|
|
|
|
|
|
#endif /* !TIMEGM */ |
|
549
|
|
|
|
|
|
|
#ifndef HAVE_GMTIME_R |
|
550
|
|
|
|
|
|
|
struct tm *gmtime_r(const time_t *timep, struct tm *result); |
|
551
|
|
|
|
|
|
|
#endif |
|
552
|
|
|
|
|
|
|
#ifndef HAVE_LOCALTIME_R |
|
553
|
|
|
|
|
|
|
struct tm *localtime_r(const time_t *timep, struct tm *result); |
|
554
|
|
|
|
|
|
|
#endif |
|
555
|
|
|
|
|
|
|
#ifndef HAVE_ISBLANK |
|
556
|
|
|
|
|
|
|
int isblank(int c); |
|
557
|
|
|
|
|
|
|
#endif /* !HAVE_ISBLANK */ |
|
558
|
|
|
|
|
|
|
#ifndef HAVE_ISASCII |
|
559
|
|
|
|
|
|
|
int isascii(int c); |
|
560
|
|
|
|
|
|
|
#endif /* !HAVE_ISASCII */ |
|
561
|
|
|
|
|
|
|
#ifndef HAVE_SNPRINTF |
|
562
|
|
|
|
|
|
|
#include |
|
563
|
|
|
|
|
|
|
int snprintf (char *str, size_t count, const char *fmt, ...); |
|
564
|
|
|
|
|
|
|
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); |
|
565
|
|
|
|
|
|
|
#endif /* HAVE_SNPRINTF */ |
|
566
|
|
|
|
|
|
|
#ifndef HAVE_INET_PTON |
|
567
|
|
|
|
|
|
|
int inet_pton(int af, const char* src, void* dst); |
|
568
|
|
|
|
|
|
|
#endif /* HAVE_INET_PTON */ |
|
569
|
|
|
|
|
|
|
#ifndef HAVE_INET_NTOP |
|
570
|
|
|
|
|
|
|
const char *inet_ntop(int af, const void *src, char *dst, size_t size); |
|
571
|
|
|
|
|
|
|
#endif |
|
572
|
|
|
|
|
|
|
#ifndef HAVE_INET_ATON |
|
573
|
|
|
|
|
|
|
int inet_aton(const char *cp, struct in_addr *addr); |
|
574
|
|
|
|
|
|
|
#endif |
|
575
|
|
|
|
|
|
|
#ifndef HAVE_MEMMOVE |
|
576
|
|
|
|
|
|
|
void *memmove(void *dest, const void *src, size_t n); |
|
577
|
|
|
|
|
|
|
#endif |
|
578
|
|
|
|
|
|
|
#ifndef HAVE_STRLCPY |
|
579
|
|
|
|
|
|
|
size_t strlcpy(char *dst, const char *src, size_t siz); |
|
580
|
|
|
|
|
|
|
#endif |
|
581
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
582
|
|
|
|
|
|
|
} |
|
583
|
|
|
|
|
|
|
#endif |
|
584
|
|
|
|
|
|
|
#ifndef HAVE_GETADDRINFO |
|
585
|
|
|
|
|
|
|
#include "compat/fake-rfc2553.h" |
|
586
|
|
|
|
|
|
|
#endif |
|
587
|
|
|
|
|
|
|
#ifndef HAVE_STRTOUL |
|
588
|
|
|
|
|
|
|
#define strtoul (unsigned long)strtol |
|
589
|
|
|
|
|
|
|
#endif |
|
590
|
|
|
|
|
|
|
|