ldns  1.7.0
config.h
Go to the documentation of this file.
1 /* ldns/config.h. Generated from config.h.in by configure. */
2 /* ldns/config.h.in. Generated from configure.ac by autoheader. */
3 
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6 
7 /* Define to 1 if you have the <arpa/inet.h> 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 `CONF_modules_unload' function. */
35 #define HAVE_CONF_MODULES_UNLOAD 1
36 
37 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
38 /* #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA */
39 
40 /* Define to 1 if you have the `CRYPTO_memcmp' function. */
41 #define HAVE_CRYPTO_MEMCMP 1
42 
43 /* Define to 1 if you have the `ctime_r' function. */
44 #define HAVE_CTIME_R 1
45 
46 /* Is a CAFILE given at configure time */
47 #define HAVE_DANE_CA_FILE 0
48 
49 /* Is a CAPATH given at configure time */
50 #define HAVE_DANE_CA_PATH 0
51 
52 /* Define to 1 if you have the declaration of `EVP_PKEY_base_id', and to 0 if
53  you don't. */
54 #define HAVE_DECL_EVP_PKEY_BASE_ID 1
55 
56 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
57  don't. */
58 #define HAVE_DECL_NID_ED25519 1
59 
60 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
61  don't. */
62 #define HAVE_DECL_NID_ED448 1
63 
64 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
65  don't. */
66 #define HAVE_DECL_NID_SECP384R1 1
67 
68 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
69  if you don't. */
70 #define HAVE_DECL_NID_X9_62_PRIME256V1 1
71 
72 /* Define to 1 if you have the <dlfcn.h> header file. */
73 #define HAVE_DLFCN_H 1
74 
75 /* Define to 1 if you have the `DSA_get0_key' function. */
76 #define HAVE_DSA_GET0_KEY 1
77 
78 /* Define to 1 if you have the `DSA_get0_pqg' function. */
79 #define HAVE_DSA_GET0_PQG 1
80 
81 /* Define to 1 if you have the `DSA_SIG_get0' function. */
82 #define HAVE_DSA_SIG_GET0 1
83 
84 /* Define to 1 if you have the `DSA_SIG_set0' function. */
85 #define HAVE_DSA_SIG_SET0 1
86 
87 /* Define to 1 if you have the `ECDSA_SIG_get0' function. */
88 #define HAVE_ECDSA_SIG_GET0 1
89 
90 /* Define to 1 if you have the `endprotoent' function. */
91 #define HAVE_ENDPROTOENT 1
92 
93 /* Define to 1 if you have the `endservent' function. */
94 #define HAVE_ENDSERVENT 1
95 
96 /* Define to 1 if you have the `ENGINE_cleanup' function. */
97 /* #undef HAVE_ENGINE_CLEANUP */
98 
99 /* Define to 1 if you have the `ENGINE_free' function. */
100 #define HAVE_ENGINE_FREE 1
101 
102 /* Define to 1 if you have the `ERR_free_strings' function. */
103 /* #undef HAVE_ERR_FREE_STRINGS */
104 
105 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
106 /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
107 
108 /* Define to 1 if you have the `EVP_cleanup' function. */
109 /* #undef HAVE_EVP_CLEANUP */
110 
111 /* Define to 1 if you have the `EVP_dss1' function. */
112 /* #undef HAVE_EVP_DSS1 */
113 
114 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
115 #define HAVE_EVP_MD_CTX_NEW 1
116 
117 /* Define to 1 if you have the EVP_PKEY_base_id function or macro. */
118 #define HAVE_EVP_PKEY_BASE_ID 1
119 
120 /* Define to 1 if you have the `EVP_PKEY_get_base_id' function. */
121 /* #undef HAVE_EVP_PKEY_GET_BASE_ID */
122 
123 /* Define to 1 if you have the `EVP_PKEY_keygen' function. */
124 #define HAVE_EVP_PKEY_KEYGEN 1
125 
126 /* Define to 1 if you have the `EVP_sha256' function. */
127 #define HAVE_EVP_SHA256 1
128 
129 /* Define to 1 if you have the `EVP_sha384' function. */
130 #define HAVE_EVP_SHA384 1
131 
132 /* Define to 1 if you have the `EVP_sha512' function. */
133 #define HAVE_EVP_SHA512 1
134 
135 /* Define to 1 if you have the `fcntl' function. */
136 #define HAVE_FCNTL 1
137 
138 /* Define to 1 if you have the `fork' function. */
139 #define HAVE_FORK 1
140 
141 /* if fork is available for compile */
142 #define HAVE_FORK_AVAILABLE 1
143 
144 /* Whether getaddrinfo is available */
145 #define HAVE_GETADDRINFO 1
146 
147 /* Define to 1 if you have the <getopt.h> header file. */
148 #define HAVE_GETOPT_H 1
149 
150 /* Define to 1 if you have the `gmtime_r' function. */
151 #define HAVE_GMTIME_R 1
152 
153 /* Define to 1 if you have the `inet_aton' function. */
154 #define HAVE_INET_ATON 1
155 
156 /* Define to 1 if you have the `inet_ntop' function. */
157 #define HAVE_INET_NTOP 1
158 
159 /* Define to 1 if you have the `inet_pton' function. */
160 #define HAVE_INET_PTON 1
161 
162 /* define if you have inttypes.h */
163 #define HAVE_INTTYPES_H 1
164 
165 /* if the function 'ioctlsocket' is available */
166 /* #undef HAVE_IOCTLSOCKET */
167 
168 /* Define to 1 if you have the `isascii' function. */
169 #define HAVE_ISASCII 1
170 
171 /* Define to 1 if you have the `isblank' function. */
172 #define HAVE_ISBLANK 1
173 
174 /* Define to 1 if you have the `pcap' library (-lpcap). */
175 #define HAVE_LIBPCAP 1
176 
177 /* Define if we have LibreSSL */
178 /* #undef HAVE_LIBRESSL */
179 
180 /* Define to 1 if you have the `localtime_r' function. */
181 #define HAVE_LOCALTIME_R 1
182 
183 /* Define to 1 if you have the `memmove' function. */
184 #define HAVE_MEMMOVE 1
185 
186 /* Define to 1 if you have the <memory.h> header file. */
187 #define HAVE_MEMORY_H 1
188 
189 /* Define to 1 if you have the `memset' function. */
190 #define HAVE_MEMSET 1
191 
192 /* Define to 1 if you have the <netdb.h> header file. */
193 #define HAVE_NETDB_H 1
194 
195 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
196 #define HAVE_NETINET_IF_ETHER_H 1
197 
198 /* Define to 1 if you have the <netinet/igmp.h> header file. */
199 #define HAVE_NETINET_IGMP_H 1
200 
201 /* Define to 1 if you have the <netinet/in.h> header file. */
202 #define HAVE_NETINET_IN_H 1
203 
204 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
205 #define HAVE_NETINET_IN_SYSTM_H 1
206 
207 /* Define to 1 if you have the <netinet/ip6.h> header file. */
208 #define HAVE_NETINET_IP6_H 1
209 
210 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
211 /* #undef HAVE_NETINET_IP_COMPAT_H */
212 
213 /* Define to 1 if you have the <netinet/ip.h> header file. */
214 #define HAVE_NETINET_IP_H 1
215 
216 /* Define to 1 if you have the <netinet/udp.h> header file. */
217 #define HAVE_NETINET_UDP_H 1
218 
219 /* Define to 1 if you have the <net/ethernet.h> header file. */
220 #define HAVE_NET_ETHERNET_H 1
221 
222 /* Define to 1 if you have the <net/if.h> header file. */
223 #define HAVE_NET_IF_H 1
224 
225 /* Define to 1 if you have the <openssl/conf.h> header file. */
226 #define HAVE_OPENSSL_CONF_H 1
227 
228 /* Define to 1 if you have the <openssl/engine.h> header file. */
229 #define HAVE_OPENSSL_ENGINE_H 1
230 
231 /* Define to 1 if you have the <openssl/err.h> header file. */
232 #define HAVE_OPENSSL_ERR_H 1
233 
234 /* Define to 1 if you have the <openssl/evp.h> header file. */
235 #define HAVE_OPENSSL_EVP_H 1
236 
237 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
238 #define HAVE_OPENSSL_INIT_CRYPTO 1
239 
240 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
241 /* #undef HAVE_OPENSSL_INIT_SSL */
242 
243 /* Define to 1 if you have the <openssl/rand.h> header file. */
244 #define HAVE_OPENSSL_RAND_H 1
245 
246 /* Define to 1 if you have the <openssl/ssl.h> header file. */
247 #define HAVE_OPENSSL_SSL_H 1
248 
249 /* Define to 1 if you have the <pcap.h> header file. */
250 #define HAVE_PCAP_H 1
251 
252 /* This platform supports poll(7). */
253 #define HAVE_POLL 1
254 
255 /* If available, contains the Python version number currently in use. */
256 #define HAVE_PYTHON "3.9"
257 
258 /* Define to 1 if you have the `random' function. */
259 #define HAVE_RANDOM 1
260 
261 /* Define to 1 if you have the `sleep' function. */
262 #define HAVE_SLEEP 1
263 
264 /* Define to 1 if you have the `snprintf' function. */
265 #define HAVE_SNPRINTF 1
266 
267 /* Define if you have the SSL libraries installed. */
268 #define HAVE_SSL
269 
270 /* Define to 1 if you have the <stdarg.h> header file. */
271 #define HAVE_STDARG_H 1
272 
273 /* Define to 1 if stdbool.h conforms to C99. */
274 #define HAVE_STDBOOL_H 1
275 
276 /* Define to 1 if you have the <stdint.h> header file. */
277 #define HAVE_STDINT_H 1
278 
279 /* Define to 1 if you have the <stdlib.h> header file. */
280 #define HAVE_STDLIB_H 1
281 
282 /* Define to 1 if you have the <strings.h> header file. */
283 #define HAVE_STRINGS_H 1
284 
285 /* Define to 1 if you have the <string.h> header file. */
286 #define HAVE_STRING_H 1
287 
288 /* Define to 1 if you have the `strlcpy' function. */
289 #define HAVE_STRLCPY 1
290 
291 /* Define to 1 if you have the `strtoul' function. */
292 #define HAVE_STRTOUL 1
293 
294 /* Define if you have SWIG libraries and header files. */
295 #define HAVE_SWIG 1
296 
297 /* Define to 1 if you have the <sys/mount.h> header file. */
298 #define HAVE_SYS_MOUNT_H 1
299 
300 /* Define to 1 if you have the <sys/param.h> header file. */
301 #define HAVE_SYS_PARAM_H 1
302 
303 /* define if you have sys/socket.h */
304 #define HAVE_SYS_SOCKET_H 1
305 
306 /* Define to 1 if you have the <sys/stat.h> header file. */
307 #define HAVE_SYS_STAT_H 1
308 
309 /* define if you have sys/types.h */
310 #define HAVE_SYS_TYPES_H 1
311 
312 /* Define to 1 if you have the <TargetConditionals.h> header file. */
313 /* #undef HAVE_TARGETCONDITIONALS_H */
314 
315 /* Define to 1 if you have the `timegm' function. */
316 #define HAVE_TIMEGM 1
317 
318 /* Define to 1 if you have the <time.h> header file. */
319 #define HAVE_TIME_H 1
320 
321 /* define if you have unistd.h */
322 #define HAVE_UNISTD_H 1
323 
324 /* Define to 1 if you have the `vfork' function. */
325 #define HAVE_VFORK 1
326 
327 /* Define to 1 if you have the <vfork.h> header file. */
328 /* #undef HAVE_VFORK_H */
329 
330 /* Define to 1 if you have the <winsock2.h> header file. */
331 /* #undef HAVE_WINSOCK2_H */
332 
333 /* Define to 1 if `fork' works. */
334 #define HAVE_WORKING_FORK 1
335 
336 /* Define to 1 if `vfork' works. */
337 #define HAVE_WORKING_VFORK 1
338 
339 /* Define to 1 if you have the <ws2tcpip.h> header file. */
340 /* #undef HAVE_WS2TCPIP_H */
341 
342 /* Define to 1 if the system has the type `_Bool'. */
343 #define HAVE__BOOL 1
344 
345 /* Is a CAFILE given at configure time */
346 /* #undef LDNS_DANE_CA_FILE */
347 
348 /* Is a CAPATH given at configure time */
349 /* #undef LDNS_DANE_CA_PATH */
350 
351 /* Define to the sub-directory where libtool stores uninstalled libraries. */
352 #define LT_OBJDIR ".libs/"
353 
354 /* Define to the address where bug reports for this package should be sent. */
355 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
356 
357 /* Define to the full name of this package. */
358 #define PACKAGE_NAME "ldns"
359 
360 /* Define to the full name and version of this package. */
361 #define PACKAGE_STRING "ldns 1.8.1"
362 
363 /* Define to the one symbol short name of this package. */
364 #define PACKAGE_TARNAME "libdns"
365 
366 /* Define to the home page for this package. */
367 #define PACKAGE_URL ""
368 
369 /* Define to the version of this package. */
370 #define PACKAGE_VERSION "1.8.1"
371 
372 /* Define this to enable RR type AMTRELAY. */
373 /* #undef RRTYPE_AMTRELAY */
374 
375 /* Define this to enable RR type AVC. */
376 /* #undef RRTYPE_AVC */
377 
378 /* Define this to enable RR type DOA. */
379 /* #undef RRTYPE_DOA */
380 
381 /* Define this to enable RR type NINFO. */
382 #define RRTYPE_NINFO
383 
384 /* Define this to enable RR type OPENPGPKEY. */
385 #define RRTYPE_OPENPGPKEY
386 
387 /* Define this to enable RR type RKEY. */
388 #define RRTYPE_RKEY
389 
390 /* Define this to enable RR types SVCB and HTTPS. */
391 /* #undef RRTYPE_SVCB_HTTPS */
392 
393 /* Define this to enable RR type TA. */
394 #define RRTYPE_TA
395 
396 /* The size of `time_t', as computed by sizeof. */
397 #define SIZEOF_TIME_T 4
398 
399 /* Define to 1 if you have the ANSI C header files. */
400 #define STDC_HEADERS 1
401 
402 /* Define this to enable messages to stderr. */
403 /* #undef STDERR_MSGS */
404 
405 /* System configuration dir */
406 #define SYSCONFDIR sysconfdir
407 
408 /* Define this to enable DANE support. */
409 #define USE_DANE 1
410 
411 /* Define this to enable DANE-TA usage type support. */
412 #define USE_DANE_TA_USAGE 1
413 
414 /* Define this to enable DANE verify support. */
415 #define USE_DANE_VERIFY 1
416 
417 /* Define this to enable DSA support. */
418 #define USE_DSA 1
419 
420 /* Define this to enable ECDSA support. */
421 #define USE_ECDSA 1
422 
423 /* Define this to enable ED25519 support. */
424 #define USE_ED25519 1
425 
426 /* Define this to enable ED448 support. */
427 #define USE_ED448 1
428 
429 /* Define this to enable GOST support. */
430 /* #undef USE_GOST */
431 
432 /* Define this to enable SHA256 and SHA512 support. */
433 #define USE_SHA2 1
434 
435 /* Enable extensions on AIX 3, Interix. */
436 #ifndef _ALL_SOURCE
437 # define _ALL_SOURCE 1
438 #endif
439 /* Enable GNU extensions on systems that have them. */
440 #ifndef _GNU_SOURCE
441 # define _GNU_SOURCE 1
442 #endif
443 /* Enable threading extensions on Solaris. */
444 #ifndef _POSIX_PTHREAD_SEMANTICS
445 # define _POSIX_PTHREAD_SEMANTICS 1
446 #endif
447 /* Enable extensions on HP NonStop. */
448 #ifndef _TANDEM_SOURCE
449 # define _TANDEM_SOURCE 1
450 #endif
451 /* Enable general extensions on Solaris. */
452 #ifndef __EXTENSIONS__
453 # define __EXTENSIONS__ 1
454 #endif
455 
456 
457 /* Whether the windows socket API is used */
458 /* #undef USE_WINSOCK */
459 
460 /* the version of the windows API enabled */
461 #define WINVER 0x0502
462 
463 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
464  significant byte first (like Motorola and SPARC, unlike Intel). */
465 #if defined AC_APPLE_UNIVERSAL_BUILD
466 # if defined __BIG_ENDIAN__
467 # define WORDS_BIGENDIAN 1
468 # endif
469 #else
470 # ifndef WORDS_BIGENDIAN
471 /* # undef WORDS_BIGENDIAN */
472 # endif
473 #endif
474 
475 /* Define to 1 if on MINIX. */
476 /* #undef _MINIX */
477 
478 /* Enable for compile on Minix */
479 /* #undef _NETBSD_SOURCE */
480 
481 /* Define to 2 if the system does not provide POSIX.1 features except with
482  this defined. */
483 /* #undef _POSIX_1_SOURCE */
484 
485 /* Define to 1 if you need to in order for `stat' and other things to work. */
486 /* #undef _POSIX_SOURCE */
487 
488 /* Define to empty if `const' does not conform to ANSI C. */
489 /* #undef const */
490 
491 /* in_addr_t */
492 /* #undef in_addr_t */
493 
494 /* in_port_t */
495 /* #undef in_port_t */
496 
497 /* Define to `__inline__' or `__inline' if that's what the C compiler
498  calls it, or to nothing if 'inline' is not supported under any name. */
499 #ifndef __cplusplus
500 /* #undef inline */
501 #endif
502 
503 /* Define to `short' if <sys/types.h> does not define. */
504 /* #undef int16_t */
505 
506 /* Define to `int' if <sys/types.h> does not define. */
507 /* #undef int32_t */
508 
509 /* Define to `long long' if <sys/types.h> does not define. */
510 /* #undef int64_t */
511 
512 /* Define to `char' if <sys/types.h> does not define. */
513 /* #undef int8_t */
514 
515 /* Define to `size_t' if <sys/types.h> does not define. */
516 /* #undef intptr_t */
517 
518 /* Define to `int' if <sys/types.h> does not define. */
519 /* #undef pid_t */
520 
521 /* Define to `unsigned int' if <sys/types.h> does not define. */
522 /* #undef size_t */
523 
524 /* Define to 'int' if not defined */
525 /* #undef socklen_t */
526 
527 /* Fallback member name for socket family in struct sockaddr_storage */
528 /* #undef ss_family */
529 
530 /* Define to `int' if <sys/types.h> does not define. */
531 /* #undef ssize_t */
532 
533 /* Define to `unsigned short' if <sys/types.h> does not define. */
534 /* #undef uint16_t */
535 
536 /* Define to `unsigned int' if <sys/types.h> does not define. */
537 /* #undef uint32_t */
538 
539 /* Define to `unsigned long long' if <sys/types.h> does not define. */
540 /* #undef uint64_t */
541 
542 /* Define to `unsigned char' if <sys/types.h> does not define. */
543 /* #undef uint8_t */
544 
545 /* Define as `fork' if `vfork' does not work. */
546 /* #undef vfork */
547 
548 
549 #include <stdio.h>
550 #include <string.h>
551 #include <unistd.h>
552 #include <assert.h>
553 
554 #ifndef LITTLE_ENDIAN
555 #define LITTLE_ENDIAN 1234
556 #endif
557 
558 #ifndef BIG_ENDIAN
559 #define BIG_ENDIAN 4321
560 #endif
561 
562 #ifndef BYTE_ORDER
563 #ifdef WORDS_BIGENDIAN
564 #define BYTE_ORDER BIG_ENDIAN
565 #else
566 #define BYTE_ORDER LITTLE_ENDIAN
567 #endif /* WORDS_BIGENDIAN */
568 #endif /* BYTE_ORDER */
569 
570 #if STDC_HEADERS
571 #include <stdlib.h>
572 #include <stddef.h>
573 #endif
574 
575 #ifdef HAVE_STDINT_H
576 #include <stdint.h>
577 #endif
578 
579 #ifdef HAVE_SYS_SOCKET_H
580 #include <sys/socket.h>
581 #endif
582 
583 #ifdef HAVE_NETINET_IN_H
584 #include <netinet/in.h>
585 #endif
586 
587 #ifdef HAVE_ARPA_INET_H
588 #include <arpa/inet.h>
589 #endif
590 
591 #ifdef HAVE_WINSOCK2_H
592 #include <winsock2.h>
593 #endif
594 
595 #ifdef HAVE_WS2TCPIP_H
596 #include <ws2tcpip.h>
597 #endif
598 
599 
600 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
601 #ifdef HAVE_WINSOCK2_H
602 #define FD_SET_T (u_int)
603 #else
604 #define FD_SET_T
605 #endif
606 
607 
608 
609 
610 #ifdef __cplusplus
611 extern "C" {
612 #endif
613 
614 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
615  char *target, size_t targsize);
619 /*@unused@*/
620 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
621 {
622  return ((((srcsize + 2) / 3) * 4) + 1);
623 }
624 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
628 /*@unused@*/
629 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
630 {
631  return (((((srcsize + 3) / 4) * 3)) + 1);
632 }
633 
638 int ldns_dname_compare_v(const void *a, const void *b);
639 
640 #ifndef HAVE_SLEEP
641 /* use windows sleep, in millisecs, instead */
642 #define sleep(x) Sleep((x)*1000)
643 #endif
644 
645 #ifndef HAVE_RANDOM
646 #define srandom(x) srand(x)
647 #define random(x) rand(x)
648 #endif
649 
650 #ifndef HAVE_TIMEGM
651 #include <time.h>
652 time_t timegm (struct tm *tm);
653 #endif /* !TIMEGM */
654 #ifndef HAVE_GMTIME_R
655 struct tm *gmtime_r(const time_t *timep, struct tm *result);
656 #endif
657 #ifndef HAVE_LOCALTIME_R
658 struct tm *localtime_r(const time_t *timep, struct tm *result);
659 #endif
660 #ifndef HAVE_ISBLANK
661 int isblank(int c);
662 #endif /* !HAVE_ISBLANK */
663 #ifndef HAVE_ISASCII
664 int isascii(int c);
665 #endif /* !HAVE_ISASCII */
666 #ifndef HAVE_SNPRINTF
667 #include <stdarg.h>
668 int snprintf (char *str, size_t count, const char *fmt, ...);
669 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
670 #endif /* HAVE_SNPRINTF */
671 #ifndef HAVE_INET_PTON
672 int inet_pton(int af, const char* src, void* dst);
673 #endif /* HAVE_INET_PTON */
674 #ifndef HAVE_INET_NTOP
675 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
676 #endif
677 #ifndef HAVE_INET_ATON
678 int inet_aton(const char *cp, struct in_addr *addr);
679 #endif
680 #ifndef HAVE_MEMMOVE
681 void *memmove(void *dest, const void *src, size_t n);
682 #endif
683 #ifndef HAVE_STRLCPY
684 size_t strlcpy(char *dst, const char *src, size_t siz);
685 #endif
686 
687 #ifdef USE_WINSOCK
688 #define SOCK_INVALID INVALID_SOCKET
689 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0)
690 #else
691 #define SOCK_INVALID -1
692 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0)
693 #endif
694 
695 #ifdef __cplusplus
696 }
697 #endif
698 #ifndef HAVE_GETADDRINFO
699 #include "compat/fake-rfc2553.h"
700 #endif
701 #ifndef HAVE_STRTOUL
702 #define strtoul (unsigned long)strtol
703 #endif
704 
int ldns_b64_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize)
int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize)
int ldns_dname_compare_v(const void *a, const void *b)
Given in dnssec_zone.c, also used in dnssec_sign.c:w.
Definition: dnssec_zone.c:910