visaljs 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/README.md +12 -4
  2. package/THIRD_PARTY_LICENSES +31 -1
  3. package/cli.js +3745 -890
  4. package/node/include/js_node.h +12 -1
  5. package/node/prelude/_http_common.js +29 -0
  6. package/node/prelude/async_hooks.js +50 -11
  7. package/node/prelude/child_process.js +31 -4
  8. package/node/prelude/console.js +311 -143
  9. package/node/prelude/crypto.js +6 -4
  10. package/node/prelude/dgram.js +1169 -0
  11. package/node/prelude/diagnostics_channel.js +3 -1
  12. package/node/prelude/dns.js +250 -45
  13. package/node/prelude/dns_promises.js +8 -2
  14. package/node/prelude/fs_promises.js +9 -1
  15. package/node/prelude/http.js +405 -94
  16. package/node/prelude/https.js +13 -4
  17. package/node/prelude/internal/console_class.js +7 -0
  18. package/node/prelude/internal/console_global.js +25 -0
  19. package/node/prelude/internal/crypto/key_encryption.js +217 -0
  20. package/node/prelude/internal/crypto/keys.js +161 -26
  21. package/node/prelude/internal/crypto/random.js +24 -0
  22. package/node/prelude/internal/crypto/util.js +2 -1
  23. package/node/prelude/internal/crypto_x509.js +161 -0
  24. package/node/prelude/internal/dns_classes.js +6 -0
  25. package/node/prelude/internal/dns_resolver.js +371 -0
  26. package/node/prelude/internal/errors.js +9 -0
  27. package/node/prelude/internal/events_on.js +82 -37
  28. package/node/prelude/internal/features.js +8 -4
  29. package/node/prelude/internal/fs_filehandle.js +10 -4
  30. package/node/prelude/internal/http_chars.ts +22 -0
  31. package/node/prelude/internal/perf_histogram.js +1 -1
  32. package/node/prelude/internal/process_more.js +32 -17
  33. package/node/prelude/internal/process_signals.js +8 -2
  34. package/node/prelude/internal/punycode.ts +163 -0
  35. package/node/prelude/internal/readline.js +648 -274
  36. package/node/prelude/internal/readline_editor.js +1240 -0
  37. package/node/prelude/internal/string_width.js +43 -0
  38. package/node/prelude/internal/tls/common.js +145 -33
  39. package/node/prelude/internal/tls/wrap.js +182 -49
  40. package/node/prelude/internal/tls/x509.js +4 -1
  41. package/node/prelude/internal/udp.js +177 -0
  42. package/node/prelude/net.js +30 -14
  43. package/node/prelude/os.js +24 -6
  44. package/node/prelude/perf_hooks.js +37 -2
  45. package/node/prelude/punycode.js +2 -130
  46. package/node/prelude/readline.js +113 -4
  47. package/node/prelude/readline_promises.js +56 -32
  48. package/node/prelude/tls.js +21 -4
  49. package/node/prelude/util.js +3 -16
  50. package/node/src/host_dns.c +623 -0
  51. package/node/src/host_http.c +12 -0
  52. package/node/src/host_net.c +46 -0
  53. package/node/src/host_os.c +1 -6
  54. package/node/src/host_sys.c +79 -0
  55. package/node/src/host_udp.c +418 -0
  56. package/node/third_party/c-ares/LICENSE.md +24 -0
  57. package/node/third_party/c-ares/config/darwin/ares_config.h +573 -0
  58. package/node/third_party/c-ares/config/freebsd/ares_config.h +573 -0
  59. package/node/third_party/c-ares/config/linux/ares_config.h +573 -0
  60. package/node/third_party/c-ares/config/openbsd/ares_config.h +583 -0
  61. package/node/third_party/c-ares/include/ares.h +1237 -0
  62. package/node/third_party/c-ares/include/ares_build.h +202 -0
  63. package/node/third_party/c-ares/include/ares_dns.h +127 -0
  64. package/node/third_party/c-ares/include/ares_dns_record.h +1119 -0
  65. package/node/third_party/c-ares/include/ares_nameser.h +510 -0
  66. package/node/third_party/c-ares/include/ares_version.h +47 -0
  67. package/node/third_party/c-ares/src/lib/ares_addrinfo2hostent.c +305 -0
  68. package/node/third_party/c-ares/src/lib/ares_addrinfo_localhost.c +245 -0
  69. package/node/third_party/c-ares/src/lib/ares_android.c +496 -0
  70. package/node/third_party/c-ares/src/lib/ares_android.h +38 -0
  71. package/node/third_party/c-ares/src/lib/ares_cancel.c +87 -0
  72. package/node/third_party/c-ares/src/lib/ares_close_sockets.c +137 -0
  73. package/node/third_party/c-ares/src/lib/ares_conn.c +511 -0
  74. package/node/third_party/c-ares/src/lib/ares_conn.h +202 -0
  75. package/node/third_party/c-ares/src/lib/ares_cookie.c +461 -0
  76. package/node/third_party/c-ares/src/lib/ares_data.c +168 -0
  77. package/node/third_party/c-ares/src/lib/ares_data.h +92 -0
  78. package/node/third_party/c-ares/src/lib/ares_destroy.c +159 -0
  79. package/node/third_party/c-ares/src/lib/ares_free_hostent.c +54 -0
  80. package/node/third_party/c-ares/src/lib/ares_free_string.c +33 -0
  81. package/node/third_party/c-ares/src/lib/ares_freeaddrinfo.c +67 -0
  82. package/node/third_party/c-ares/src/lib/ares_getaddrinfo.c +806 -0
  83. package/node/third_party/c-ares/src/lib/ares_getenv.c +38 -0
  84. package/node/third_party/c-ares/src/lib/ares_getenv.h +34 -0
  85. package/node/third_party/c-ares/src/lib/ares_gethostbyaddr.c +229 -0
  86. package/node/third_party/c-ares/src/lib/ares_gethostbyname.c +341 -0
  87. package/node/third_party/c-ares/src/lib/ares_getnameinfo.c +437 -0
  88. package/node/third_party/c-ares/src/lib/ares_hosts_file.c +960 -0
  89. package/node/third_party/c-ares/src/lib/ares_inet_net_pton.h +31 -0
  90. package/node/third_party/c-ares/src/lib/ares_init.c +631 -0
  91. package/node/third_party/c-ares/src/lib/ares_ipv6.h +115 -0
  92. package/node/third_party/c-ares/src/lib/ares_library_init.c +190 -0
  93. package/node/third_party/c-ares/src/lib/ares_metrics.c +261 -0
  94. package/node/third_party/c-ares/src/lib/ares_options.c +492 -0
  95. package/node/third_party/c-ares/src/lib/ares_parse_into_addrinfo.c +179 -0
  96. package/node/third_party/c-ares/src/lib/ares_private.h +648 -0
  97. package/node/third_party/c-ares/src/lib/ares_process.c +1649 -0
  98. package/node/third_party/c-ares/src/lib/ares_qcache.c +442 -0
  99. package/node/third_party/c-ares/src/lib/ares_query.c +151 -0
  100. package/node/third_party/c-ares/src/lib/ares_search.c +623 -0
  101. package/node/third_party/c-ares/src/lib/ares_send.c +300 -0
  102. package/node/third_party/c-ares/src/lib/ares_set_socket_functions.c +590 -0
  103. package/node/third_party/c-ares/src/lib/ares_setup.h +224 -0
  104. package/node/third_party/c-ares/src/lib/ares_socket.c +427 -0
  105. package/node/third_party/c-ares/src/lib/ares_socket.h +163 -0
  106. package/node/third_party/c-ares/src/lib/ares_sortaddrinfo.c +447 -0
  107. package/node/third_party/c-ares/src/lib/ares_strerror.c +91 -0
  108. package/node/third_party/c-ares/src/lib/ares_sysconfig.c +642 -0
  109. package/node/third_party/c-ares/src/lib/ares_sysconfig_files.c +851 -0
  110. package/node/third_party/c-ares/src/lib/ares_sysconfig_mac.c +373 -0
  111. package/node/third_party/c-ares/src/lib/ares_sysconfig_win.c +673 -0
  112. package/node/third_party/c-ares/src/lib/ares_timeout.c +162 -0
  113. package/node/third_party/c-ares/src/lib/ares_update_servers.c +1376 -0
  114. package/node/third_party/c-ares/src/lib/ares_version.c +36 -0
  115. package/node/third_party/c-ares/src/lib/config-dos.h +114 -0
  116. package/node/third_party/c-ares/src/lib/config-win32.h +396 -0
  117. package/node/third_party/c-ares/src/lib/dsa/ares_array.c +409 -0
  118. package/node/third_party/c-ares/src/lib/dsa/ares_htable.c +451 -0
  119. package/node/third_party/c-ares/src/lib/dsa/ares_htable.h +174 -0
  120. package/node/third_party/c-ares/src/lib/dsa/ares_htable_asvp.c +224 -0
  121. package/node/third_party/c-ares/src/lib/dsa/ares_htable_dict.c +230 -0
  122. package/node/third_party/c-ares/src/lib/dsa/ares_htable_strvp.c +210 -0
  123. package/node/third_party/c-ares/src/lib/dsa/ares_htable_szvp.c +188 -0
  124. package/node/third_party/c-ares/src/lib/dsa/ares_htable_vpstr.c +186 -0
  125. package/node/third_party/c-ares/src/lib/dsa/ares_htable_vpvp.c +194 -0
  126. package/node/third_party/c-ares/src/lib/dsa/ares_llist.c +385 -0
  127. package/node/third_party/c-ares/src/lib/dsa/ares_slist.c +479 -0
  128. package/node/third_party/c-ares/src/lib/dsa/ares_slist.h +207 -0
  129. package/node/third_party/c-ares/src/lib/event/ares_event.h +191 -0
  130. package/node/third_party/c-ares/src/lib/event/ares_event_configchg.c +746 -0
  131. package/node/third_party/c-ares/src/lib/event/ares_event_epoll.c +192 -0
  132. package/node/third_party/c-ares/src/lib/event/ares_event_kqueue.c +248 -0
  133. package/node/third_party/c-ares/src/lib/event/ares_event_poll.c +140 -0
  134. package/node/third_party/c-ares/src/lib/event/ares_event_select.c +159 -0
  135. package/node/third_party/c-ares/src/lib/event/ares_event_thread.c +575 -0
  136. package/node/third_party/c-ares/src/lib/event/ares_event_wake_pipe.c +172 -0
  137. package/node/third_party/c-ares/src/lib/event/ares_event_win32.c +981 -0
  138. package/node/third_party/c-ares/src/lib/event/ares_event_win32.h +161 -0
  139. package/node/third_party/c-ares/src/lib/include/ares_array.h +276 -0
  140. package/node/third_party/c-ares/src/lib/include/ares_buf.h +732 -0
  141. package/node/third_party/c-ares/src/lib/include/ares_htable_asvp.h +130 -0
  142. package/node/third_party/c-ares/src/lib/include/ares_htable_dict.h +123 -0
  143. package/node/third_party/c-ares/src/lib/include/ares_htable_strvp.h +130 -0
  144. package/node/third_party/c-ares/src/lib/include/ares_htable_szvp.h +118 -0
  145. package/node/third_party/c-ares/src/lib/include/ares_htable_vpstr.h +111 -0
  146. package/node/third_party/c-ares/src/lib/include/ares_htable_vpvp.h +128 -0
  147. package/node/third_party/c-ares/src/lib/include/ares_llist.h +239 -0
  148. package/node/third_party/c-ares/src/lib/include/ares_mem.h +41 -0
  149. package/node/third_party/c-ares/src/lib/include/ares_str.h +261 -0
  150. package/node/third_party/c-ares/src/lib/inet_net_pton.c +451 -0
  151. package/node/third_party/c-ares/src/lib/inet_ntop.c +219 -0
  152. package/node/third_party/c-ares/src/lib/legacy/ares_create_query.c +78 -0
  153. package/node/third_party/c-ares/src/lib/legacy/ares_expand_name.c +99 -0
  154. package/node/third_party/c-ares/src/lib/legacy/ares_expand_string.c +107 -0
  155. package/node/third_party/c-ares/src/lib/legacy/ares_fds.c +80 -0
  156. package/node/third_party/c-ares/src/lib/legacy/ares_getsock.c +85 -0
  157. package/node/third_party/c-ares/src/lib/legacy/ares_parse_a_reply.c +107 -0
  158. package/node/third_party/c-ares/src/lib/legacy/ares_parse_aaaa_reply.c +109 -0
  159. package/node/third_party/c-ares/src/lib/legacy/ares_parse_caa_reply.c +137 -0
  160. package/node/third_party/c-ares/src/lib/legacy/ares_parse_mx_reply.c +110 -0
  161. package/node/third_party/c-ares/src/lib/legacy/ares_parse_naptr_reply.c +132 -0
  162. package/node/third_party/c-ares/src/lib/legacy/ares_parse_ns_reply.c +154 -0
  163. package/node/third_party/c-ares/src/lib/legacy/ares_parse_ptr_reply.c +213 -0
  164. package/node/third_party/c-ares/src/lib/legacy/ares_parse_soa_reply.c +115 -0
  165. package/node/third_party/c-ares/src/lib/legacy/ares_parse_srv_reply.c +114 -0
  166. package/node/third_party/c-ares/src/lib/legacy/ares_parse_txt_reply.c +144 -0
  167. package/node/third_party/c-ares/src/lib/legacy/ares_parse_uri_reply.c +113 -0
  168. package/node/third_party/c-ares/src/lib/record/ares_dns_mapping.c +982 -0
  169. package/node/third_party/c-ares/src/lib/record/ares_dns_multistring.c +309 -0
  170. package/node/third_party/c-ares/src/lib/record/ares_dns_multistring.h +72 -0
  171. package/node/third_party/c-ares/src/lib/record/ares_dns_name.c +736 -0
  172. package/node/third_party/c-ares/src/lib/record/ares_dns_parse.c +1360 -0
  173. package/node/third_party/c-ares/src/lib/record/ares_dns_private.h +273 -0
  174. package/node/third_party/c-ares/src/lib/record/ares_dns_record.c +1701 -0
  175. package/node/third_party/c-ares/src/lib/record/ares_dns_write.c +1229 -0
  176. package/node/third_party/c-ares/src/lib/str/ares_buf.c +1510 -0
  177. package/node/third_party/c-ares/src/lib/str/ares_str.c +562 -0
  178. package/node/third_party/c-ares/src/lib/str/ares_strsplit.c +90 -0
  179. package/node/third_party/c-ares/src/lib/str/ares_strsplit.h +51 -0
  180. package/node/third_party/c-ares/src/lib/thirdparty/apple/dnsinfo.h +122 -0
  181. package/node/third_party/c-ares/src/lib/util/ares_iface_ips.c +640 -0
  182. package/node/third_party/c-ares/src/lib/util/ares_iface_ips.h +140 -0
  183. package/node/third_party/c-ares/src/lib/util/ares_math.c +167 -0
  184. package/node/third_party/c-ares/src/lib/util/ares_math.h +58 -0
  185. package/node/third_party/c-ares/src/lib/util/ares_rand.c +389 -0
  186. package/node/third_party/c-ares/src/lib/util/ares_rand.h +36 -0
  187. package/node/third_party/c-ares/src/lib/util/ares_threads.c +613 -0
  188. package/node/third_party/c-ares/src/lib/util/ares_threads.h +60 -0
  189. package/node/third_party/c-ares/src/lib/util/ares_time.h +49 -0
  190. package/node/third_party/c-ares/src/lib/util/ares_timeval.c +95 -0
  191. package/node/third_party/c-ares/src/lib/util/ares_uri.c +1627 -0
  192. package/node/third_party/c-ares/src/lib/util/ares_uri.h +252 -0
  193. package/node/third_party/c-ares/src/lib/windows_port.c +29 -0
  194. package/package.json +1 -1
  195. package/prebuilt/darwin-arm64/cares-a6286c65ca9374a3.a +0 -0
  196. package/prebuilt/darwin-x64/cares-a6286c65ca9374a3.a +0 -0
  197. package/prebuilt/linux-arm64/cares-4ba05ac8e948af8e.a +0 -0
  198. package/prebuilt/linux-arm64-musl/cares-4ba05ac8e948af8e.a +0 -0
  199. package/prebuilt/linux-x64/cares-4ba05ac8e948af8e.a +0 -0
  200. package/prebuilt/linux-x64-musl/cares-4ba05ac8e948af8e.a +0 -0
  201. package/prebuilt/win32-x64/boringssl-ce573858472b7fc9.a +0 -0
  202. package/prebuilt/win32-x64/brotli-20d86a61f30baeb3.a +0 -0
  203. package/prebuilt/win32-x64/cares-49c9ec95162b912d.a +0 -0
  204. package/prebuilt/win32-x64/uv-b11bae65d7fced82.a +0 -0
  205. package/prebuilt/win32-x64/zlib-4ce2317a4c3f5fb5.a +0 -0
  206. package/prebuilt/win32-x64/zstd-015315ac7c784c73.a +0 -0
  207. package/runtime/include/js_buffer.h +185 -0
  208. package/runtime/include/js_builtins.h +58 -0
  209. package/runtime/include/js_crypto.h +11 -0
  210. package/runtime/include/js_exception.h +3 -0
  211. package/runtime/include/js_function.h +1 -1
  212. package/runtime/include/js_gc.h +13 -10
  213. package/runtime/include/js_jobs.h +2 -0
  214. package/runtime/include/js_object.h +79 -3
  215. package/runtime/include/js_ops.h +27 -0
  216. package/runtime/include/js_runtime.h +1 -0
  217. package/runtime/include/js_web.h +0 -3
  218. package/runtime/include/jscontext.h +8 -0
  219. package/runtime/src/builtins.c +17 -4
  220. package/runtime/src/crypto_internal.h +1 -0
  221. package/runtime/src/crypto_subtle.c +66 -7
  222. package/runtime/src/crypto_tls.c +265 -19
  223. package/runtime/src/function.c +37 -10
  224. package/runtime/src/gc.c +76 -93
  225. package/runtime/src/inspect.c +18 -1
  226. package/runtime/src/iterator.c +5 -1
  227. package/runtime/src/jobs.c +37 -22
  228. package/runtime/src/object.c +91 -8
  229. package/runtime/src/os.c +16 -6
  230. package/runtime/src/os.h +2 -0
  231. package/runtime/src/process.c +97 -10
  232. package/runtime/src/typedarray.c +23 -0
