Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency update to c-ares #170

Merged
merged 3 commits into from Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion deps/c-ares
Submodule c-ares updated 68 files
+1 −0 .gitignore
+15 −6 CMakeLists.txt
+2 −2 CONTRIBUTING.md
+1 −1 INSTALL.md
+1 −1 README.cares
+4 −4 README.md
+69 −55 RELEASE-NOTES
+1 −1 RELEASE-PROCEDURE.md
+1 −1 SECURITY.md
+16 −4 appveyor.yml
+54 −14 configure.ac
+1 −0 docs/Makefile.inc
+1 −1 docs/acountry.1
+2 −2 docs/adig.1
+1 −1 docs/ahost.1
+4 −0 docs/ares_free_data.3
+2 −0 docs/ares_getaddrinfo.3
+81 −0 docs/ares_parse_uri_reply.3
+1 −1 include/CMakeLists.txt
+1 −1 include/Makefile.am
+12 −0 include/ares.h
+2 −0 include/ares_build.h.cmake
+2 −2 include/ares_build.h.dist
+5 −2 include/ares_build.h.in
+9 −7 include/ares_nameser.h
+2 −2 include/ares_rules.h
+3 −3 include/ares_version.h
+1 −1 libcares.pc.cmake
+1 −1 libcares.pc.in
+32 −0 m4/ax_ac_append_to_file.m4
+32 −0 m4/ax_ac_print_to_file.m4
+28 −0 m4/ax_add_am_macro_static.m4
+38 −0 m4/ax_am_macros_static.m4
+95 −0 m4/ax_check_gnu_make.m4
+190 −137 m4/ax_code_coverage.m4
+30 −0 m4/ax_file_escapes.m4
+37 −0 m4/ax_require_defined.m4
+2 −2 m4/cares-compilers.m4
+14 −14 m4/cares-confopts.m4
+0 −76 m4/cares-override.m4
+0 −60 m4/zz50-xc-ovr.m4
+0 −64 m4/zz60-xc-ovr.m4
+3 −2 src/lib/Makefile.am
+1 −1 src/lib/Makefile.inc
+15 −10 src/lib/ares__parse_into_addrinfo.c
+16 −0 src/lib/ares_data.c
+2 −0 src/lib/ares_data.h
+121 −15 src/lib/ares_expand_name.c
+20 −4 src/lib/ares_getaddrinfo.c
+1 −1 src/lib/ares_init.c
+2 −2 src/lib/ares_parse_a_reply.c
+2 −2 src/lib/ares_parse_aaaa_reply.c
+3 −3 src/lib/ares_parse_ns_reply.c
+4 −4 src/lib/ares_parse_ptr_reply.c
+4 −4 src/lib/ares_parse_soa_reply.c
+184 −0 src/lib/ares_parse_uri_reply.c
+5 −1 src/lib/ares_private.h
+1 −2 src/lib/ares_process.c
+3 −3 src/lib/cares.rc
+15 −2 src/tools/adig.c
+2 −2 test/Makefile.am
+1 −0 test/Makefile.inc
+4 −0 test/ares-test-fuzz.c
+288 −0 test/ares-test-parse-uri.cc
+3 −0 test/ares-test-parse.cc
+3 −0 test/configure.ac
+24 −1 test/dns-proto.cc
+10 −0 test/dns-proto.h
29 changes: 19 additions & 10 deletions tests/tests.py
Expand Up @@ -300,16 +300,18 @@ def cb(result, errorno):
self.wait()
self.assertNoError(self.errorno)
# > dig -t txt google.com
# google.com. 3593 IN TXT "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
# google.com. 3593 IN TXT "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
# google.com. 3593 IN TXT "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
# google.com. 3593 IN TXT "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
# google.com. 3593 IN TXT "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"
# google.com. 3593 IN TXT "v=spf1 include:_spf.google.com ~all"
# google.com. 3593 IN TXT "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
# google.com. 3593 IN TXT "apple-domain-verification=30afIBcvSuDV2PLX"
# google.com. 3593 IN TXT "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
self.assertEqual(len(self.result), 9)
# google.com. 3270 IN TXT "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
# google.com. 3270 IN TXT "atlassian-domain-verification=5YjTmWmjI92ewqkx2oXmBaD60Td9zWon9r6eakvHX6B77zzkFQto8PQ9QsKnbf4I"
# google.com. 3270 IN TXT "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
# google.com. 3270 IN TXT "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
# google.com. 3270 IN TXT "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
# google.com. 3270 IN TXT "apple-domain-verification=30afIBcvSuDV2PLX"
# google.com. 3270 IN TXT "webexdomainverification.8YX6G=6e6922db-e3e6-4a36-904e-a805c28087fa"
# google.com. 3270 IN TXT "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"
# google.com. 3270 IN TXT "v=spf1 include:_spf.google.com ~all"
# google.com. 3270 IN TXT "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
# google.com. 3270 IN TXT "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
self.assertEqual(len(self.result), 11)

def test_query_txt_bytes1(self):
self.result, self.errorno = None, None
Expand All @@ -322,6 +324,11 @@ def cb(result, errorno):
self.assertEqual(type(r), pycares.ares_query_txt_result)
self.assertIsInstance(r.text, str) # it's ASCII

# The 2 tests below hit a dead end thus fail. Commenting for now as I couldn't find a live server
# that satisfies what the tests are looking for

# FIXME: wide.com.es is a dead end!
@unittest.expectedFailure
def test_query_txt_bytes2(self):
self.result, self.errorno = None, None
def cb(result, errorno):
Expand All @@ -333,6 +340,8 @@ def cb(result, errorno):
self.assertEqual(type(r), pycares.ares_query_txt_result)
self.assertIsInstance(r.text, bytes)

# FIXME: "txt-non-ascii.dns-test.hmnid.ru" is a dead end!
@unittest.expectedFailure
def test_query_txt_multiple_chunked_with_non_ascii_content(self):
self.result, self.errorno = None, None
def cb(result, errorno):
Expand Down