logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

config.h (11823B)


  1. #define ATTR_NORETURN __attribute__((noreturn))
  2. #define ATTR_WEAK __attribute__((weak))
  3. #define CHROOT_DIR "/etc/unbound"
  4. /* #undef CLIENT_SUBNET */
  5. /* #undef COMPAT_SHA512 */
  6. #define CONFCMDLINE "--prefix= --with-bearssl --disable-ed25519 --disable-ed448"
  7. #define CONFIGFILE "/etc/unbound/unbound.conf"
  8. /* #undef DARWIN_BROKEN_SETREUID */
  9. /* #undef DEPRECATED_DAEMON */
  10. /* #undef DEPRECATE_RSA_1024 */
  11. /* #undef DISABLE_EXPLICIT_PORT_RANDOMISATION */
  12. /* #undef DNSTAP_SOCKET_PATH */
  13. /* #undef ENABLE_LOCK_CHECKS */
  14. /* #undef EXPORT_ALL_SYMBOLS */
  15. #define HAVE_ACCEPT4 1
  16. /* #undef HAVE_ARC4RANDOM */
  17. /* #undef HAVE_ARC4RANDOM_UNIFORM */
  18. #define HAVE_ARPA_INET_H 1
  19. #define HAVE_ATTR_FORMAT 1
  20. #define HAVE_ATTR_NORETURN 1
  21. #define HAVE_ATTR_UNUSED 1
  22. #define HAVE_ATTR_WEAK 1
  23. #define HAVE_BE64TOH 1
  24. #define HAVE_BEARSSL 1
  25. /* #undef HAVE_BIO_SET_CALLBACK_EX */
  26. /* #undef HAVE_BSD_STDLIB_H */
  27. /* #undef HAVE_BSD_STRING_H */
  28. #define HAVE_CHOWN 1
  29. #define HAVE_CHROOT 1
  30. /* #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA */
  31. /* #undef HAVE_CRYPTO_THREADID_SET_CALLBACK */
  32. #define HAVE_CTIME_R 1
  33. #define HAVE_DAEMON 1
  34. /* #undef HAVE_DECL_ARC4RANDOM */
  35. /* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */
  36. /* #undef HAVE_DECL_EVSIGNAL_ASSIGN */
  37. #define HAVE_DECL_INET_NTOP 1
  38. #define HAVE_DECL_INET_PTON 1
  39. /* #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW */
  40. /* #undef HAVE_DECL_NID_ED25519 */
  41. /* #undef HAVE_DECL_NID_ED448 */
  42. /* #undef HAVE_DECL_NID_SECP384R1 */
  43. /* #undef HAVE_DECL_NID_X9_62_PRIME256V1 */
  44. #define HAVE_DECL_REALLOCARRAY 1
  45. /* #undef HAVE_DECL_REDISCONNECT */
  46. /* #undef HAVE_DECL_SK_SSL_COMP_POP_FREE */
  47. /* #undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS */
  48. /* #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO */
  49. /* #undef HAVE_DECL_STRLCAT */
  50. /* #undef HAVE_DECL_STRLCPY */
  51. #define HAVE_DECL_XML_STOPPARSER 1
  52. #define HAVE_DLFCN_H 1
  53. /* #undef HAVE_DSA_SIG_SET0 */
  54. #define HAVE_ENDIAN_H 1
  55. #define HAVE_ENDPROTOENT 1
  56. #define HAVE_ENDPWENT 1
  57. #define HAVE_ENDSERVENT 1
  58. /* #undef HAVE_ENGINE_CLEANUP */
  59. /* #undef HAVE_ERR_FREE_STRINGS */
  60. /* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */
  61. /* #undef HAVE_EVENT_ASSIGN */
  62. /* #undef HAVE_EVENT_BASE_FREE */
  63. /* #undef HAVE_EVENT_BASE_GET_METHOD */
  64. /* #undef HAVE_EVENT_BASE_NEW */
  65. /* #undef HAVE_EVENT_BASE_ONCE */
  66. /* #undef HAVE_EVENT_H */
  67. /* #undef HAVE_EVP_AES_256_CBC */
  68. /* #undef HAVE_EVP_CLEANUP */
  69. /* #undef HAVE_EVP_DIGESTVERIFY */
  70. /* #undef HAVE_EVP_DSS1 */
  71. /* #undef HAVE_EVP_ENCRYPTINIT_EX */
  72. /* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */
  73. /* #undef HAVE_EVP_MD_CTX_NEW */
  74. /* #undef HAVE_EVP_SHA1 */
  75. /* #undef HAVE_EVP_SHA256 */
  76. /* #undef HAVE_EVP_SHA512 */
  77. /* #undef HAVE_EV_DEFAULT_LOOP */
  78. /* #undef HAVE_EV_LOOP */
  79. #define HAVE_EXPAT_H 1
  80. #define HAVE_EXPLICIT_BZERO 1
  81. #define HAVE_FCNTL 1
  82. /* #undef HAVE_FIPS_MODE */
  83. #define HAVE_FORK 1
  84. #define HAVE_FSEEKO 1
  85. #define HAVE_FSYNC 1
  86. #define HAVE_GETADDRINFO 1
  87. /* #undef HAVE_GETAUXVAL */
  88. #define HAVE_GETENTROPY 1
  89. #define HAVE_GETIFADDRS 1
  90. #define HAVE_GETOPT_H 1
  91. #define HAVE_GETPWNAM 1
  92. #define HAVE_GETRLIMIT 1
  93. #define HAVE_GLOB 1
  94. #define HAVE_GLOB_H 1
  95. #define HAVE_GMTIME_R 1
  96. #define HAVE_GRP_H 1
  97. /* #undef HAVE_HIREDIS_HIREDIS_H */
  98. /* #undef HAVE_HMAC_INIT_EX */
  99. #define HAVE_HTOBE64 1
  100. #define HAVE_IFADDRS_H 1
  101. #define HAVE_IF_NAMETOINDEX 1
  102. #define HAVE_INET_ATON 1
  103. #define HAVE_INET_NTOP 1
  104. #define HAVE_INET_PTON 1
  105. #define HAVE_INITGROUPS 1
  106. #define HAVE_INTTYPES_H 1
  107. /* #undef HAVE_IOCTLSOCKET */
  108. /* #undef HAVE_IPHLPAPI_H */
  109. #define HAVE_ISBLANK 1
  110. #define HAVE_KILL 1
  111. /* #undef HAVE_LIBBSD */
  112. /* #undef HAVE_LIBKERN_OSBYTEORDER_H */
  113. /* #undef HAVE_LIBRESSL */
  114. #define HAVE_LOCALTIME_R 1
  115. /* #undef HAVE_LOGIN_CAP_H */
  116. #define HAVE_MALLOC 1
  117. #define HAVE_MEMMOVE 1
  118. #define HAVE_MEMORY_H 1
  119. #define HAVE_NETDB_H 1
  120. #define HAVE_NETINET_IN_H 1
  121. #define HAVE_NETINET_TCP_H 1
  122. /* #undef HAVE_NETTLE */
  123. /* #undef HAVE_NETTLE_DSA_COMPAT_H */
  124. /* #undef HAVE_NETTLE_EDDSA_H */
  125. #define HAVE_NET_IF_H 1
  126. /* #undef HAVE_NGHTTP2 */
  127. /* #undef HAVE_NGHTTP2_NGHTTP2_H */
  128. /* #undef HAVE_NSS */
  129. /* #undef HAVE_OPENSSL_ADD_ALL_DIGESTS */
  130. /* #undef HAVE_OPENSSL_BN_H */
  131. /* #undef HAVE_OPENSSL_CONFIG */
  132. /* #undef HAVE_OPENSSL_CONF_H */
  133. /* #undef HAVE_OPENSSL_CORE_NAMES_H */
  134. /* #undef HAVE_OPENSSL_DH_H */
  135. /* #undef HAVE_OPENSSL_DSA_H */
  136. /* #undef HAVE_OPENSSL_ENGINE_H */
  137. /* #undef HAVE_OPENSSL_ERR_H */
  138. /* #undef HAVE_OPENSSL_INIT_CRYPTO */
  139. /* #undef HAVE_OPENSSL_INIT_SSL */
  140. /* #undef HAVE_OPENSSL_PARAM_BUILD_H */
  141. /* #undef HAVE_OPENSSL_RAND_H */
  142. /* #undef HAVE_OPENSSL_RSA_H */
  143. /* #undef HAVE_OPENSSL_SSL_H */
  144. /* #undef HAVE_OSSL_PARAM_BLD_NEW */
  145. #define HAVE_PTHREAD 1
  146. #define HAVE_PTHREAD_PRIO_INHERIT 1
  147. #define HAVE_PTHREAD_RWLOCK_T 1
  148. #define HAVE_PTHREAD_SPINLOCK_T 1
  149. #define HAVE_PWD_H 1
  150. /* #undef HAVE_PYTHON */
  151. #define HAVE_RANDOM 1
  152. /* #undef HAVE_RAND_CLEANUP */
  153. #define HAVE_REALLOCARRAY 1
  154. #define HAVE_RECVMSG 1
  155. #define HAVE_SENDMSG 1
  156. /* #undef HAVE_SETREGID */
  157. #define HAVE_SETRESGID 1
  158. #define HAVE_SETRESUID 1
  159. /* #undef HAVE_SETREUID */
  160. #define HAVE_SETRLIMIT 1
  161. #define HAVE_SETSID 1
  162. /* #undef HAVE_SETUSERCONTEXT */
  163. /* #undef HAVE_SHA512_UPDATE */
  164. #define HAVE_SHMGET 1
  165. #define HAVE_SIGPROCMASK 1
  166. #define HAVE_SLEEP 1
  167. #define HAVE_SNPRINTF 1
  168. #define HAVE_SOCKETPAIR 1
  169. /* #undef HAVE_SOLARIS_THREADS */
  170. #define HAVE_SRANDOM 1
  171. /* #undef HAVE_SSL */
  172. /* #undef HAVE_SSL_CTX_SET_ALPN_PROTOS */
  173. /* #undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB */
  174. /* #undef HAVE_SSL_CTX_SET_CIPHERSUITES */
  175. /* #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL */
  176. /* #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB */
  177. /* #undef HAVE_SSL_GET0_ALPN_SELECTED */
  178. /* #undef HAVE_SSL_GET0_PEERNAME */
  179. /* #undef HAVE_SSL_GET1_PEER_CERTIFICATE */
  180. /* #undef HAVE_SSL_SET1_HOST */
  181. #define HAVE_STDARG_H 1
  182. #define HAVE_STDBOOL_H 1
  183. #define HAVE_STDINT_H 1
  184. #define HAVE_STDLIB_H 1
  185. #define HAVE_STRFTIME 1
  186. #define HAVE_STRINGS_H 1
  187. #define HAVE_STRING_H 1
  188. #define HAVE_STRLCAT 1
  189. #define HAVE_STRLCPY 1
  190. #define HAVE_STRPTIME 1
  191. #define HAVE_STRSEP 1
  192. #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
  193. /* #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN */
  194. /* #undef HAVE_SWIG */
  195. /* #undef HAVE_SYSLOG_H */
  196. /* #undef HAVE_SYSTEMD */
  197. /* #undef HAVE_SYS_ENDIAN_H */
  198. #define HAVE_SYS_IPC_H 1
  199. #define HAVE_SYS_PARAM_H 1
  200. #define HAVE_SYS_RESOURCE_H 1
  201. #define HAVE_SYS_SELECT_H 1
  202. /* #undef HAVE_SYS_SHA2_H */
  203. #define HAVE_SYS_SHM_H 1
  204. #define HAVE_SYS_SOCKET_H 1
  205. #define HAVE_SYS_STAT_H 1
  206. /* #undef HAVE_SYS_SYSCTL_H */
  207. #define HAVE_SYS_TYPES_H 1
  208. #define HAVE_SYS_UIO_H 1
  209. #define HAVE_SYS_UN_H 1
  210. #define HAVE_SYS_WAIT_H 1
  211. /* #undef HAVE_TARGETCONDITIONALS_H */
  212. #define HAVE_TIME_H 1
  213. #define HAVE_TZSET 1
  214. #define HAVE_UNISTD_H 1
  215. #define HAVE_USLEEP 1
  216. #define HAVE_VFORK 1
  217. /* #undef HAVE_VFORK_H */
  218. /* #undef HAVE_WINDOWS_H */
  219. /* #undef HAVE_WINDOWS_THREADS */
  220. /* #undef HAVE_WINSOCK2_H */
  221. #define HAVE_WORKING_FORK 1
  222. #define HAVE_WORKING_VFORK 1
  223. #define HAVE_WRITEV 1
  224. /* #undef HAVE_WS2TCPIP_H */
  225. /* #undef HAVE_X509_VERIFY_PARAM_SET1_HOST */
  226. /* #undef HAVE__BEGINTHREADEX */
  227. /* #undef HMAC_INIT_EX_RETURNS_VOID */
  228. #define LEX_HAS_YYLEX_DESTROY 1
  229. #define LT_OBJDIR ".libs/"
  230. #define MAXSYSLOGMSGLEN 10240
  231. /* #undef MEMCMP_IS_BROKEN */
  232. /* #undef MKDIR_HAS_ONE_ARG */
  233. /* #undef NONBLOCKING_IS_BROKEN */
  234. /* #undef OMITTED__D_ALL_SOURCE */
  235. /* #undef OMITTED__D_BSD_SOURCE */
  236. /* #undef OMITTED__D_DEFAULT_SOURCE */
  237. #define OMITTED__D_GNU_SOURCE 1
  238. /* #undef OMITTED__D_LARGEFILE_SOURCE_1 */
  239. /* #undef OMITTED__D_POSIX_C_SOURCE_200112 */
  240. /* #undef OMITTED__D_XOPEN_SOURCE_600 */
  241. /* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */
  242. /* #undef OMITTED__D__EXTENSIONS__ */
  243. #define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues"
  244. #define PACKAGE_NAME "unbound"
  245. #define PACKAGE_STRING "unbound 1.14.0"
  246. #define PACKAGE_TARNAME "unbound"
  247. #define PACKAGE_URL ""
  248. #define PACKAGE_VERSION "1.14.0"
  249. #define PIDFILE ""
  250. /* #undef PTHREAD_CREATE_JOINABLE */
  251. #define RETSIGTYPE void
  252. #define REUSEPORT_DEFAULT 1
  253. #define ROOT_ANCHOR_FILE "/etc/unbound/root.key"
  254. #define ROOT_CERT_FILE "/etc/unbound/icannbundle.pem"
  255. #define RSRC_PACKAGE_VERSION 1,14,0,0
  256. #define RUN_DIR "/etc/unbound"
  257. #define SHARE_DIR "/etc/unbound"
  258. #define SIZEOF_TIME_T 8
  259. /* #undef SNPRINTF_RET_BROKEN */
  260. /* #undef SODIUM_MISUSE_HANDLER */
  261. #define STDC_HEADERS 1
  262. #define STRPTIME_WORKS 1
  263. /* #undef UB_ON_WINDOWS */
  264. #define UB_SYSLOG_FACILITY LOG_DAEMON
  265. #define UB_USERNAME "unbound"
  266. /* #undef UNBOUND_ALLOC_LITE */
  267. /* #undef UNBOUND_ALLOC_NONREGIONAL */
  268. /* #undef UNBOUND_ALLOC_STATS */
  269. /* #undef UNBOUND_DEBUG */
  270. /* #undef USE_CACHEDB */
  271. /* #undef USE_DNSCRYPT */
  272. /* #undef USE_DNSCRYPT_XCHACHA20 */
  273. /* #undef USE_DNSTAP */
  274. /* #undef USE_DSA */
  275. #define USE_ECDSA 1
  276. /* #undef USE_ECDSA_EVP_WORKAROUND */
  277. /* #undef USE_ED25519 */
  278. /* #undef USE_ED448 */
  279. /* #undef USE_GOST */
  280. /* #undef USE_IPSECMOD */
  281. /* #undef USE_IPSET */
  282. /* #undef USE_LIBEVENT */
  283. /* #undef USE_LINUX_IP_LOCAL_PORT_RANGE */
  284. #define USE_MINI_EVENT 1
  285. /* #undef USE_MSG_FASTOPEN */
  286. /* #undef USE_OSX_MSG_FASTOPEN */
  287. /* #undef USE_REDIS */
  288. #define USE_SHA1 1
  289. #define USE_SHA2 1
  290. #define _GNU_SOURCE 1
  291. /* #undef USE_TCP_FASTOPEN */
  292. /* #undef USE_WINSOCK */
  293. #define WINVER 0x0502
  294. /* #undef WITH_DYNLIBMODULE */
  295. /* #undef WITH_PYTHONMODULE */
  296. /* #undef WITH_PYUNBOUND */
  297. /* #undef YYTEXT_POINTER */
  298. /* #undef _FILE_OFFSET_BITS */
  299. /* #undef _LARGEFILE_SOURCE */
  300. /* #undef _LARGE_FILES */
  301. /* #undef _MINIX */
  302. /* #undef _NETBSD_SOURCE */
  303. /* #undef _POSIX_1_SOURCE */
  304. /* #undef _POSIX_SOURCE */
  305. /* #undef const */
  306. /* #undef gid_t */
  307. /* #undef in_addr_t */
  308. /* #undef in_port_t */
  309. #ifndef __cplusplus
  310. /* #undef inline */
  311. #endif
  312. /* #undef int16_t */
  313. /* #undef int32_t */
  314. /* #undef int64_t */
  315. /* #undef int8_t */
  316. /* #undef malloc */
  317. /* #undef off_t */
  318. /* #undef pid_t */
  319. /* #undef rlim_t */
  320. /* #undef size_t */
  321. /* #undef socklen_t */
  322. /* #undef ssize_t */
  323. /* #undef u_char */
  324. /* #undef uid_t */
  325. /* #undef uint16_t */
  326. /* #undef uint32_t */
  327. /* #undef uint64_t */
  328. /* #undef uint8_t */
  329. /* #undef vfork */
  330. #ifndef UNBOUND_DEBUG
  331. # ifndef NDEBUG
  332. # define NDEBUG
  333. # endif
  334. #endif
  335. #define USE_SLDNS 1
  336. #ifdef HAVE_SSL
  337. # define LDNS_BUILD_CONFIG_HAVE_SSL 1
  338. #endif
  339. #include <stdio.h>
  340. #include <string.h>
  341. #include <unistd.h>
  342. #include <assert.h>
  343. #include <stdlib.h>
  344. #include <stddef.h>
  345. #include <stdarg.h>
  346. #include <stdint.h>
  347. #include <errno.h>
  348. #if HAVE_SYS_PARAM_H
  349. #include <sys/param.h>
  350. #endif
  351. #include <sys/socket.h>
  352. #include <sys/uio.h>
  353. #include <netinet/in.h>
  354. #include <netinet/tcp.h>
  355. #include <arpa/inet.h>
  356. #ifdef HAVE_WINSOCK2_H
  357. #include <winsock2.h>
  358. #endif
  359. #ifdef HAVE_WS2TCPIP_H
  360. #include <ws2tcpip.h>
  361. #endif
  362. #ifndef USE_WINSOCK
  363. #define ARG_LL "%ll"
  364. #else
  365. #define ARG_LL "%I64"
  366. #endif
  367. #ifdef HAVE_ATTR_FORMAT
  368. # define ATTR_FORMAT(archetype, string_index, first_to_check) \
  369. __attribute__ ((format (archetype, string_index, first_to_check)))
  370. #else /* !HAVE_ATTR_FORMAT */
  371. # define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
  372. #endif /* !HAVE_ATTR_FORMAT */
  373. #if defined(DOXYGEN)
  374. # define ATTR_UNUSED(x) x
  375. #elif defined(__cplusplus)
  376. # define ATTR_UNUSED(x)
  377. #elif defined(HAVE_ATTR_UNUSED)
  378. # define ATTR_UNUSED(x) x __attribute__((unused))
  379. #else /* !HAVE_ATTR_UNUSED */
  380. # define ATTR_UNUSED(x) x
  381. #endif /* !HAVE_ATTR_UNUSED */
  382. #ifndef MAXHOSTNAMELEN
  383. #define MAXHOSTNAMELEN 256
  384. #endif
  385. #ifdef HAVE_WINSOCK2_H
  386. #define FD_SET_T (u_int)
  387. #else
  388. #define FD_SET_T
  389. #endif
  390. #ifndef IPV6_MIN_MTU
  391. #define IPV6_MIN_MTU 1280
  392. #endif /* IPV6_MIN_MTU */
  393. #if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
  394. # define LIBEVENT_SIGNAL_PROBLEM 1
  395. #endif
  396. #ifndef CHECKED_INET6
  397. # define CHECKED_INET6
  398. # ifdef AF_INET6
  399. # define INET6
  400. # else
  401. # define AF_INET6 28
  402. # endif
  403. #endif /* CHECKED_INET6 */
  404. #define UNBOUND_DNS_PORT 53
  405. #define UNBOUND_DNS_OVER_TLS_PORT 853
  406. #define UNBOUND_DNS_OVER_HTTPS_PORT 443
  407. #define UNBOUND_CONTROL_PORT 8953
  408. #define UNBOUND_CONTROL_VERSION 1