@@ -0,0 +1,510 @@
1
+ /* MIT License
2
+ *
3
+ * Copyright (c) Massachusetts Institute of Technology
4
+ * Copyright (c) Daniel Stenberg
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice (including the next
14
+ * paragraph) shall be included in all copies or substantial portions of the
15
+ * Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ *
25
+ * SPDX-License-Identifier: MIT
26
+ */
27
+
28
+ #ifndef ARES_NAMESER_H
29
+ #define ARES_NAMESER_H
30
+
31
+ #include "ares_build.h"
32
+
33
+ #ifdef CARES_HAVE_ARPA_NAMESER_H
34
+ # include <arpa/nameser.h>
35
+ #endif
36
+ #ifdef CARES_HAVE_ARPA_NAMESER_COMPAT_H
37
+ # include <arpa/nameser_compat.h>
38
+ #endif
39
+
40
+ /* ============================================================================
41
+ * arpa/nameser.h may or may not provide ALL of the below defines, so check
42
+ * each one individually and set if not
43
+ * ============================================================================
44
+ */
45
+
46
+ #ifndef NS_PACKETSZ
47
+ # define NS_PACKETSZ 512 /* maximum packet size */
48
+ #endif
49
+
50
+ #ifndef NS_MAXDNAME
51
+ # define NS_MAXDNAME 256 /* maximum domain name */
52
+ #endif
53
+
54
+ #ifndef NS_MAXCDNAME
55
+ # define NS_MAXCDNAME 255 /* maximum compressed domain name */
56
+ #endif
57
+
58
+ #ifndef NS_MAXLABEL
59
+ # define NS_MAXLABEL 63
60
+ #endif
61
+
62
+ #ifndef NS_HFIXEDSZ
63
+ # define NS_HFIXEDSZ 12 /* #/bytes of fixed data in header */
64
+ #endif
65
+
66
+ #ifndef NS_QFIXEDSZ
67
+ # define NS_QFIXEDSZ 4 /* #/bytes of fixed data in query */
68
+ #endif
69
+
70
+ #ifndef NS_RRFIXEDSZ
71
+ # define NS_RRFIXEDSZ 10 /* #/bytes of fixed data in r record */
72
+ #endif
73
+
74
+ #ifndef NS_INT16SZ
75
+ # define NS_INT16SZ 2
76
+ #endif
77
+
78
+ #ifndef NS_INADDRSZ
79
+ # define NS_INADDRSZ 4
80
+ #endif
81
+
82
+ #ifndef NS_IN6ADDRSZ
83
+ # define NS_IN6ADDRSZ 16
84
+ #endif
85
+
86
+ #ifndef NS_CMPRSFLGS
87
+ # define NS_CMPRSFLGS 0xc0 /* Flag bits indicating name compression. */
88
+ #endif
89
+
90
+ #ifndef NS_DEFAULTPORT
91
+ # define NS_DEFAULTPORT 53 /* For both TCP and UDP. */
92
+ #endif
93
+
94
+ /* ============================================================================
95
+ * arpa/nameser.h should provide these enumerations always, so if not found,
96
+ * provide them
97
+ * ============================================================================
98
+ */
99
+ #ifndef CARES_HAVE_ARPA_NAMESER_H
100
+
101
+ typedef enum __ns_class {
102
+ ns_c_invalid = 0, /* Cookie. */
103
+ ns_c_in = 1, /* Internet. */
104
+ ns_c_2 = 2, /* unallocated/unsupported. */
105
+ ns_c_chaos = 3, /* MIT Chaos-net. */
106
+ ns_c_hs = 4, /* MIT Hesiod. */
107
+ /* Query class values which do not appear in resource records */
108
+ ns_c_none = 254, /* for prereq. sections in update requests */
109
+ ns_c_any = 255, /* Wildcard match. */
110
+ ns_c_max = 65536
111
+ } ns_class;
112
+
113
+ typedef enum __ns_type {
114
+ ns_t_invalid = 0, /* Cookie. */
115
+ ns_t_a = 1, /* Host address. */
116
+ ns_t_ns = 2, /* Authoritative server. */
117
+ ns_t_md = 3, /* Mail destination. */
118
+ ns_t_mf = 4, /* Mail forwarder. */
119
+ ns_t_cname = 5, /* Canonical name. */
120
+ ns_t_soa = 6, /* Start of authority zone. */
121
+ ns_t_mb = 7, /* Mailbox domain name. */
122
+ ns_t_mg = 8, /* Mail group member. */
123
+ ns_t_mr = 9, /* Mail rename name. */
124
+ ns_t_null = 10, /* Null resource record. */
125
+ ns_t_wks = 11, /* Well known service. */
126
+ ns_t_ptr = 12, /* Domain name pointer. */
127
+ ns_t_hinfo = 13, /* Host information. */
128
+ ns_t_minfo = 14, /* Mailbox information. */
129
+ ns_t_mx = 15, /* Mail routing information. */
130
+ ns_t_txt = 16, /* Text strings. */
131
+ ns_t_rp = 17, /* Responsible person. */
132
+ ns_t_afsdb = 18, /* AFS cell database. */
133
+ ns_t_x25 = 19, /* X_25 calling address. */
134
+ ns_t_isdn = 20, /* ISDN calling address. */
135
+ ns_t_rt = 21, /* Router. */
136
+ ns_t_nsap = 22, /* NSAP address. */
137
+ ns_t_nsap_ptr = 23, /* Reverse NSAP lookup (deprecated). */
138
+ ns_t_sig = 24, /* Security signature. */
139
+ ns_t_key = 25, /* Security key. */
140
+ ns_t_px = 26, /* X.400 mail mapping. */
141
+ ns_t_gpos = 27, /* Geographical position (withdrawn). */
142
+ ns_t_aaaa = 28, /* Ip6 Address. */
143
+ ns_t_loc = 29, /* Location Information. */
144
+ ns_t_nxt = 30, /* Next domain (security). */
145
+ ns_t_eid = 31, /* Endpoint identifier. */
146
+ ns_t_nimloc = 32, /* Nimrod Locator. */
147
+ ns_t_srv = 33, /* Server Selection. */
148
+ ns_t_atma = 34, /* ATM Address */
149
+ ns_t_naptr = 35, /* Naming Authority PoinTeR */
150
+ ns_t_kx = 36, /* Key Exchange */
151
+ ns_t_cert = 37, /* Certification record */
152
+ ns_t_a6 = 38, /* IPv6 address (deprecates AAAA) */
153
+ ns_t_dname = 39, /* Non-terminal DNAME (for IPv6) */
154
+ ns_t_sink = 40, /* Kitchen sink (experimental) */
155
+ ns_t_opt = 41, /* EDNS0 option (meta-RR) */
156
+ ns_t_apl = 42, /* Address prefix list (RFC3123) */
157
+ ns_t_ds = 43, /* Delegation Signer (RFC4034) */
158
+ ns_t_sshfp = 44, /* SSH Key Fingerprint (RFC4255) */
159
+ ns_t_rrsig = 46, /* Resource Record Signature (RFC4034) */
160
+ ns_t_nsec = 47, /* Next Secure (RFC4034) */
161
+ ns_t_dnskey = 48, /* DNS Public Key (RFC4034) */
162
+ ns_t_tkey = 249, /* Transaction key */
163
+ ns_t_tsig = 250, /* Transaction signature. */
164
+ ns_t_ixfr = 251, /* Incremental zone transfer. */
165
+ ns_t_axfr = 252, /* Transfer zone of authority. */
166
+ ns_t_mailb = 253, /* Transfer mailbox records. */
167
+ ns_t_maila = 254, /* Transfer mail agent records. */
168
+ ns_t_any = 255, /* Wildcard match. */
169
+ ns_t_uri = 256, /* Uniform Resource Identifier (RFC7553) */
170
+ ns_t_caa = 257, /* Certification Authority Authorization. */
171
+ ns_t_max = 65536
172
+ } ns_type;
173
+
174
+ typedef enum __ns_opcode {
175
+ ns_o_query = 0, /* Standard query. */
176
+ ns_o_iquery = 1, /* Inverse query (deprecated/unsupported). */
177
+ ns_o_status = 2, /* Name server status query (unsupported). */
178
+ /* Opcode 3 is undefined/reserved. */
179
+ ns_o_notify = 4, /* Zone change notification. */
180
+ ns_o_update = 5, /* Zone update message. */
181
+ ns_o_max = 6
182
+ } ns_opcode;
183
+
184
+ typedef enum __ns_rcode {
185
+ ns_r_noerror = 0, /* No error occurred. */
186
+ ns_r_formerr = 1, /* Format error. */
187
+ ns_r_servfail = 2, /* Server failure. */
188
+ ns_r_nxdomain = 3, /* Name error. */
189
+ ns_r_notimpl = 4, /* Unimplemented. */
190
+ ns_r_refused = 5, /* Operation refused. */
191
+ /* these are for BIND_UPDATE */
192
+ ns_r_yxdomain = 6, /* Name exists */
193
+ ns_r_yxrrset = 7, /* RRset exists */
194
+ ns_r_nxrrset = 8, /* RRset does not exist */
195
+ ns_r_notauth = 9, /* Not authoritative for zone */
196
+ ns_r_notzone = 10, /* Zone of record different from zone section */
197
+ ns_r_max = 11,
198
+ /* The following are TSIG extended errors */
199
+ ns_r_badsig = 16,
200
+ ns_r_badkey = 17,
201
+ ns_r_badtime = 18
202
+ } ns_rcode;
203
+
204
+ #endif /* CARES_HAVE_ARPA_NAMESER_H */
205
+
206
+
207
+ /* ============================================================================
208
+ * arpa/nameser_compat.h typically sets these. However on some systems
209
+ * arpa/nameser.h does, but may not set all of them. Lets conditionally
210
+ * define each
211
+ * ============================================================================
212
+ */
213
+
214
+ #ifndef PACKETSZ
215
+ # define PACKETSZ NS_PACKETSZ
216
+ #endif
217
+
218
+ #ifndef MAXDNAME
219
+ # define MAXDNAME NS_MAXDNAME
220
+ #endif
221
+
222
+ #ifndef MAXCDNAME
223
+ # define MAXCDNAME NS_MAXCDNAME
224
+ #endif
225
+
226
+ #ifndef MAXLABEL
227
+ # define MAXLABEL NS_MAXLABEL
228
+ #endif
229
+
230
+ #ifndef HFIXEDSZ
231
+ # define HFIXEDSZ NS_HFIXEDSZ
232
+ #endif
233
+
234
+ #ifndef QFIXEDSZ
235
+ # define QFIXEDSZ NS_QFIXEDSZ
236
+ #endif
237
+
238
+ #ifndef RRFIXEDSZ
239
+ # define RRFIXEDSZ NS_RRFIXEDSZ
240
+ #endif
241
+
242
+ #ifndef INDIR_MASK
243
+ # define INDIR_MASK NS_CMPRSFLGS
244
+ #endif
245
+
246
+ #ifndef NAMESERVER_PORT
247
+ # define NAMESERVER_PORT NS_DEFAULTPORT
248
+ #endif
249
+
250
+
251
+ /* opcodes */
252
+ #ifndef O_QUERY
253
+ # define O_QUERY 0 /* ns_o_query */
254
+ #endif
255
+ #ifndef O_IQUERY
256
+ # define O_IQUERY 1 /* ns_o_iquery */
257
+ #endif
258
+ #ifndef O_STATUS
259
+ # define O_STATUS 2 /* ns_o_status */
260
+ #endif
261
+ #ifndef O_NOTIFY
262
+ # define O_NOTIFY 4 /* ns_o_notify */
263
+ #endif
264
+ #ifndef O_UPDATE
265
+ # define O_UPDATE 5 /* ns_o_update */
266
+ #endif
267
+
268
+
269
+ /* response codes */
270
+ #ifndef SERVFAIL
271
+ # define SERVFAIL ns_r_servfail
272
+ #endif
273
+ #ifndef NOTIMP
274
+ # define NOTIMP ns_r_notimpl
275
+ #endif
276
+ #ifndef REFUSED
277
+ # define REFUSED ns_r_refused
278
+ #endif
279
+ #if defined(_WIN32) && !defined(HAVE_ARPA_NAMESER_COMPAT_H) && defined(NOERROR)
280
+ # undef NOERROR /* it seems this is already defined in winerror.h */
281
+ #endif
282
+ #ifndef NOERROR
283
+ # define NOERROR ns_r_noerror
284
+ #endif
285
+ #ifndef FORMERR
286
+ # define FORMERR ns_r_formerr
287
+ #endif
288
+ #ifndef NXDOMAIN
289
+ # define NXDOMAIN ns_r_nxdomain
290
+ #endif
291
+ /* Non-standard response codes, use numeric values */
292
+ #ifndef YXDOMAIN
293
+ # define YXDOMAIN 6 /* ns_r_yxdomain */
294
+ #endif
295
+ #ifndef YXRRSET
296
+ # define YXRRSET 7 /* ns_r_yxrrset */
297
+ #endif
298
+ #ifndef NXRRSET
299
+ # define NXRRSET 8 /* ns_r_nxrrset */
300
+ #endif
301
+ #ifndef NOTAUTH
302
+ # define NOTAUTH 9 /* ns_r_notauth */
303
+ #endif
304
+ #ifndef NOTZONE
305
+ # define NOTZONE 10 /* ns_r_notzone */
306
+ #endif
307
+ #ifndef TSIG_BADSIG
308
+ # define TSIG_BADSIG 16 /* ns_r_badsig */
309
+ #endif
310
+ #ifndef TSIG_BADKEY
311
+ # define TSIG_BADKEY 17 /* ns_r_badkey */
312
+ #endif
313
+ #ifndef TSIG_BADTIME
314
+ # define TSIG_BADTIME 18 /* ns_r_badtime */
315
+ #endif
316
+
317
+
318
+ /* classes */
319
+ #ifndef C_IN
320
+ # define C_IN 1 /* ns_c_in */
321
+ #endif
322
+ #ifndef C_CHAOS
323
+ # define C_CHAOS 3 /* ns_c_chaos */
324
+ #endif
325
+ #ifndef C_HS
326
+ # define C_HS 4 /* ns_c_hs */
327
+ #endif
328
+ #ifndef C_NONE
329
+ # define C_NONE 254 /* ns_c_none */
330
+ #endif
331
+ #ifndef C_ANY
332
+ # define C_ANY 255 /* ns_c_any */
333
+ #endif
334
+
335
+
336
+ /* types */
337
+ #ifndef T_A
338
+ # define T_A 1 /* ns_t_a */
339
+ #endif
340
+ #ifndef T_NS
341
+ # define T_NS 2 /* ns_t_ns */
342
+ #endif
343
+ #ifndef T_MD
344
+ # define T_MD 3 /* ns_t_md */
345
+ #endif
346
+ #ifndef T_MF
347
+ # define T_MF 4 /* ns_t_mf */
348
+ #endif
349
+ #ifndef T_CNAME
350
+ # define T_CNAME 5 /* ns_t_cname */
351
+ #endif
352
+ #ifndef T_SOA
353
+ # define T_SOA 6 /* ns_t_soa */
354
+ #endif
355
+ #ifndef T_MB
356
+ # define T_MB 7 /* ns_t_mb */
357
+ #endif
358
+ #ifndef T_MG
359
+ # define T_MG 8 /* ns_t_mg */
360
+ #endif
361
+ #ifndef T_MR
362
+ # define T_MR 9 /* ns_t_mr */
363
+ #endif
364
+ #ifndef T_NULL
365
+ # define T_NULL 10 /* ns_t_null */
366
+ #endif
367
+ #ifndef T_WKS
368
+ # define T_WKS 11 /* ns_t_wks */
369
+ #endif
370
+ #ifndef T_PTR
371
+ # define T_PTR 12 /* ns_t_ptr */
372
+ #endif
373
+ #ifndef T_HINFO
374
+ # define T_HINFO 13 /* ns_t_hinfo */
375
+ #endif
376
+ #ifndef T_MINFO
377
+ # define T_MINFO 14 /* ns_t_minfo */
378
+ #endif
379
+ #ifndef T_MX
380
+ # define T_MX 15 /* ns_t_mx */
381
+ #endif
382
+ #ifndef T_TXT
383
+ # define T_TXT 16 /* ns_t_txt */
384
+ #endif
385
+ #ifndef T_RP
386
+ # define T_RP 17 /* ns_t_rp */
387
+ #endif
388
+ #ifndef T_AFSDB
389
+ # define T_AFSDB 18 /* ns_t_afsdb */
390
+ #endif
391
+ #ifndef T_X25
392
+ # define T_X25 19 /* ns_t_x25 */
393
+ #endif
394
+ #ifndef T_ISDN
395
+ # define T_ISDN 20 /* ns_t_isdn */
396
+ #endif
397
+ #ifndef T_RT
398
+ # define T_RT 21 /* ns_t_rt */
399
+ #endif
400
+ #ifndef T_NSAP
401
+ # define T_NSAP 22 /* ns_t_nsap */
402
+ #endif
403
+ #ifndef T_NSAP_PTR
404
+ # define T_NSAP_PTR 23 /* ns_t_nsap_ptr */
405
+ #endif
406
+ #ifndef T_SIG
407
+ # define T_SIG 24 /* ns_t_sig */
408
+ #endif
409
+ #ifndef T_KEY
410
+ # define T_KEY 25 /* ns_t_key */
411
+ #endif
412
+ #ifndef T_PX
413
+ # define T_PX 26 /* ns_t_px */
414
+ #endif
415
+ #ifndef T_GPOS
416
+ # define T_GPOS 27 /* ns_t_gpos */
417
+ #endif
418
+ #ifndef T_AAAA
419
+ # define T_AAAA 28 /* ns_t_aaaa */
420
+ #endif
421
+ #ifndef T_LOC
422
+ # define T_LOC 29 /* ns_t_loc */
423
+ #endif
424
+ #ifndef T_NXT
425
+ # define T_NXT 30 /* ns_t_nxt */
426
+ #endif
427
+ #ifndef T_EID
428
+ # define T_EID 31 /* ns_t_eid */
429
+ #endif
430
+ #ifndef T_NIMLOC
431
+ # define T_NIMLOC 32 /* ns_t_nimloc */
432
+ #endif
433
+ #ifndef T_SRV
434
+ # define T_SRV 33 /* ns_t_srv */
435
+ #endif
436
+ #ifndef T_ATMA
437
+ # define T_ATMA 34 /* ns_t_atma */
438
+ #endif
439
+ #ifndef T_NAPTR
440
+ # define T_NAPTR 35 /* ns_t_naptr */
441
+ #endif
442
+ #ifndef T_KX
443
+ # define T_KX 36 /* ns_t_kx */
444
+ #endif
445
+ #ifndef T_CERT
446
+ # define T_CERT 37 /* ns_t_cert */
447
+ #endif
448
+ #ifndef T_A6
449
+ # define T_A6 38 /* ns_t_a6 */
450
+ #endif
451
+ #ifndef T_DNAME
452
+ # define T_DNAME 39 /* ns_t_dname */
453
+ #endif
454
+ #ifndef T_SINK
455
+ # define T_SINK 40 /* ns_t_sink */
456
+ #endif
457
+ #ifndef T_OPT
458
+ # define T_OPT 41 /* ns_t_opt */
459
+ #endif
460
+ #ifndef T_APL
461
+ # define T_APL 42 /* ns_t_apl */
462
+ #endif
463
+ #ifndef T_DS
464
+ # define T_DS 43 /* ns_t_ds */
465
+ #endif
466
+ #ifndef T_SSHFP
467
+ # define T_SSHFP 44 /* ns_t_sshfp */
468
+ #endif
469
+ #ifndef T_RRSIG
470
+ # define T_RRSIG 46 /* ns_t_rrsig */
471
+ #endif
472
+ #ifndef T_NSEC
473
+ # define T_NSEC 47 /* ns_t_nsec */
474
+ #endif
475
+ #ifndef T_DNSKEY
476
+ # define T_DNSKEY 48 /* ns_t_dnskey */
477
+ #endif
478
+ #ifndef T_TKEY
479
+ # define T_TKEY 249 /* ns_t_tkey */
480
+ #endif
481
+ #ifndef T_TSIG
482
+ # define T_TSIG 250 /* ns_t_tsig */
483
+ #endif
484
+ #ifndef T_IXFR
485
+ # define T_IXFR 251 /* ns_t_ixfr */
486
+ #endif
487
+ #ifndef T_AXFR
488
+ # define T_AXFR 252 /* ns_t_axfr */
489
+ #endif
490
+ #ifndef T_MAILB
491
+ # define T_MAILB 253 /* ns_t_mailb */
492
+ #endif
493
+ #ifndef T_MAILA
494
+ # define T_MAILA 254 /* ns_t_maila */
495
+ #endif
496
+ #ifndef T_ANY
497
+ # define T_ANY 255 /* ns_t_any */
498
+ #endif
499
+ #ifndef T_URI
500
+ # define T_URI 256 /* ns_t_uri */
501
+ #endif
502
+ #ifndef T_CAA
503
+ # define T_CAA 257 /* ns_t_caa */
504
+ #endif
505
+ #ifndef T_MAX
506
+ # define T_MAX 65536 /* ns_t_max */
507
+ #endif
508
+
509
+
510
+ #endif /* ARES_NAMESER_H */
@@ -0,0 +1,47 @@
1
+ /* MIT License
2
+ *
3
+ * Copyright (c) Daniel Stenberg
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ * of this software and associated documentation files (the "Software"), to deal
7
+ * in the Software without restriction, including without limitation the rights
8
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ * copies of the Software, and to permit persons to whom the Software is
10
+ * furnished to do so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice (including the next
13
+ * paragraph) shall be included in all copies or substantial portions of the
14
+ * Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ *
24
+ * SPDX-License-Identifier: MIT
25
+ */
26
+
27
+ #ifndef ARES__VERSION_H
28
+ #define ARES__VERSION_H
29
+
30
+ /* This is the global package copyright */
31
+ #define ARES_COPYRIGHT "2004 - 2025 Daniel Stenberg, <daniel@haxx.se>."
32
+
33
+ #define ARES_VERSION_MAJOR 1
34
+ #define ARES_VERSION_MINOR 34
35
+ #define ARES_VERSION_PATCH 8
36
+ #define ARES_VERSION_STR "1.34.8"
37
+
38
+ /* NOTE: We cannot make the version string a C preprocessor stringify operation
39
+ * due to assumptions made by integrators that aren't properly using
40
+ * pkgconf or cmake and are doing their own detection based on parsing
41
+ * this header */
42
+
43
+ #define ARES_VERSION \
44
+ ((ARES_VERSION_MAJOR << 16) | (ARES_VERSION_MINOR << 8) | \
45
+ (ARES_VERSION_PATCH))
46
+
47
+ #endif