mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
deps: update c-ares to 1.20.0
Co-authored-by: Richard Lau <rlau@redhat.com> PR-URL: https://github.com/nodejs/node/pull/50082 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
1 parent
ac717df17e
commit
13e69ee11c
228 files changed
+7765
-3759
No files matched your search
@@ -78,19 +78,30 @@ The externally maintained libraries used by Node.js are:
|
||||
|
||||
- c-ares, located at deps/cares, is licensed as follows:
|
||||
"""
|
||||
Copyright (c) 2007 - 2018, Daniel Stenberg with many contributors, see AUTHORS
|
||||
MIT License
|
||||
|
||||
Copyright (c) 1998 Massachusetts Institute of Technology
|
||||
Copyright (c) 2007 - 2023 Daniel Stenberg with many contributors, see AUTHORS
|
||||
file.
|
||||
|
||||
Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted, provided that
|
||||
the above copyright notice appear in all copies and that both that copyright
|
||||
notice and this permission notice appear in supporting documentation, and that
|
||||
the name of M.I.T. not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior permission.
|
||||
M.I.T. makes no representations about the suitability of this software for any
|
||||
purpose. It is provided "as is" without express or implied warranty.
|
||||
The above copyright notice and this permission notice (including the next
|
||||
paragraph) shall be included in all copies or substantial portions of the
|
||||
Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
"""
|
||||
|
||||
- cjs-module-lexer, located at deps/cjs-module-lexer, is licensed as follows:
|
||||
|
||||
Vendored
+217
-75
@@ -1,5 +1,222 @@
|
||||
Changelog for the c-ares project. Generated with git2changes.pl
|
||||
|
||||
Version 1.20.0 (6 Oct 2023)
|
||||
|
||||
Brad House (6 Oct 2023)
|
||||
- fix slist search off by 1
|
||||
|
||||
GitHub (6 Oct 2023)
|
||||
- [Brad House brought this change]
|
||||
|
||||
1.20.0 release prep (#557)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
ares__buf should return standard error codes. more helpers implemented. (#558)
|
||||
|
||||
The purpose of this PR is to hopefully make the private API of this set of routines less likely to need to be changed in a future release. While this is not a public API, it could become harder in the future to change usage as it becomes more widely used within c-ares.
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Update from 1989 MIT license text to modern MIT license text (#556)
|
||||
|
||||
ares (and thus c-ares) was originally licensed under the 1989 MIT license text:
|
||||
https://fedoraproject.org/wiki/Licensing:MIT#Old_Style_(no_advertising_without_permission)
|
||||
|
||||
This change updates the license to the modern MIT license as recognized here:
|
||||
https://opensource.org/license/mit/
|
||||
|
||||
care has been taken to ensure correct attributions remain for the authors contained within the copyright headers, and all authors with attributions in the headers have been contacted for approval regarding the change. Any authors which were not able to be contacted, the original copyright maintains, luckily that exists in only a single file `ares_parse_caa_reply.c` at this time.
|
||||
|
||||
Please see PR #556 for the documented approvals by each contributor.
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Test Harness: use ares_timeout() to calculate the value to pass to select() these days. (#555)
|
||||
|
||||
The test framework was using 100ms timeout passed to select(), and not using ares_timeout() to calculate the actual recommended value based on the queries in queue. Using ares_timeout() tests the functionality of ares_timeout() itself and will provide more responsive results.
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Fix for TCP back to back queries (#552)
|
||||
|
||||
As per #266, TCP queries are basically broken. If we get a partial reply, things just don't work, but unlike UDP, TCP may get fragmented and we need to properly handle that.
|
||||
|
||||
I've started creating a basic parser/buffer framework for c-ares for memory safety reasons, but it also helps for things like this where we shouldn't be manually tracking positions and fetching only a couple of bytes at a time from a socket. This parser/buffer will be expanded and used more in the future.
|
||||
|
||||
This also resolves #206 by allowing NULL to be specified for some socket callbacks so they will auto-route to the built-in c-ares functions.
|
||||
|
||||
Fixes: #206, #266
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
remove acountry from built tools as nerd.dk is gone (#554)
|
||||
|
||||
The acountry utility required a third party DNSBL service from nerd.dk in order to operate. That service has been offline for about a year and there is no other comparable service offering. We are keeping the code in the repository as an example, but no longer building it.
|
||||
|
||||
Fixes: #537
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Don't requeue any queries for getaddrinfo() during destruction. (#553)
|
||||
|
||||
During ares_destroy(), any outstanding queries are terminated, however ares_getaddrinfo() had an ordering issue with status codes which in some circumstances could lead to a new query being enqueued rather than honoring the termination.
|
||||
|
||||
Fixes #532
|
||||
Fix By: @Chilledheart and Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
ares_getaddrinfo(): Fail faster on AF_UNSPEC if we've already received one address class (#551)
|
||||
|
||||
As per #541, when using AF_UNSPEC with ares_getaddrinfo() (and in turn with ares_gethostbynam()) if we receive a successful response for one address class, we should not allow the other address class to continue on with retries, just return the address class we have.
|
||||
|
||||
This will limit the overall query time to whatever timeout remains for the pending query for the other address class, it will not, however, terminate the other query as it may still prove to be successful (possibly coming in less than a millisecond later) and we'd want that result still. It just turns off additional error processing to get the result back quicker.
|
||||
|
||||
Fixes Bug: #541
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Sam Morris brought this change]
|
||||
|
||||
Avoid producing an ill-formed result when qualifying a name with the root domain (#546)
|
||||
|
||||
This prevents the result of qualifying "name" with "." being "name.." which is ill-formed.
|
||||
|
||||
Fixes Bug: #545
|
||||
Fix By: Sam Morris (@yrro)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Configuration option to limit number of UDP queries per ephemeral port (#549)
|
||||
|
||||
Add a new ARES_OPT_UDP_MAX_QUERIES option with udp_max_queries parameter that can be passed to ares_init_options(). This value defaults to 0 (unlimited) to maintain existing compatibility, any positive number will cause new UDP ephemeral ports to be created once the threshold is reached, we'll call these 'connections' even though its technically wrong for UDP.
|
||||
|
||||
Implementation Details:
|
||||
* Each server entry in a channel now has a linked-list of connections/ports for udp and tcp. The first connection in the list is the one most likely to be eligible to accept new queries.
|
||||
* Queries are now tracked by connection rather than by server.
|
||||
* Every time a query is detached from a connection, the connection that it was attached to will be checked to see if it needs to be cleaned up.
|
||||
* Insertion, lookup, and searching for connections has been implemented as O(1) complexity so the number of connections will not impact performance.
|
||||
* Remove is_broken from the server, it appears it would be set and immediately unset, so must have been invalidated via a prior patch. A future patch should probably track consecutive server errors and de-prioritize such servers. The code right now will always try servers in the order of configuration, so a bad server in the list will always be tried and may rely on timeout logic to try the next.
|
||||
* Various other cleanups to remove code duplication and for clarification.
|
||||
|
||||
Fixes Bug: #444
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
its not 1991 anymore, lower default timeout and retry count (#542)
|
||||
|
||||
A lot of time has passed since the original timeouts and retry counts were chosen. We have on and off issues reported due to this. Even on geostationary satellite links, latency is worst case around 1.5s. This PR changes the per-server timeout to 2s and the retry count lowered from 4 to 3.
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Brad House brought this change]
|
||||
|
||||
Modernization: Implement base data-structures and replace usage (#540)
|
||||
|
||||
c-ares currently lacks modern data structures that can make coding easier and more efficient. This PR implements a new linked list, skip list (sorted linked list), and hashtable implementation that are easy to use and hard to misuse. Though these implementations use more memory allocations than the prior implementation, the ability to more rapidly iterate on the codebase is a bigger win than any marginal performance difference (which is unlikely to be visible, modern systems are much more powerful than when c-ares was initially created).
|
||||
|
||||
The data structure implementation favors readability and audit-ability over performance, however using the algorithmically correct data type for the purpose should offset any perceived losses.
|
||||
|
||||
The primary motivation for this PR is to facilitate future implementation for Issues #444, #135, #458, and possibly #301
|
||||
|
||||
A couple additional notes:
|
||||
|
||||
The ares_timeout() function is now O(1) complexity instead of O(n) due to the use of a skiplist.
|
||||
Some obscure bugs were uncovered which were actually being incorrectly validated in the test cases. These have been addressed in this PR but are not explicitly discussed.
|
||||
Fixed some dead code warnings in ares_rand for systems that don't need rc4
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
- [Jérôme Duval brought this change]
|
||||
|
||||
fix missing prefix for CMake generated libcares.pc (#530)
|
||||
|
||||
'pkg-config grpc --cflags' complains with:
|
||||
Variable 'prefix' not defined in libcares.pc
|
||||
|
||||
Fix By: Jérôme Duval (@korli)
|
||||
|
||||
bradh352 (11 Jul 2023)
|
||||
- windows get_DNS_Windows port fix for ipv6
|
||||
|
||||
- windows get_DNS_Windows port is in network byte order
|
||||
|
||||
- backoff to debian 11 due to coverage check failure
|
||||
|
||||
- extend on PR #534, windows should also honor a port
|
||||
|
||||
GitHub (11 Jul 2023)
|
||||
- [Brad House brought this change]
|
||||
|
||||
Support configuration of DNS server ports (#534)
|
||||
|
||||
As per https://man.openbsd.org/OpenBSD-5.1/resolv.conf.5 we should
|
||||
support bracketed syntax for resolv.conf entries to contain an optional
|
||||
port number.
|
||||
|
||||
We also need to utilize this format for configuration of MacOS
|
||||
DNS servers as seen when using the Viscosity OpenVPN client, where
|
||||
it starts a private DNS server listening on localhost on a non-standard
|
||||
port.
|
||||
|
||||
Fix By: Brad House (@bradh352)
|
||||
|
||||
Daniel Stenberg (9 Jun 2023)
|
||||
- provide SPDX identifiers and a REUSE CI job to verify
|
||||
|
||||
All files have their licence and copyright information clearly
|
||||
identifiable. If not in the file header, they are set separately in
|
||||
.reuse/dep5.
|
||||
|
||||
All used license texts are provided in LICENSES/
|
||||
|
||||
GitHub (30 May 2023)
|
||||
- [Alexey A Tikhonov brought this change]
|
||||
|
||||
Remove unreachable code as reported by Coverity (#527)
|
||||
|
||||
Coverity reported some code as unreachable. A manual inspection confirmed the reports.
|
||||
|
||||
Fix By: Alexey A Tikhonov (@alexey-tikhonov)
|
||||
|
||||
- [Ben Noordhuis brought this change]
|
||||
|
||||
rand: add support for getrandom() (#526)
|
||||
|
||||
glibc provides arc4random_buf() but musl does not and /dev/urandom is
|
||||
not always available.
|
||||
|
||||
- [Tim Wojtulewicz brought this change]
|
||||
|
||||
Replace uses of sprintf with snprintf (#525)
|
||||
|
||||
sprintf isn't safe even if you think you are using it right. Switch to snprintf().
|
||||
|
||||
Fix By: Tim Wojtulewicz (@timwoj)
|
||||
|
||||
bradh352 (23 May 2023)
|
||||
- update version and release procedure
|
||||
|
||||
GitHub (22 May 2023)
|
||||
- [Douglas R. Reno brought this change]
|
||||
|
||||
INSTALL.md: Add Watcom instructions and update Windows documentation URLs (#524)
|
||||
|
||||
This commit adds instructions on how to use the WATCOM compiler to build c-ares. This was just tested on c-ares-1.19.1 and works well.
|
||||
|
||||
While going through the links for the C Runtime documentation for Windows systems, I discovered that all three of the KB articles that were linked are now nonexistent. This commit replaces KB94248 with the current replacement available on Microsoft's website, which also makes the other two KB articles obsolete.
|
||||
|
||||
Fix By: Douglas R. Reno (@renodr)
|
||||
|
||||
Version 1.19.1 (22 May 2023)
|
||||
|
||||
bradh352 (22 May 2023)
|
||||
@@ -5477,78 +5694,3 @@ Daniel Stenberg (11 Jun 2010)
|
||||
- [BogDan Vatra brought this change]
|
||||
|
||||
init: allow c-ares to work on Android OS
|
||||
|
||||
- changelog: fill in the 1.7.2 changes
|
||||
|
||||
- added another pdf to ignore
|
||||
|
||||
Yang Tse (11 Jun 2010)
|
||||
- add ares_parse_mx_reply.c to VS dsp file
|
||||
|
||||
Daniel Stenberg (10 Jun 2010)
|
||||
- tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
|
||||
|
||||
It's not clear to me why we need this, but we apparently may
|
||||
otherwise not get all files bundled in the dist tarball.
|
||||
|
||||
- version: start working on 1.7.3
|
||||
|
||||
Version 1.7.2 (10 Jun 2010)
|
||||
|
||||
Daniel Stenberg (10 Jun 2010)
|
||||
- RELEASE-NOTES: 1.7.2 details added
|
||||
|
||||
- [Jakub Hrozek brought this change]
|
||||
|
||||
ares_init: Last, not first instance of domain or search should win
|
||||
|
||||
- style: make code less than 80 columns wide
|
||||
|
||||
Yang Tse (31 May 2010)
|
||||
- [Tor Arntsen brought this change]
|
||||
|
||||
improve alternative definition of bool to use enum instead of unsigned char
|
||||
|
||||
- fix VS2010 compiler warnings
|
||||
|
||||
Daniel Stenberg (18 Apr 2010)
|
||||
- [Jérémy Lal brought this change]
|
||||
|
||||
added ares_parse_mx_reply
|
||||
|
||||
- repair the file mode
|
||||
|
||||
- remove all $Id$ lines
|
||||
|
||||
- remove all .cvsignore files
|
||||
|
||||
- spell fix
|
||||
|
||||
reported by Gregor Jasny on the mailing list
|
||||
|
||||
- [Peter Pentchev brought this change]
|
||||
|
||||
Fix a couple of typos and grammar nits.
|
||||
|
||||
- ignore the GPG signature files too
|
||||
|
||||
- start the journey towards 1.7.2
|
||||
|
||||
- no longer CVS tagging
|
||||
|
||||
- ignore generated PDFs
|
||||
|
||||
Version 1.7.1 (23 Mar 2010)
|
||||
|
||||
Daniel Stenberg (23 Mar 2010)
|
||||
- 1.7.1
|
||||
|
||||
- made README the primary readme file
|
||||
|
||||
... and did README.cares to contain a historic reason etc.
|
||||
|
||||
- s/CVS/git
|
||||
|
||||
- git now, not CVS
|
||||
|
||||
- ignore lots of generated files
|
||||
Vendored
+11
-3
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 3.1.0)
|
||||
|
||||
INCLUDE (CheckIncludeFiles)
|
||||
@@ -8,10 +10,10 @@ INCLUDE (CheckCSourceCompiles)
|
||||
INCLUDE (CheckStructHasMember)
|
||||
INCLUDE (CheckLibraryExists)
|
||||
|
||||
PROJECT (c-ares LANGUAGES C VERSION "1.19.1" )
|
||||
PROJECT (c-ares LANGUAGES C VERSION "1.20.0" )
|
||||
|
||||
# Set this version before release
|
||||
SET (CARES_VERSION "1.19.1")
|
||||
SET (CARES_VERSION "1.20.0")
|
||||
|
||||
INCLUDE (GNUInstallDirs) # include this *AFTER* PROJECT(), otherwise paths are wrong.
|
||||
|
||||
@@ -26,7 +28,7 @@ INCLUDE (GNUInstallDirs) # include this *AFTER* PROJECT(), otherwise paths are w
|
||||
# For example, a version of 4:0:2 would generate output such as:
|
||||
# libname.so -> libname.so.2
|
||||
# libname.so.2 -> libname.so.2.2.0
|
||||
SET (CARES_LIB_VERSIONINFO "8:1:6")
|
||||
SET (CARES_LIB_VERSIONINFO "9:0:7")
|
||||
|
||||
|
||||
OPTION (CARES_STATIC "Build as a static library" OFF)
|
||||
@@ -164,6 +166,7 @@ CARES_FUNCTION_IN_LIBRARY (clock_gettime rt HAVE_LIBRT)
|
||||
|
||||
# Look for necessary includes
|
||||
CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H)
|
||||
CHECK_INCLUDE_FILES (sys/random.h HAVE_SYS_RANDOM_H)
|
||||
CHECK_INCLUDE_FILES (sys/socket.h HAVE_SYS_SOCKET_H)
|
||||
CHECK_INCLUDE_FILES (sys/sockio.h HAVE_SYS_SOCKIO_H)
|
||||
CHECK_INCLUDE_FILES (arpa/inet.h HAVE_ARPA_INET_H)
|
||||
@@ -281,6 +284,7 @@ CARES_EXTRAINCLUDE_IFSET (HAVE_STDLIB_H stdlib.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_STRING_H string.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_STRINGS_H strings.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_IOCTL_H sys/ioctl.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_RANDOM_H sys/random.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_SELECT_H sys/select.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_SOCKET_H sys/socket.h)
|
||||
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_SOCKIO_H sys/sockio.h)
|
||||
@@ -365,6 +369,7 @@ CHECK_SYMBOL_EXISTS (gethostbyaddr "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETHOST
|
||||
CHECK_SYMBOL_EXISTS (gethostbyname "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETHOSTBYNAME)
|
||||
CHECK_SYMBOL_EXISTS (gethostname "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETHOSTNAME)
|
||||
CHECK_SYMBOL_EXISTS (getnameinfo "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETNAMEINFO)
|
||||
CHECK_SYMBOL_EXISTS (getrandom "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETRANDOM)
|
||||
CHECK_SYMBOL_EXISTS (getservbyport_r "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETSERVBYPORT_R)
|
||||
CHECK_SYMBOL_EXISTS (getservbyname_r "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETSERVBYNAME_R)
|
||||
CHECK_SYMBOL_EXISTS (gettimeofday "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_GETTIMEOFDAY)
|
||||
@@ -562,6 +567,9 @@ ENDIF ()
|
||||
IF (HAVE_SYS_TYPES_H)
|
||||
SET (CARES_HAVE_SYS_TYPES_H 1)
|
||||
ENDIF ()
|
||||
IF (HAVE_SYS_RANDOM_H)
|
||||
SET (CARES_HAVE_SYS_RANDOM_H 1)
|
||||
ENDIF()
|
||||
IF (HAVE_SYS_SOCKET_H)
|
||||
SET (CARES_HAVE_SYS_SOCKET_H 1)
|
||||
ENDIF()
|
||||
|
||||
Vendored
+18
-7
@@ -291,16 +291,12 @@ As a general rule, building a DLL with static CRT linkage is highly
|
||||
discouraged, and intermixing CRTs in the same app is something to
|
||||
avoid at any cost.
|
||||
|
||||
Reading and comprehension of Microsoft Knowledge Base articles
|
||||
KB94248 and KB140584 is a must for any Windows developer. Especially
|
||||
Reading and comprehension of the following Microsoft Learn article
|
||||
is a must for any Windows developer. Especially
|
||||
important is full understanding if you are not going to follow the
|
||||
advice given above.
|
||||
|
||||
- [KB94248](http://support.microsoft.com/kb/94248/en-us) - How To Use the C Run-Time
|
||||
|
||||
- [KB140584](http://support.microsoft.com/kb/140584/en-us) - How to link with the correct C Run-Time (CRT) library
|
||||
|
||||
- [KB190799](http://msdn.microsoft.com/en-us/library/ms235460) - Potential Errors Passing CRT Objects Across DLL Boundaries
|
||||
- [Use the C Run-Time](https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/use-c-run-time)
|
||||
|
||||
If your app is misbehaving in some strange way, or it is suffering
|
||||
from memory corruption, before asking for further help, please try
|
||||
@@ -397,6 +393,21 @@ You can build and install c-ares using [vcpkg](https://github.com/Microsoft/vcpk
|
||||
|
||||
The c-ares port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
||||
|
||||
WATCOM
|
||||
=====
|
||||
|
||||
To build c-ares with OpenWatcom, you need to have at least version 1.9 of OpenWatcom. You can get the latest version from [http://openwatcom.org/ftp/install/](http://openwatcom.org/ftp/install/). Install the version that corresponds to your current host platform.
|
||||
|
||||
After installing OpenWatcom, open a new command prompt and execute the following commands:
|
||||
|
||||
```
|
||||
cd \path\to\cmake\source
|
||||
buildconf.bat
|
||||
wmake -u -f Makefile.Watcom
|
||||
```
|
||||
|
||||
After running wmake, you should get adig.exe, ahost.exe, and the static and dynamic versions of libcares.
|
||||
|
||||
PORTS
|
||||
=====
|
||||
|
||||
|
||||
Vendored
+22
-10
@@ -1,15 +1,27 @@
|
||||
# c-ares license
|
||||
|
||||
Copyright (c) 2007 - 2018, Daniel Stenberg with many contributors, see AUTHORS
|
||||
MIT License
|
||||
|
||||
|
||||
Copyright (c) 1998 Massachusetts Institute of Technology
|
||||
Copyright (c) 2007 - 2023 Daniel Stenberg with many contributors, see AUTHORS
|
||||
file.
|
||||
|
||||
Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted, provided that
|
||||
the above copyright notice appear in all copies and that both that copyright
|
||||
notice and this permission notice appear in supporting documentation, and that
|
||||
the name of M.I.T. not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior permission.
|
||||
M.I.T. makes no representations about the suitability of this software for any
|
||||
purpose. It is provided "as is" without express or implied warranty.
|
||||
The above copyright notice and this permission notice (including the next
|
||||
paragraph) shall be included in all copies or substantial portions of the
|
||||
Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Vendored
+3
-5
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Watcom / OpenWatcom / Win32 makefile for cares.
|
||||
# Quick hack by Guenter; comments to: /dev/nul
|
||||
@@ -17,7 +19,7 @@ LIBNAME = $(%libname)
|
||||
LIBNAME = cares
|
||||
!endif
|
||||
TARGETS = $(LIBNAME).dll $(LIBNAME)_imp.lib $(LIBNAME).lib
|
||||
DEMOS = adig.exe ahost.exe acountry.exe
|
||||
DEMOS = adig.exe ahost.exe
|
||||
|
||||
CC = wcc386
|
||||
LD = wlink
|
||||
@@ -118,10 +120,6 @@ ahost.exe: $(OBJ_BASE)\tools\ares_getopt.obj $(LIBNAME).lib
|
||||
$(CC) $(CFLAGS) src\tools\ahost.c -fo=$(OBJ_BASE)\tools\ahost.obj
|
||||
$(LD) name $^@ system nt $(LFLAGS) file { $(OBJ_BASE)\tools\ahost.obj $[@ } library $]@, ws2_32.lib, iphlpapi.lib
|
||||
|
||||
acountry.exe: $(OBJ_BASE)\tools\ares_getopt.obj $(LIBNAME).lib
|
||||
$(CC) $(CFLAGS) src\tools\acountry.c -fo=$(OBJ_BASE)\tools\acountry.obj
|
||||
$(LD) name $^@ system nt $(LFLAGS) file { $(OBJ_BASE)\tools\acountry.obj $[@ } library $]@, ws2_32.lib, iphlpapi.lib
|
||||
|
||||
clean: .SYMBOLIC
|
||||
-$(RM) $(OBJS_STAT)
|
||||
-$(RM) $(OBJS_DYN)
|
||||
|
||||
Vendored
+21
@@ -1,3 +1,24 @@
|
||||
#############################################################
|
||||
#
|
||||
# Copyright (C) the Massachusetts Institute of Technology.
|
||||
# Copyright (C) Daniel Stenberg
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this
|
||||
# software and its documentation for any purpose and without
|
||||
# fee is hereby granted, provided that the above copyright
|
||||
# notice appear in all copies and that both that copyright
|
||||
# notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in
|
||||
# advertising or publicity pertaining to distribution of the
|
||||
# software without specific, written prior permission.
|
||||
# M.I.T. makes no representations about the suitability of
|
||||
# this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
#############################################################
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign nostdinc 1.9.6
|
||||
ACLOCAL_AMFLAGS = -I m4 --install
|
||||
|
||||
|
||||
Vendored
+3
-2
@@ -1,6 +1,7 @@
|
||||
#
|
||||
# c-ares Makefile for djgpp/gcc/Watt-32.
|
||||
# By Gisle Vanem <gvanem@yahoo.no> 2004 - 2020.
|
||||
# Copyright (C) Gisle Vanem <gvanem@yahoo.no>
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
include src/lib/Makefile.inc
|
||||
|
||||
@@ -46,7 +47,7 @@ OBJECTS = $(addprefix $(OBJ_DIR)/, \
|
||||
GENERATED = src/lib/ares_config.h \
|
||||
include/ares_build.h
|
||||
|
||||
TARGETS = libcares.a acountry.exe adig.exe ahost.exe
|
||||
TARGETS = libcares.a adig.exe ahost.exe
|
||||
|
||||
.SECONDARY: $(OBJ_DIR)/ares_getopt.o
|
||||
|
||||
|
||||
Vendored
+21
@@ -14,6 +14,27 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Copyright (C) the Massachusetts Institute of Technology.
|
||||
# Copyright (C) Daniel Stenberg
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this
|
||||
# software and its documentation for any purpose and without
|
||||
# fee is hereby granted, provided that the above copyright
|
||||
# notice appear in all copies and that both that copyright
|
||||
# notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in
|
||||
# advertising or publicity pertaining to distribution of the
|
||||
# software without specific, written prior permission.
|
||||
# M.I.T. makes no representations about the suitability of
|
||||
# this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
#############################################################
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
|
||||
Vendored
+8
-6
@@ -1,10 +1,12 @@
|
||||
#############################################################
|
||||
#
|
||||
## Makefile for building libcares.a with MingW32 (GCC-3.2)
|
||||
## Use: make -f Makefile.m32 [demos]
|
||||
##
|
||||
## Quick hack by Guenter; comments to: /dev/nul
|
||||
# Makefile for building libcares.a with MingW32 (GCC-3.2)
|
||||
# Use: make -f Makefile.m32 [demos]
|
||||
#
|
||||
# Quick hack by Guenter; comments to: /dev/nul
|
||||
#
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
########################################################
|
||||
## Nothing more to do below this line!
|
||||
|
||||
@@ -34,7 +36,7 @@ $(LIB): $(OBJLIB)
|
||||
|
||||
all: $(LIB) demos
|
||||
|
||||
demos: src/tools/adig.exe src/tools/ahost.exe src/tools/acountry.exe
|
||||
demos: src/tools/adig.exe src/tools/ahost.exe
|
||||
|
||||
tags:
|
||||
etags *.[ch]
|
||||
@@ -68,7 +70,7 @@ install:
|
||||
done)
|
||||
|
||||
clean:
|
||||
$(RM) src/tools/ares_getopt.o $(OBJLIB) $(LIB) src/tools/adig.exe src/tools/ahost.exe src/tools/acountry.exe
|
||||
$(RM) src/tools/ares_getopt.o $(OBJLIB) $(LIB) src/tools/adig.exe src/tools/ahost.exe
|
||||
|
||||
distclean: clean
|
||||
$(RM) config.cache config.log config.status Makefile
|
||||
|
||||
Vendored
+5
-40
@@ -12,6 +12,8 @@
|
||||
# M.I.T. makes no representations about the suitability of
|
||||
# this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
#
|
||||
@@ -20,7 +22,7 @@
|
||||
# Usage: nmake /f makefile.msvc CFG=<config> <target>
|
||||
#
|
||||
# <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug }
|
||||
# <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean }
|
||||
# <target> must be one of: [ ALL | c-ares | adig | ahost | clean }
|
||||
#
|
||||
# If a <target> other than ALL or clean is given, <config> becomes mandatory.
|
||||
#
|
||||
@@ -130,7 +132,7 @@ VALID_CFGSET = TRUE
|
||||
! MESSAGE Usage: nmake /f makefile.msvc CFG=<config> <target>
|
||||
! MESSAGE
|
||||
! MESSAGE <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug }
|
||||
! MESSAGE <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean }
|
||||
! MESSAGE <target> must be one of: [ ALL | c-ares | adig | ahost | clean }
|
||||
! MESSAGE
|
||||
! MESSAGE If a <target> other than ALL or clean is given, <config> becomes mandatory.
|
||||
! MESSAGE
|
||||
@@ -145,7 +147,6 @@ VALID_CFGSET = TRUE
|
||||
# --------------------------------------------------------
|
||||
|
||||
CARES_DIR = $(BASE_DIR)\cares
|
||||
PROG1_DIR = $(BASE_DIR)\acountry
|
||||
PROG2_DIR = $(BASE_DIR)\adig
|
||||
PROG3_DIR = $(BASE_DIR)\ahost
|
||||
|
||||
@@ -156,20 +157,16 @@ PROG3_DIR = $(BASE_DIR)\ahost
|
||||
|
||||
!IF "$(VALID_CFGSET)" == "TRUE"
|
||||
CARES_OUTDIR = $(CARES_DIR)\$(CFG)
|
||||
PROG1_OUTDIR = $(PROG1_DIR)\$(CFG)
|
||||
PROG2_OUTDIR = $(PROG2_DIR)\$(CFG)
|
||||
PROG3_OUTDIR = $(PROG3_DIR)\$(CFG)
|
||||
CARES_OBJDIR = $(CARES_OUTDIR)\obj
|
||||
PROG1_OBJDIR = $(PROG1_OUTDIR)\obj
|
||||
PROG2_OBJDIR = $(PROG2_OUTDIR)\obj
|
||||
PROG3_OBJDIR = $(PROG3_OUTDIR)\obj
|
||||
!ELSE
|
||||
!UNDEF CARES_OUTDIR
|
||||
!UNDEF PROG1_OUTDIR
|
||||
!UNDEF PROG2_OUTDIR
|
||||
!UNDEF PROG3_OUTDIR
|
||||
!UNDEF CARES_OBJDIR
|
||||
!UNDEF PROG1_OBJDIR
|
||||
!UNDEF PROG2_OBJDIR
|
||||
!UNDEF PROG3_OBJDIR
|
||||
!ENDIF
|
||||
@@ -301,17 +298,6 @@ CARES_OBJS = $(CARES_OBJS:.c=.obj)
|
||||
CARES_OBJS = $(CARES_OBJS) $(CARES_OBJDIR)\cares.res
|
||||
!ENDIF
|
||||
|
||||
!IF [ECHO PROG1_OBJS=^$(PROG1_OBJDIR)\$(SAMPLESOURCES: = $(PROG1_OBJDIR^)\) > .\prog1_objs.inc] == 0
|
||||
!INCLUDE .\prog1_objs.inc
|
||||
!IF [DEL .\prog1_objs.inc]
|
||||
!ENDIF
|
||||
!ELSE
|
||||
!ERROR Problem generating PROG1_OBJS list.
|
||||
!ENDIF
|
||||
PROG1_OBJS = $(PROG1_OBJS:.c=.obj)
|
||||
PROG1_OBJS = $(PROG1_OBJS:/=\)
|
||||
PROG1_OBJS = $(PROG1_OBJS) $(PROG1_OBJDIR)\acountry.obj
|
||||
|
||||
!IF [ECHO PROG2_OBJS=^$(PROG2_OBJDIR)\$(SAMPLESOURCES: = $(PROG2_OBJDIR^)\) > .\prog2_objs.inc] == 0
|
||||
!INCLUDE .\prog2_objs.inc
|
||||
!IF [DEL .\prog2_objs.inc]
|
||||
@@ -350,9 +336,6 @@ PROG3_OBJS = $(PROG3_OBJS) $(PROG3_OBJDIR)\ahost.obj
|
||||
{$(SRCDIR)\src\lib}.c{$(CARES_OBJDIR)}.obj:
|
||||
$(CC_CMD) $(CC_CFLAGS) $(CARES_CFLAGS) /Fo$@ /Fd$(@D)\ /c $<
|
||||
|
||||
{$(SRCDIR)\src\tools}.c{$(PROG1_OBJDIR)}.obj:
|
||||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $<
|
||||
|
||||
{$(SRCDIR)\src\tools}.c{$(PROG2_OBJDIR)}.obj:
|
||||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $<
|
||||
|
||||
@@ -362,9 +345,6 @@ PROG3_OBJS = $(PROG3_OBJS) $(PROG3_OBJDIR)\ahost.obj
|
||||
# Hack Alert! we reference ../lib/ files in the Makefile.inc for tools as they
|
||||
# share some files with the library itself. We need to hack around that here.
|
||||
|
||||
{$(SRCDIR)\src\lib}.c{$(PROG1_OBJDIR)\..\lib}.obj:
|
||||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$(PROG1_OBJDIR)\$(@F) /Fd$(PROG1_OBJDIR)\ /c $<
|
||||
|
||||
{$(SRCDIR)\src\lib}.c{$(PROG2_OBJDIR)\..\lib}.obj:
|
||||
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$(PROG2_OBJDIR)\$(@F) /Fd$(PROG2_OBJDIR)\ /c $<
|
||||
|
||||
@@ -403,7 +383,7 @@ install:
|
||||
|
||||
!IF "$(VALID_CFGSET)" == "TRUE"
|
||||
|
||||
ALL: c-ares acountry adig ahost
|
||||
ALL: c-ares adig ahost
|
||||
@
|
||||
|
||||
# $(HHEADERS) $(CSOURCES)
|
||||
@@ -413,11 +393,6 @@ c-ares: $(CARES_OBJDIR) $(CARES_OBJS) $(CARES_OUTDIR)
|
||||
@if exist $(CARES_OUTDIR)\$(CARES_TARGET).manifest mt -nologo -manifest $(CARES_OUTDIR)\$(CARES_TARGET).manifest -outputresource:$(CARES_OUTDIR)\$(CARES_TARGET);2
|
||||
! ENDIF
|
||||
|
||||
# acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS)
|
||||
acountry: c-ares $(PROG1_OBJDIR) $(PROG1_OBJS) $(PROG1_OUTDIR)
|
||||
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG1_OUTDIR)\acountry.exe $(PROG1_OBJS:..\lib=)
|
||||
@if exist $(PROG1_OUTDIR)\acountry.exe.manifest mt -nologo -manifest $(PROG1_OUTDIR)\acountry.exe.manifest -outputresource:$(PROG1_OUTDIR)\acountry.exe;1
|
||||
|
||||
# adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS)
|
||||
adig: c-ares $(PROG2_OBJDIR) $(PROG2_OBJS) $(PROG2_OUTDIR)
|
||||
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG2_OUTDIR)\adig.exe $(PROG2_OBJS:..\lib=)
|
||||
@@ -431,9 +406,6 @@ ahost: c-ares $(PROG3_OBJDIR) $(PROG3_OBJS) $(PROG3_OUTDIR)
|
||||
$(CARES_OUTDIR): $(CARES_DIR)
|
||||
@if not exist $(CARES_OUTDIR) mkdir $(CARES_OUTDIR)
|
||||
|
||||
$(PROG1_OUTDIR): $(PROG1_DIR)
|
||||
@if not exist $(PROG1_OUTDIR) mkdir $(PROG1_OUTDIR)
|
||||
|
||||
$(PROG2_OUTDIR): $(PROG2_DIR)
|
||||
@if not exist $(PROG2_OUTDIR) mkdir $(PROG2_OUTDIR)
|
||||
|
||||
@@ -443,9 +415,6 @@ $(PROG3_OUTDIR): $(PROG3_DIR)
|
||||
$(CARES_OBJDIR): $(CARES_OUTDIR)
|
||||
@if not exist $(CARES_OBJDIR) mkdir $(CARES_OBJDIR)
|
||||
|
||||
$(PROG1_OBJDIR): $(PROG1_OUTDIR)
|
||||
@if not exist $(PROG1_OBJDIR) mkdir $(PROG1_OBJDIR)
|
||||
|
||||
$(PROG2_OBJDIR): $(PROG2_OUTDIR)
|
||||
@if not exist $(PROG2_OBJDIR) mkdir $(PROG2_OBJDIR)
|
||||
|
||||
@@ -454,7 +423,6 @@ $(PROG3_OBJDIR): $(PROG3_OUTDIR)
|
||||
|
||||
clean:
|
||||
@-RMDIR /S /Q $(CARES_OUTDIR) >NUL 2>&1
|
||||
@-RMDIR /S /Q $(PROG1_OUTDIR) >NUL 2>&1
|
||||
@-RMDIR /S /Q $(PROG2_OUTDIR) >NUL 2>&1
|
||||
@-RMDIR /S /Q $(PROG3_OUTDIR) >NUL 2>&1
|
||||
|
||||
@@ -479,9 +447,6 @@ $(BASE_DIR):
|
||||
$(CARES_DIR): $(BASE_DIR)
|
||||
@if not exist $(CARES_DIR) mkdir $(CARES_DIR)
|
||||
|
||||
$(PROG1_DIR): $(BASE_DIR)
|
||||
@if not exist $(PROG1_DIR) mkdir $(PROG1_DIR)
|
||||
|
||||
$(PROG2_DIR): $(BASE_DIR)
|
||||
@if not exist $(PROG2_DIR) mkdir $(PROG2_DIR)
|
||||
|
||||
|
||||
Vendored
+6
-5
@@ -1,9 +1,10 @@
|
||||
#################################################################
|
||||
#
|
||||
## Makefile for building libcares (NetWare version - gnu make)
|
||||
## Use: make -f Makefile.netware
|
||||
##
|
||||
## Comments to: Guenter Knauf http://www.gknw.de/phpbb
|
||||
# Makefile for building libcares (NetWare version - gnu make)
|
||||
# Use: make -f Makefile.netware
|
||||
#
|
||||
# Copyright (C) Guenter Knauf
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
#################################################################
|
||||
|
||||
@@ -17,7 +18,7 @@ INSTDIR = ../ares-$(LIBCARES_VERSION_STR)-bin-nw
|
||||
endif
|
||||
|
||||
# Edit the vars below to change NLM target settings.
|
||||
TARGETS = adig.nlm ahost.nlm acountry.nlm
|
||||
TARGETS = adig.nlm ahost.nlm
|
||||
LTARGET = libcares.$(LIBEXT)
|
||||
VERSION = $(LIBCARES_VERSION)
|
||||
COPYR = $(LIBCARES_COPYRIGHT_STR)
|
||||
|
||||
Vendored
+1
-1
@@ -28,7 +28,7 @@
|
||||
depends on the MSVC compiler version being used to build c-ares.
|
||||
|
||||
Below the MSVCXX folder there will exist four folders named 'cares',
|
||||
'ahost', 'acountry', and 'adig'. The 'cares' folder is the one that
|
||||
'ahost', and 'adig'. The 'cares' folder is the one that
|
||||
holds the c-ares libraries you have just generated, the other three
|
||||
hold sample programs that use the libraries.
|
||||
|
||||
|
||||
Vendored
+47
-44
@@ -1,57 +1,60 @@
|
||||
c-ares version 1.19.1
|
||||
c-ares version 1.20.0
|
||||
|
||||
This is a security and bugfix release.
|
||||
This is a feature and bugfix release with some significant internal changes.
|
||||
|
||||
A special thanks goes out to the Open Source Technology Improvement Fund
|
||||
(https://ostif.org) for sponsoring a security audit of c-ares performed by X41
|
||||
(https://x41-dsec.de).
|
||||
|
||||
Security:
|
||||
o CVE-2023-32067. High. 0-byte UDP payload causes Denial of Service [12]
|
||||
o CVE-2023-31147. Moderate. Insufficient randomness in generation of DNS
|
||||
query IDs [13]
|
||||
o CVE-2023-31130. Moderate. Buffer Underwrite in ares_inet_net_pton() [14]
|
||||
o CVE-2023-31124. Low. AutoTools does not set CARES_RANDOM_FILE during cross
|
||||
compilation [15]
|
||||
Changes:
|
||||
o Update from 1989 MIT license text to modern MIT license text [1]
|
||||
o Remove acountry from built tools as nerd.dk is gone [3]
|
||||
o Add new ARES_OPT_UDP_MAX_QUERIES configuration option to limit the number of
|
||||
queries that can be made from a single ephemeral port [7]
|
||||
o Default per-query timeout has been reduced to 2s with a 3x retry count [8]
|
||||
o Modernization: start implementing some common data structures that are easy
|
||||
to use and hard to misuse. This will make code refactoring easier and remove
|
||||
some varied implementations in use. This change also makes ares_timeout()
|
||||
more efficient [9]
|
||||
o Use SPDX identifiers and a REUSE CI job to verify [12]
|
||||
o rand: add support for getrandom() [14]
|
||||
|
||||
Bug fixes:
|
||||
o Fix uninitialized memory warning in test [1]
|
||||
o Turn off IPV6_V6ONLY on Windows to allow IPv4-mapped IPv6 addresses [2]
|
||||
o ares_getaddrinfo() should allow a port of 0 [3]
|
||||
o Fix memory leak in ares_send() on error [4]
|
||||
o Fix comment style in ares_data.h [5]
|
||||
o Remove unneeded ifdef for Windows [6]
|
||||
o Fix typo in ares_init_options.3 [7]
|
||||
o Re-add support for Watcom compiler [8]
|
||||
o Sync ax_pthread.m4 with upstream [9]
|
||||
o Windows: Invalid stack variable used out of scope for HOSTS path [10]
|
||||
o Sync ax_cxx_compile_stdcxx_11.m4 with upstream to fix uclibc support [11]
|
||||
o TCP back to back queries were broken [2]
|
||||
o Ensure queries for ares_getaddrinfo() are not requeued during destruction [4]
|
||||
o ares_getaddrinfo() should not retry other address classes if one address
|
||||
class has already been returned [5]
|
||||
o Avoid production ill-formed result when qualifying a name with the root
|
||||
domain [6]
|
||||
o Fix missing prefix for CMake generated libcares.pc [10]
|
||||
o DNS server ports will now be read from system configuration instead of
|
||||
defaulting to port 53 [11]
|
||||
o Remove some unreachable code [13]
|
||||
o Replace usages of sprintf with snprintf [15]
|
||||
o Fix Watcom instructions and update Windows URLs [16]
|
||||
|
||||
Thanks go to these friendly people for their efforts and contributions:
|
||||
Alexey A Tikhonov (@alexey-tikhonov)
|
||||
Ben Noordhuis (@bnoordhuis)
|
||||
Brad House (@bradh352)
|
||||
@Chilledheart
|
||||
Daniel Stenberg (@bagder)
|
||||
Douglas R. Reno (@renodr)
|
||||
Gregor Jasny (@gjasny)
|
||||
Jay Freeman (@saurik)
|
||||
@lifenjoiner
|
||||
Nikolaos Chatzikonstantinou (@createyourpersonalaccount)
|
||||
Yijie Ma (@yijiem)
|
||||
Jérôme Duval (@korli)
|
||||
Sam Morris (@yrro)
|
||||
Tim Wojtulewicz (@timwoj)
|
||||
(9 contributors)
|
||||
|
||||
References to bug reports and discussions on issues:
|
||||
[1] = https://github.com/c-ares/c-ares/pull/515
|
||||
[2] = https://github.com/c-ares/c-ares/pull/520
|
||||
[3] = https://github.com/c-ares/c-ares/issues/517
|
||||
[4] = https://github.com/c-ares/c-ares/pull/511
|
||||
[5] = https://github.com/c-ares/c-ares/pull/513
|
||||
[6] = https://github.com/c-ares/c-ares/pull/512
|
||||
[7] = https://github.com/c-ares/c-ares/pull/510
|
||||
[8] = https://github.com/c-ares/c-ares/pull/509
|
||||
[9] = https://github.com/c-ares/c-ares/pull/507
|
||||
[10] = https://github.com/c-ares/c-ares/pull/502
|
||||
[11] = https://github.com/c-ares/c-ares/pull/505
|
||||
[12] = https://github.com/c-ares/c-ares/security/advisories/GHSA-9g78-jv2r-p7vc
|
||||
[13] = https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2
|
||||
[14] = https://github.com/c-ares/c-ares/security/advisories/GHSA-x6mf-cxr9-8q6v
|
||||
[15] = https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4
|
||||
[1] = https://github.com/c-ares/c-ares/pull/556
|
||||
[2] = https://github.com/c-ares/c-ares/pull/552
|
||||
[3] = https://github.com/c-ares/c-ares/pull/554
|
||||
[4] = https://github.com/c-ares/c-ares/pull/553
|
||||
[5] = https://github.com/c-ares/c-ares/pull/551
|
||||
[6] = https://github.com/c-ares/c-ares/pull/546
|
||||
[7] = https://github.com/c-ares/c-ares/pull/549
|
||||
[8] = https://github.com/c-ares/c-ares/pull/542
|
||||
[9] = https://github.com/c-ares/c-ares/pull/540
|
||||
[10] = https://github.com/c-ares/c-ares/pull/530
|
||||
[11] = https://github.com/c-ares/c-ares/pull/534
|
||||
[12] = https://github.com/c-ares/c-ares/commit/c1b00c41
|
||||
[13] = https://github.com/c-ares/c-ares/pull/527
|
||||
[14] = https://github.com/c-ares/c-ares/pull/526
|
||||
[15] = https://github.com/c-ares/c-ares/pull/525
|
||||
[16] = https://github.com/c-ares/c-ares/pull/524
|
||||
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
dnl CURL_CHECK_DEF (SYMBOL, [INCLUDES], [SILENT])
|
||||
dnl -------------------------------------------------
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
# aminclude_static.am generated automatically by Autoconf
|
||||
# from AX_AM_MACROS_STATIC on Mon May 22 14:23:05 CEST 2023
|
||||
# from AX_AM_MACROS_STATIC on Sat Oct 7 13:50:28 CEST 2023
|
||||
|
||||
|
||||
# Code coverage
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
echo "*** Do not use buildconf. Instead, just use: autoreconf -fi" >&2
|
||||
exec ${AUTORECONF:-autoreconf} -fi "${@}"
|
||||
Vendored
+3
@@ -6,6 +6,9 @@ REM systems where there is no autotools support (i.e. Microsoft).
|
||||
REM
|
||||
REM This file is not included nor needed for c-ares' release
|
||||
REM archives, neither for c-ares' daily snapshot archives.
|
||||
REM
|
||||
REM Copyright (C) The c-ares project and its contributors
|
||||
REM SPDX-License-Identifier: MIT
|
||||
|
||||
if exist GIT-INFO goto start_doing
|
||||
ECHO ERROR: This file shall only be used with a c-ares git checkout.
|
||||
|
||||
Vendored
+3
@@ -1,3 +1,6 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
set_and_check(c-ares_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
|
||||
|
||||
Vendored
+22
-14
@@ -8,9 +8,27 @@
|
||||
'include/ares_version.h',
|
||||
'src/lib/ares__addrinfo2hostent.c',
|
||||
'src/lib/ares__addrinfo_localhost.c',
|
||||
'src/lib/ares__buf.c',
|
||||
'src/lib/ares__buf.h',
|
||||
'src/lib/ares__close_sockets.c',
|
||||
'src/lib/ares__htable.c',
|
||||
'src/lib/ares__htable.h',
|
||||
'src/lib/ares__htable_asvp.c',
|
||||
'src/lib/ares__htable_asvp.h',
|
||||
'src/lib/ares__htable_stvp.c',
|
||||
'src/lib/ares__htable_stvp.h',
|
||||
'src/lib/ares__llist.c',
|
||||
'src/lib/ares__llist.h',
|
||||
'src/lib/ares__get_hostent.c',
|
||||
'src/lib/ares__parse_into_addrinfo.c',
|
||||
'src/lib/ares__read_line.c',
|
||||
'src/lib/ares__readaddrinfo.c',
|
||||
'src/lib/ares__slist.c',
|
||||
'src/lib/ares__slist.h',
|
||||
'src/lib/ares__sortaddrinfo.c',
|
||||
'src/lib/ares__timeval.c',
|
||||
'src/lib/ares_android.c',
|
||||
'src/lib/ares_cancel.c',
|
||||
'src/lib/ares__close_sockets.c',
|
||||
'src/lib/ares_create_query.c',
|
||||
'src/lib/ares_data.c',
|
||||
'src/lib/ares_data.h',
|
||||
@@ -21,25 +39,22 @@
|
||||
'src/lib/ares_free_hostent.c',
|
||||
'src/lib/ares_free_string.c',
|
||||
'src/lib/ares_freeaddrinfo.c',
|
||||
'src/lib/ares_getenv.h',
|
||||
'src/lib/ares_getaddrinfo.c',
|
||||
'src/lib/ares_getenv.h',
|
||||
'src/lib/ares_gethostbyaddr.c',
|
||||
'src/lib/ares_gethostbyname.c',
|
||||
'src/lib/ares__get_hostent.c',
|
||||
'src/lib/ares_getnameinfo.c',
|
||||
'src/lib/ares_getsock.c',
|
||||
'src/lib/ares_inet_net_pton.h',
|
||||
'src/lib/ares_init.c',
|
||||
'src/lib/ares_ipv6.h',
|
||||
'src/lib/ares_library_init.c',
|
||||
'src/lib/ares_llist.c',
|
||||
'src/lib/ares_llist.h',
|
||||
'src/lib/ares_mkquery.c',
|
||||
'src/lib/ares_nowarn.c',
|
||||
'src/lib/ares_nowarn.h',
|
||||
'src/lib/ares_options.c',
|
||||
'src/lib/ares__parse_into_addrinfo.c',
|
||||
'src/lib/ares_parse_aaaa_reply.c',
|
||||
'src/lib/ares_parse_a_reply.c',
|
||||
'src/lib/ares_parse_aaaa_reply.c',
|
||||
'src/lib/ares_parse_caa_reply.c',
|
||||
'src/lib/ares_parse_mx_reply.c',
|
||||
'src/lib/ares_parse_naptr_reply.c',
|
||||
@@ -54,12 +69,9 @@
|
||||
'src/lib/ares_process.c',
|
||||
'src/lib/ares_query.c',
|
||||
'src/lib/ares_rand.c',
|
||||
'src/lib/ares__read_line.c',
|
||||
'src/lib/ares__readaddrinfo.c',
|
||||
'src/lib/ares_search.c',
|
||||
'src/lib/ares_send.c',
|
||||
'src/lib/ares_setup.h',
|
||||
'src/lib/ares__sortaddrinfo.c',
|
||||
'src/lib/ares_strcasecmp.c',
|
||||
'src/lib/ares_strcasecmp.h',
|
||||
'src/lib/ares_strdup.c',
|
||||
@@ -67,15 +79,11 @@
|
||||
'src/lib/ares_strerror.c',
|
||||
'src/lib/ares_strsplit.c',
|
||||
'src/lib/ares_timeout.c',
|
||||
'src/lib/ares__timeval.c',
|
||||
'src/lib/ares_version.c',
|
||||
'src/lib/ares_writev.c',
|
||||
'src/lib/ares_writev.h',
|
||||
'src/lib/bitncmp.c',
|
||||
'src/lib/bitncmp.h',
|
||||
'src/lib/inet_net_pton.c',
|
||||
'src/lib/inet_ntop.c',
|
||||
'src/lib/ares_inet_net_pton.h',
|
||||
'src/lib/setup_once.h',
|
||||
'src/tools/ares_getopt.c',
|
||||
'src/tools/ares_getopt.h',
|
||||
|
||||
Vendored
+187
-11
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.71 for c-ares 1.19.1.
|
||||
# Generated by GNU Autoconf 2.71 for c-ares 1.20.0.
|
||||
#
|
||||
# Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
|
||||
#
|
||||
@@ -855,8 +855,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='c-ares'
|
||||
PACKAGE_TARNAME='c-ares'
|
||||
PACKAGE_VERSION='1.19.1'
|
||||
PACKAGE_STRING='c-ares 1.19.1'
|
||||
PACKAGE_VERSION='1.20.0'
|
||||
PACKAGE_STRING='c-ares 1.20.0'
|
||||
PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares'
|
||||
PACKAGE_URL=''
|
||||
|
||||
@@ -1650,7 +1650,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures c-ares 1.19.1 to adapt to many kinds of systems.
|
||||
\`configure' configures c-ares 1.20.0 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@@ -1721,7 +1721,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of c-ares 1.19.1:";;
|
||||
short | recursive ) echo "Configuration of c-ares 1.20.0:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@@ -1861,7 +1861,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
c-ares configure 1.19.1
|
||||
c-ares configure 1.20.0
|
||||
generated by GNU Autoconf 2.71
|
||||
|
||||
Copyright (C) 2021 Free Software Foundation, Inc.
|
||||
@@ -2453,7 +2453,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by c-ares $as_me 1.19.1, which was
|
||||
It was created by c-ares $as_me 1.20.0, which was
|
||||
generated by GNU Autoconf 2.71. Invocation command line was
|
||||
|
||||
$ $0$ac_configure_args_raw
|
||||
@@ -3426,7 +3426,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
|
||||
CARES_VERSION_INFO="8:1:6"
|
||||
CARES_VERSION_INFO="9:0:7"
|
||||
|
||||
|
||||
|
||||
@@ -7060,7 +7060,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='c-ares'
|
||||
VERSION='1.19.1'
|
||||
VERSION='1.20.0'
|
||||
|
||||
|
||||
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
||||
@@ -29558,6 +29558,182 @@ printf "%s\n" "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
cares_includes_sys_random="\
|
||||
/* includes start */
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
# include <sys/random.h>
|
||||
#endif
|
||||
/* includes end */"
|
||||
ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$cares_includes_sys_random
|
||||
"
|
||||
if test "x$ac_cv_header_sys_random_h" = xyes
|
||||
then :
|
||||
printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#
|
||||
tst_links_getrandom="unknown"
|
||||
tst_proto_getrandom="unknown"
|
||||
tst_compi_getrandom="unknown"
|
||||
tst_allow_getrandom="unknown"
|
||||
#
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getrandom can be linked" >&5
|
||||
printf %s "checking if getrandom can be linked... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Define getrandom to an innocuous variant, in case <limits.h> declares getrandom.
|
||||
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
||||
#define getrandom innocuous_getrandom
|
||||
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char getrandom (); below. */
|
||||
|
||||
#include <limits.h>
|
||||
#undef getrandom
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char getrandom ();
|
||||
/* The GNU C library defines this for functions which it implements
|
||||
to always fail with ENOSYS. Some functions are actually named
|
||||
something starting with __ and the normal name is an alias. */
|
||||
#if defined __stub_getrandom || defined __stub___getrandom
|
||||
choke me
|
||||
#endif
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
return getrandom ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"
|
||||
then :
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
tst_links_getrandom="yes"
|
||||
|
||||
else $as_nop
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
tst_links_getrandom="no"
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
#
|
||||
if test "$tst_links_getrandom" = "yes"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getrandom is prototyped" >&5
|
||||
printf %s "checking if getrandom is prototyped... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
$cares_includes_sys_random
|
||||
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "getrandom" >/dev/null 2>&1
|
||||
then :
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
tst_proto_getrandom="yes"
|
||||
|
||||
else $as_nop
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
tst_proto_getrandom="no"
|
||||
|
||||
fi
|
||||
rm -rf conftest*
|
||||
|
||||
fi
|
||||
#
|
||||
if test "$tst_proto_getrandom" = "yes"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getrandom is compilable" >&5
|
||||
printf %s "checking if getrandom is compilable... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
$cares_includes_sys_random
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
if(0 != getrandom(0, 0, 0))
|
||||
return 1;
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
tst_compi_getrandom="yes"
|
||||
|
||||
else $as_nop
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
tst_compi_getrandom="no"
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
#
|
||||
if test "$tst_compi_getrandom" = "yes"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getrandom usage allowed" >&5
|
||||
printf %s "checking if getrandom usage allowed... " >&6; }
|
||||
if test "x$cares_disallow_getrandom" != "xyes"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
tst_allow_getrandom="yes"
|
||||
else
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
tst_allow_getrandom="no"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getrandom might be used" >&5
|
||||
printf %s "checking if getrandom might be used... " >&6; }
|
||||
if test "$tst_links_getrandom" = "yes" &&
|
||||
test "$tst_proto_getrandom" = "yes" &&
|
||||
test "$tst_compi_getrandom" = "yes" &&
|
||||
test "$tst_allow_getrandom" = "yes"; then
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
|
||||
|
||||
ac_cv_func_getrandom="yes"
|
||||
else
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; }
|
||||
ac_cv_func_getrandom="no"
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
tst_links_getservbyport_r="unknown"
|
||||
tst_proto_getservbyport_r="unknown"
|
||||
@@ -35178,7 +35354,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by c-ares $as_me 1.19.1, which was
|
||||
This file was extended by c-ares $as_me 1.20.0, which was
|
||||
generated by GNU Autoconf 2.71. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@@ -35246,7 +35422,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config='$ac_cs_config_escaped'
|
||||
ac_cs_version="\\
|
||||
c-ares config.status 1.19.1
|
||||
c-ares config.status 1.20.0
|
||||
configured by $0, generated by GNU Autoconf 2.71,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
||||
Vendored
+23
-2
@@ -1,9 +1,29 @@
|
||||
#############################################################
|
||||
#
|
||||
# Copyright (C) the Massachusetts Institute of Technology.
|
||||
# Copyright (C) Daniel Stenberg
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this
|
||||
# software and its documentation for any purpose and without
|
||||
# fee is hereby granted, provided that the above copyright
|
||||
# notice appear in all copies and that both that copyright
|
||||
# notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in
|
||||
# advertising or publicity pertaining to distribution of the
|
||||
# software without specific, written prior permission.
|
||||
# M.I.T. makes no representations about the suitability of
|
||||
# this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
#############################################################
|
||||
AC_PREREQ([2.60])
|
||||
|
||||
AC_INIT([c-ares], [1.19.1],
|
||||
AC_INIT([c-ares], [1.20.0],
|
||||
[c-ares mailing list: http://lists.haxx.se/listinfo/c-ares])
|
||||
|
||||
CARES_VERSION_INFO="8:1:6"
|
||||
CARES_VERSION_INFO="9:0:7"
|
||||
dnl This flag accepts an argument of the form current[:revision[:age]]. So,
|
||||
dnl passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
|
||||
dnl 1.
|
||||
@@ -666,6 +686,7 @@ CARES_CHECK_FUNC_GETENV
|
||||
CARES_CHECK_FUNC_GETHOSTBYADDR
|
||||
CARES_CHECK_FUNC_GETHOSTBYNAME
|
||||
CARES_CHECK_FUNC_GETHOSTNAME
|
||||
CARES_CHECK_FUNC_GETRANDOM
|
||||
CARES_CHECK_FUNC_GETSERVBYPORT_R
|
||||
CARES_CHECK_FUNC_INET_NET_PTON
|
||||
CARES_CHECK_FUNC_INET_NTOP
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Headers and Man Pages installation target
|
||||
IF (CARES_INSTALL)
|
||||
# ManPages
|
||||
|
||||
Vendored
+3
-4
@@ -1,6 +1,5 @@
|
||||
#***************************************************************************
|
||||
|
||||
###########################################################################
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects no-dependencies
|
||||
|
||||
@@ -8,4 +7,4 @@ include Makefile.inc
|
||||
|
||||
man_MANS = $(MANPAGES)
|
||||
|
||||
EXTRA_DIST = $(MANPAGES) ahost.1 adig.1 acountry.1 Makefile.inc CMakeLists.txt
|
||||
EXTRA_DIST = $(MANPAGES) ahost.1 adig.1 Makefile.inc CMakeLists.txt
|
||||
Vendored
+6
-4
@@ -14,9 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
#***************************************************************************
|
||||
|
||||
###########################################################################
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
@@ -327,6 +326,9 @@ top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects no-dependencies
|
||||
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
MANPAGES = ares_cancel.3 \
|
||||
ares_create_query.3 \
|
||||
ares_destroy.3 \
|
||||
@@ -388,7 +390,7 @@ MANPAGES = ares_cancel.3 \
|
||||
ares_version.3
|
||||
|
||||
man_MANS = $(MANPAGES)
|
||||
EXTRA_DIST = $(MANPAGES) ahost.1 adig.1 acountry.1 Makefile.inc CMakeLists.txt
|
||||
EXTRA_DIST = $(MANPAGES) ahost.1 adig.1 Makefile.inc CMakeLists.txt
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
MANPAGES = ares_cancel.3 \
|
||||
ares_create_query.3 \
|
||||
ares_destroy.3 \
|
||||
|
||||
Vendored
-54
@@ -1,54 +0,0 @@
|
||||
.TH ACOUNTRY "1" "April 2011" "c-ares utilities"
|
||||
.SH NAME
|
||||
acountry \- print the country where an IPv4 address or host is located
|
||||
.SH SYNOPSIS
|
||||
.B acountry
|
||||
[\fIOPTION\fR]... \fIHOST\fR...
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
.\" Add any additional description here
|
||||
.PP
|
||||
Print the country where HOST (an IPv4 address or hostname) is located,
|
||||
using the countries.nerd.dk DNS domain to identify the country.
|
||||
.PP
|
||||
This utility comes with the \fBc\-ares\fR asynchronous resolver library.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-d\fR
|
||||
Print some extra debugging output.
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-?\fR
|
||||
Display this help and exit.
|
||||
.TP
|
||||
\fB\-v\fR
|
||||
Be more verbose. Print extra information.
|
||||
.SH "REPORTING BUGS"
|
||||
Report bugs to the c-ares mailing list:
|
||||
.br
|
||||
\fBhttps://lists.haxx.se/listinfo/c-ares\fR
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
adig(1), ahost(1).
|
||||
.PP
|
||||
The DNSBL countries.nerd.dk
|
||||
.br
|
||||
\fBhttp://countries.nerd.dk/\fR
|
||||
.SH COPYRIGHT
|
||||
This utility is based on code/ideas contained in sofware written by Greg Hudson (ares)
|
||||
carrying the following notice:
|
||||
.br
|
||||
Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
.br
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that copyright notice and this permission notice appear in
|
||||
supporting documentation, and that the name of M.I.T. not be used in
|
||||
advertising or publicity pertaining to distribution of the software
|
||||
without specific, written prior permission. M.I.T. makes no
|
||||
representations about the suitability of this software for any
|
||||
purpose. It is provided "as is" without express or implied warranty.
|
||||
.br
|
||||
No further copyright claims are being made by the author(s) of this utility.
|
||||
.SH AUTHOR
|
||||
Gisle Vanem
|
||||
Vendored
+18
@@ -1,3 +1,21 @@
|
||||
.\"
|
||||
.\" Copyright (C) the Massachusetts Institute of Technology.
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\"
|
||||
.\" Permission to use, copy, modify, and distribute this
|
||||
.\" software and its documentation for any purpose and without
|
||||
.\" fee is hereby granted, provided that the above copyright
|
||||
.\" notice appear in all copies and that both that copyright
|
||||
.\" notice and this permission notice appear in supporting
|
||||
.\" documentation, and that the name of M.I.T. not be used in
|
||||
.\" advertising or publicity pertaining to distribution of the
|
||||
.\" software without specific, written prior permission.
|
||||
.\" M.I.T. makes no representations about the suitability of
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ADIG "1" "April 2011" "c-ares utilities"
|
||||
.SH NAME
|
||||
adig \- print information collected from Domain Name System (DNS) servers
|
||||
|
||||
Vendored
+18
@@ -1,3 +1,21 @@
|
||||
.\"
|
||||
.\" Copyright (C) the Massachusetts Institute of Technology.
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\"
|
||||
.\" Permission to use, copy, modify, and distribute this
|
||||
.\" software and its documentation for any purpose and without
|
||||
.\" fee is hereby granted, provided that the above copyright
|
||||
.\" notice appear in all copies and that both that copyright
|
||||
.\" notice and this permission notice appear in supporting
|
||||
.\" documentation, and that the name of M.I.T. not be used in
|
||||
.\" advertising or publicity pertaining to distribution of the
|
||||
.\" software without specific, written prior permission.
|
||||
.\" M.I.T. makes no representations about the suitability of
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH AHOST "1" "April 2011" "c-ares utilities"
|
||||
.SH NAME
|
||||
ahost \- print the A or AAAA record associated with a hostname or IP address
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_CANCEL 3 "31 March 2004"
|
||||
.SH NAME
|
||||
ares_cancel \- Cancel a resolve
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_CREATE_QUERY 3 "17 Aug 2012"
|
||||
.SH NAME
|
||||
ares_create_query \- Compose a single-question DNS query buffer
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_DESTROY 3 "7 December 2004"
|
||||
.SH NAME
|
||||
ares_destroy \- Destroy a resolver channel
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_DESTROY_OPTIONS 3 "1 June 2007"
|
||||
.SH NAME
|
||||
ares_destroy_options \- Destroy options initialized with ares_save_options
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_DUP 3 "26 May 2009"
|
||||
.SH NAME
|
||||
ares_dup \- Duplicate a resolver channel
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_EXPAND_NAME 3 "20 Nov 2009"
|
||||
.SH NAME
|
||||
ares_expand_name \- Expand a DNS-encoded domain name
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_EXPAND_NAME 3 "20 Nov 2009"
|
||||
.SH NAME
|
||||
ares_expand_string \- Expand a length encoded string
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_FDS 3 "23 July 1998"
|
||||
.SH NAME
|
||||
ares_fds \- return file descriptors to select on
|
||||
|
||||
Vendored
+2
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_FREE_DATA 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_free_data \- Free data allocated by several c-ares functions
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_FREE_HOSTENT 3 "23 July 1998"
|
||||
.SH NAME
|
||||
ares_free_hostent \- Free host structure allocated by ares functions
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_FREE_STRING 3 "4 February 2004"
|
||||
.SH NAME
|
||||
ares_free_string \- Free strings allocated by ares functions
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_FREEADDRINFO 3 "31 October 2018"
|
||||
.SH NAME
|
||||
ares_freeaddrinfo \- Free addrinfo structure allocated by ares functions
|
||||
|
||||
Vendored
+2
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GET_SERVERS 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_get_servers, ares_get_servers_ports \- Retrieve name servers from an initialized ares_channel
|
||||
|
||||
+3
@@ -1 +1,4 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.so man3/ares_get_servers.3
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETADDRINFO 3 "4 November 2018"
|
||||
.SH NAME
|
||||
ares_getaddrinfo \- Initiate a host query by name and service
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETHOSTBYADDR 3 "24 July 1998"
|
||||
.SH NAME
|
||||
ares_gethostbyaddr \- Initiate a host query by address
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETHOSTBYNAME 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_gethostbyname \- Initiate a host query by name
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETHOSTBYNAME 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_gethostbyname_file \- Lookup a name in the system's hosts file
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETNAMEINFO 3 "1 May 2009"
|
||||
.SH NAME
|
||||
ares_getnameinfo \- Address-to-nodename translation in protocol-independent manner
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_GETSOCK 3 "11 March 2010"
|
||||
.SH NAME
|
||||
ares_getsock \- get socket descriptors to wait on
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_INET_NTOP 3 "17 Feb 2013"
|
||||
.SH NAME
|
||||
ares_inet_ntop \- convert a network format address to presentation format
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_INET_PTON 3 "17 Feb 2013"
|
||||
.SH NAME
|
||||
ares_inet_pton \- convert an IPv4 or IPv6 address from text to binary form
|
||||
|
||||
Vendored
+2
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_INIT 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_init \- Initialize a resolver channel
|
||||
|
||||
Vendored
+14
-3
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_INIT 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_init_options \- Initialize a resolver channel
|
||||
@@ -42,6 +44,7 @@ struct ares_options {
|
||||
int ednspsz;
|
||||
char *resolvconf_path;
|
||||
char *hosts_path;
|
||||
int udp_max_queries;
|
||||
};
|
||||
|
||||
int ares_init_options(ares_channel *\fIchannelptr\fP,
|
||||
@@ -71,7 +74,7 @@ description of possible flag values.
|
||||
The number of seconds each name server is given to respond to a query on the
|
||||
first try. (After the first try, the timeout algorithm becomes more
|
||||
complicated, but scales linearly with the value of \fItimeout\fP.) The
|
||||
default is five seconds. This option is being deprecated by
|
||||
default is two seconds. This option is being deprecated by
|
||||
\fIARES_OPT_TIMEOUTMS\fP starting in c-ares 1.5.2.
|
||||
.TP 18
|
||||
.B ARES_OPT_TIMEOUTMS
|
||||
@@ -80,7 +83,7 @@ default is five seconds. This option is being deprecated by
|
||||
The number of milliseconds each name server is given to respond to a query on
|
||||
the first try. (After the first try, the timeout algorithm becomes more
|
||||
complicated, but scales linearly with the value of \fItimeout\fP.) The
|
||||
default is five seconds. Note that this option is specified with the same
|
||||
default is two seconds. Note that this option is specified with the same
|
||||
struct field as the former \fIARES_OPT_TIMEOUT\fP, it is but the option bits
|
||||
that tell c-ares how to interpret the number. This option was added in c-ares
|
||||
1.5.2.
|
||||
@@ -89,7 +92,7 @@ that tell c-ares how to interpret the number. This option was added in c-ares
|
||||
.B int \fItries\fP;
|
||||
.br
|
||||
The number of tries the resolver will try contacting each name server
|
||||
before giving up. The default is four tries.
|
||||
before giving up. The default is three tries.
|
||||
.TP 18
|
||||
.B ARES_OPT_NDOTS
|
||||
.B int \fIndots\fP;
|
||||
@@ -204,6 +207,14 @@ should be set to a path string, and will be honoured on *nix like systems. The
|
||||
default is
|
||||
.B /etc/hosts
|
||||
.br
|
||||
.TP 18
|
||||
.B ARES_OPT_UDP_MAX_QUERIES
|
||||
.B int \fIudp_max_queries\fP;
|
||||
.br
|
||||
The maximum number of udp queries that can be sent on a single ephemeral port
|
||||
to a given DNS server before a new ephemeral port is assigned. Any value of 0
|
||||
or less will be considered unlimited, and is the default.
|
||||
.br
|
||||
.PP
|
||||
The \fIoptmask\fP parameter also includes options without a corresponding
|
||||
field in the
|
||||
|
||||
+2
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_LIBRARY_CLEANUP 3 "19 May 2009"
|
||||
.SH NAME
|
||||
ares_library_cleanup \- c-ares library deinitialization
|
||||
|
||||
Vendored
+2
@@ -14,6 +14,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_LIBRARY_INIT 3 "19 May 2009"
|
||||
.SH NAME
|
||||
ares_library_init \- c-ares library initialization
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_LIBRARY_INIT_ANDROID 3 "13 Sept 2017"
|
||||
.SH NAME
|
||||
ares_library_init_android \- c-ares library Android initialization
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_LIBRARY_INITIALIZED 3 "29 Sep 2016"
|
||||
.SH NAME
|
||||
ares_library_initialized \- get the initialization state
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_MKQUERY 3 "20 Nov 2009"
|
||||
.SH NAME
|
||||
ares_mkquery \- Compose a single-question DNS query buffer
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_A_REPLY 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_parse_a_reply \- Parse a reply to a DNS query of type A
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_AAAA_REPLY 3 "20 Nov 2009"
|
||||
.SH NAME
|
||||
ares_parse_aaaa_reply \- Parse a reply to a DNS query of type AAAA
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_CAA_REPLY 3 "16 September 2020"
|
||||
.SH NAME
|
||||
ares_parse_caa_reply \- Parse a reply to a DNS query of type CAA
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_MX_REPLY 3 "4 August 2009"
|
||||
.SH NAME
|
||||
ares_parse_mx_reply \- Parse a reply to a DNS query of type MX
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_NAPTR_REPLY 3 "23 February 2012"
|
||||
.SH NAME
|
||||
ares_parse_naptr_reply \- Parse a reply to a DNS query of type NAPTR
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_NS_REPLY 3 "10 February 2007"
|
||||
.SH NAME
|
||||
ares_parse_ns_reply \- Parse a reply to a DNS query of type NS into a hostent
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_PTR_REPLY 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_parse_ptr_reply \- Parse a reply to a DNS query of type PTR into a hostent
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_SOA_REPLY 3 "29 May 2012"
|
||||
.SH NAME
|
||||
ares_parse_soa_reply \- Parse a reply to a DNS query of type SOA
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_SRV_REPLY 3 "4 August 2009"
|
||||
.SH NAME
|
||||
ares_parse_srv_reply \- Parse a reply to a DNS query of type SRV
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_TXT_REPLY 3 "27 October 2009"
|
||||
.SH NAME
|
||||
ares_parse_txt_reply \- Parse a reply to a DNS query of type TXT
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PARSE_URI_REPLY 3 "14 August 2020"
|
||||
.SH NAME
|
||||
ares_parse_uri_reply \- Parse a reply to a DNS query of type URI
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_PROCESS 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_process \- Process events for name resolution
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_QUERY 3 "24 July 1998"
|
||||
.SH NAME
|
||||
ares_query \- Initiate a single-question DNS query
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SAVE_OPTIONS 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_save_options \- Save configuration values obtained from initialized ares_channel
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SEARCH 3 "24 July 1998"
|
||||
.SH NAME
|
||||
ares_search \- Initiate a DNS query with domain search
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SEND 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_send \- Initiate a DNS query
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_LOCAL_DEV 3 "30 June 2010"
|
||||
.SH NAME
|
||||
ares_set_local_dev \- Bind to a specific network device when creating sockets.
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_LOCAL_IP4 3 "30 June 2010"
|
||||
.SH NAME
|
||||
ares_set_local_ip4 \- Set local IPv4 address outgoing requests.
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_LOCAL_IP6 3 "30 June 2010"
|
||||
.SH NAME
|
||||
ares_set_local_ip6 \- Set local IPv6 address outgoing requests.
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_SERVERS 3 "5 March 2010"
|
||||
.SH NAME
|
||||
ares_set_servers, ares_set_servers_ports \- Initialize an ares_channel name servers configuration
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_SERVERS_CSV 3 "30 June 2010"
|
||||
.SH NAME
|
||||
ares_set_servers_csv, ares_set_servers_ports_csv \- Set list of DNS servers to be used.
|
||||
|
||||
+3
@@ -1 +1,4 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.so man3/ares_set_servers.3
|
||||
@@ -1 +1,4 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.so man3/ares_set_servers_csv.3
|
||||
+3
@@ -1,4 +1,7 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_SOCKET_CALLBACK 3 "20 Nov 2009"
|
||||
.SH NAME
|
||||
ares_set_socket_callback \- Set a socket creation callback
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.TH ARES_SET_SOCKET_CONFIGURE_CALLBACK 3 "6 Feb 2016"
|
||||
.SH NAME
|
||||
ares_set_socket_configure_callback \- Set a socket configuration callback
|
||||
|
||||
+5
-2
@@ -1,4 +1,5 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.TH ARES_SET_SOCKET_FUNCTIONS 3 "13 Dec 2016"
|
||||
.SH NAME
|
||||
ares_set_socket_functions \- Set socket io callbacks
|
||||
@@ -24,7 +25,9 @@ void ares_set_socket_functions(ares_channel \fIchannel\fP,
|
||||
This function sets a set of callback \fIfunctions\fP in the given ares channel handle.
|
||||
These callback functions will be invoked to create/destroy socket objects and perform
|
||||
io, instead of the normal system calls. A client application can override normal network
|
||||
operation fully through this functionality, and provide its own transport layer.
|
||||
operation fully through this functionality, and provide its own transport layer. You
|
||||
can choose to only implement some of the socket functions, and provide NULL to any
|
||||
others and c-ares will use its built-in system functions in that case.
|
||||
.PP
|
||||
All callback functions are expected to operate like their system equivalents, and to
|
||||
set
|
||||
|
||||
Vendored
+3
@@ -1,4 +1,5 @@
|
||||
.\"
|
||||
.\" Copyright (C) Daniel Stenberg
|
||||
.\" Permission to use, copy, modify, and distribute this
|
||||
.\" software and its documentation for any purpose and without
|
||||
.\" fee is hereby granted, provided that the above copyright
|
||||
@@ -11,6 +12,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_SET_SORTLIST 3 "23 November 2015"
|
||||
.SH NAME
|
||||
ares_set_sortlist \- Initialize an ares_channel sortlist configuration
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_STRERROR 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_strerror \- Get the description of an ares library error code
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_TIMEOUT 3 "25 July 1998"
|
||||
.SH NAME
|
||||
ares_timeout \- return maximum time to wait
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
.\" this software for any purpose. It is provided "as is"
|
||||
.\" without express or implied warranty.
|
||||
.\"
|
||||
.\" SPDX-License-Identifier: MIT
|
||||
.\"
|
||||
.TH ARES_VERSION 3 "29 January 2004"
|
||||
.SH NAME
|
||||
ares_version \- Get the version number of the library
|
||||
|
||||
Vendored
+2
@@ -1,6 +1,8 @@
|
||||
# ***************************************************************************
|
||||
# * Project: c-ares
|
||||
# *
|
||||
# * Copyright (C) The c-ares project and its contributors
|
||||
# * SPDX-License-Identifier: MIT
|
||||
# ***************************************************************************
|
||||
# awk script which fetches c-ares version number and string from input
|
||||
# file and writes them to STDOUT. Here you can get an awk version for Win32:
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) The c-ares project and its contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Write ares_build.h configuration file. This is an installed file.
|
||||
CONFIGURE_FILE (ares_build.h.cmake ${PROJECT_BINARY_DIR}/ares_build.h)
|
||||
|
||||
|
||||
Vendored
+2
@@ -1,3 +1,5 @@
|
||||
# Copyright (C) Daniel Stenberg
|
||||
# SPDX-License-Identifier: MIT
|
||||
AUTOMAKE_OPTIONS = foreign nostdinc 1.9.6
|
||||
ACLOCAL_AMFLAGS = -I m4 --install
|
||||
|
||||
|
||||
Vendored
+3
@@ -336,6 +336,9 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
# Copyright (C) Daniel Stenberg
|
||||
# SPDX-License-Identifier: MIT
|
||||
AUTOMAKE_OPTIONS = foreign nostdinc 1.9.6
|
||||
ACLOCAL_AMFLAGS = -I m4 --install
|
||||
|
||||
|
||||
Vendored
+45
-33
@@ -1,18 +1,28 @@
|
||||
|
||||
/* Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
* Copyright (C) 2007-2013 by Daniel Stenberg
|
||||
/* MIT License
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this
|
||||
* software and its documentation for any purpose and without
|
||||
* fee is hereby granted, provided that the above copyright
|
||||
* notice appear in all copies and that both that copyright
|
||||
* notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of M.I.T. not be used in
|
||||
* advertising or publicity pertaining to distribution of the
|
||||
* software without specific, written prior permission.
|
||||
* M.I.T. makes no representations about the suitability of
|
||||
* this software for any purpose. It is provided "as is"
|
||||
* without express or implied warranty.
|
||||
* Copyright (c) Massachusetts Institute of Technology
|
||||
* Copyright (c) Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef ARES__H
|
||||
@@ -157,25 +167,26 @@ extern "C" {
|
||||
#define ARES_FLAG_EDNS (1 << 8)
|
||||
|
||||
/* Option mask values */
|
||||
#define ARES_OPT_FLAGS (1 << 0)
|
||||
#define ARES_OPT_TIMEOUT (1 << 1)
|
||||
#define ARES_OPT_TRIES (1 << 2)
|
||||
#define ARES_OPT_NDOTS (1 << 3)
|
||||
#define ARES_OPT_UDP_PORT (1 << 4)
|
||||
#define ARES_OPT_TCP_PORT (1 << 5)
|
||||
#define ARES_OPT_SERVERS (1 << 6)
|
||||
#define ARES_OPT_DOMAINS (1 << 7)
|
||||
#define ARES_OPT_LOOKUPS (1 << 8)
|
||||
#define ARES_OPT_SOCK_STATE_CB (1 << 9)
|
||||
#define ARES_OPT_SORTLIST (1 << 10)
|
||||
#define ARES_OPT_SOCK_SNDBUF (1 << 11)
|
||||
#define ARES_OPT_SOCK_RCVBUF (1 << 12)
|
||||
#define ARES_OPT_TIMEOUTMS (1 << 13)
|
||||
#define ARES_OPT_ROTATE (1 << 14)
|
||||
#define ARES_OPT_EDNSPSZ (1 << 15)
|
||||
#define ARES_OPT_NOROTATE (1 << 16)
|
||||
#define ARES_OPT_RESOLVCONF (1 << 17)
|
||||
#define ARES_OPT_HOSTS_FILE (1 << 18)
|
||||
#define ARES_OPT_FLAGS (1 << 0)
|
||||
#define ARES_OPT_TIMEOUT (1 << 1)
|
||||
#define ARES_OPT_TRIES (1 << 2)
|
||||
#define ARES_OPT_NDOTS (1 << 3)
|
||||
#define ARES_OPT_UDP_PORT (1 << 4)
|
||||
#define ARES_OPT_TCP_PORT (1 << 5)
|
||||
#define ARES_OPT_SERVERS (1 << 6)
|
||||
#define ARES_OPT_DOMAINS (1 << 7)
|
||||
#define ARES_OPT_LOOKUPS (1 << 8)
|
||||
#define ARES_OPT_SOCK_STATE_CB (1 << 9)
|
||||
#define ARES_OPT_SORTLIST (1 << 10)
|
||||
#define ARES_OPT_SOCK_SNDBUF (1 << 11)
|
||||
#define ARES_OPT_SOCK_RCVBUF (1 << 12)
|
||||
#define ARES_OPT_TIMEOUTMS (1 << 13)
|
||||
#define ARES_OPT_ROTATE (1 << 14)
|
||||
#define ARES_OPT_EDNSPSZ (1 << 15)
|
||||
#define ARES_OPT_NOROTATE (1 << 16)
|
||||
#define ARES_OPT_RESOLVCONF (1 << 17)
|
||||
#define ARES_OPT_HOSTS_FILE (1 << 18)
|
||||
#define ARES_OPT_UDP_MAX_QUERIES (1 << 19)
|
||||
|
||||
/* Nameinfo flag values */
|
||||
#define ARES_NI_NOFQDN (1 << 0)
|
||||
@@ -286,6 +297,7 @@ struct ares_options {
|
||||
int ednspsz;
|
||||
char *resolvconf_path;
|
||||
char *hosts_path;
|
||||
int udp_max_queries;
|
||||
};
|
||||
|
||||
struct hostent;
|
||||
|
||||
Vendored
+25
-13
@@ -1,20 +1,32 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) 2009 Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#ifndef __CARES_BUILD_H
|
||||
#define __CARES_BUILD_H
|
||||
|
||||
|
||||
/* Copyright (C) 2009 - 2021 by Daniel Stenberg et al
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software and its
|
||||
* documentation for any purpose and without fee is hereby granted, provided
|
||||
* that the above copyright notice appear in all copies and that both that
|
||||
* copyright notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or
|
||||
* publicity pertaining to distribution of the software without specific,
|
||||
* written prior permission. M.I.T. makes no representations about the
|
||||
* suitability of this software for any purpose. It is provided "as is"
|
||||
* without express or implied warranty.
|
||||
*/
|
||||
|
||||
/* ================================================================ */
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
|
||||
/* ================================================================ */
|
||||
|
||||
+9
@@ -1,5 +1,9 @@
|
||||
#ifndef __CARES_BUILD_H
|
||||
#define __CARES_BUILD_H
|
||||
/*
|
||||
* Copyright (C) The c-ares project and its contributors
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T @CARES_TYPEOF_ARES_SOCKLEN_T@
|
||||
#define CARES_TYPEOF_ARES_SSIZE_T @CARES_TYPEOF_ARES_SSIZE_T@
|
||||
@@ -8,6 +12,7 @@
|
||||
* files. We need to include some dependent headers that may be system specific
|
||||
* for C-Ares */
|
||||
#cmakedefine CARES_HAVE_SYS_TYPES_H
|
||||
#cmakedefine CARES_HAVE_SYS_RANDOM_H
|
||||
#cmakedefine CARES_HAVE_SYS_SOCKET_H
|
||||
#cmakedefine CARES_HAVE_WINDOWS_H
|
||||
#cmakedefine CARES_HAVE_WS2TCPIP_H
|
||||
@@ -20,6 +25,10 @@
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef CARES_HAVE_SYS_RANDOM_H
|
||||
# include <sys/random.h>
|
||||
#endif
|
||||
|
||||
#ifdef CARES_HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
Vendored
+25
-14
@@ -1,20 +1,31 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) 2009 Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#ifndef __CARES_BUILD_H
|
||||
#define __CARES_BUILD_H
|
||||
|
||||
|
||||
/* Copyright (C) 2009 - 2021 by Daniel Stenberg et al
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software and its
|
||||
* documentation for any purpose and without fee is hereby granted, provided
|
||||
* that the above copyright notice appear in all copies and that both that
|
||||
* copyright notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or
|
||||
* publicity pertaining to distribution of the software without specific,
|
||||
* written prior permission. M.I.T. makes no representations about the
|
||||
* suitability of this software for any purpose. It is provided "as is"
|
||||
* without express or implied warranty.
|
||||
*/
|
||||
|
||||
/* ================================================================ */
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
|
||||
/* ================================================================ */
|
||||
|
||||
Vendored
+26
-15
@@ -1,21 +1,32 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) Massachusetts Institute of Technology
|
||||
* Copyright (c) The c-ares project and its contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#ifndef HEADER_CARES_DNS_H
|
||||
#define HEADER_CARES_DNS_H
|
||||
|
||||
/* Copyright 1998, 2011 by the Massachusetts Institute of Technology.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this
|
||||
* software and its documentation for any purpose and without
|
||||
* fee is hereby granted, provided that the above copyright
|
||||
* notice appear in all copies and that both that copyright
|
||||
* notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of M.I.T. not be used in
|
||||
* advertising or publicity pertaining to distribution of the
|
||||
* software without specific, written prior permission.
|
||||
* M.I.T. makes no representations about the suitability of
|
||||
* this software for any purpose. It is provided "as is"
|
||||
* without express or implied warranty.
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE TO INTEGRATORS:
|
||||
*
|
||||
|
||||
Vendored
+26
@@ -1,3 +1,29 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) Massachusetts Institute of Technology
|
||||
* Copyright (c) Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef ARES_NAMESER_H
|
||||
#define ARES_NAMESER_H
|
||||
|
||||
Vendored
+25
-14
@@ -1,20 +1,31 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) 2009 Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
#ifndef __CARES_RULES_H
|
||||
#define __CARES_RULES_H
|
||||
|
||||
|
||||
/* Copyright (C) 2009 - 2021 by Daniel Stenberg et al
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software and its
|
||||
* documentation for any purpose and without fee is hereby granted, provided
|
||||
* that the above copyright notice appear in all copies and that both that
|
||||
* copyright notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or
|
||||
* publicity pertaining to distribution of the software without specific,
|
||||
* written prior permission. M.I.T. makes no representations about the
|
||||
* suitability of this software for any purpose. It is provided "as is"
|
||||
* without express or implied warranty.
|
||||
*/
|
||||
|
||||
/* ================================================================ */
|
||||
/* COMPILE TIME SANITY CHECKS */
|
||||
/* ================================================================ */
|
||||
|
||||
Vendored
+29
-4
@@ -1,17 +1,42 @@
|
||||
/* MIT License
|
||||
*
|
||||
* Copyright (c) Daniel Stenberg
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef ARES__VERSION_H
|
||||
#define ARES__VERSION_H
|
||||
|
||||
/* This is the global package copyright */
|
||||
#define ARES_COPYRIGHT "2004 - 2021 Daniel Stenberg, <daniel@haxx.se>."
|
||||
#define ARES_COPYRIGHT "2004 - 2023 Daniel Stenberg, <daniel@haxx.se>."
|
||||
|
||||
#define ARES_VERSION_MAJOR 1
|
||||
#define ARES_VERSION_MINOR 19
|
||||
#define ARES_VERSION_PATCH 1
|
||||
#define ARES_VERSION_MINOR 20
|
||||
#define ARES_VERSION_PATCH 0
|
||||
#define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\
|
||||
(ARES_VERSION_MINOR<<8)|\
|
||||
(ARES_VERSION_PATCH))
|
||||
#define ARES_VERSION_STR "1.19.1"
|
||||
#define ARES_VERSION_STR "1.20.0"
|
||||
|
||||
#if (ARES_VERSION >= 0x010700)
|
||||
# define CARES_HAVE_ARES_LIBRARY_INIT 1
|
||||
|
||||
Loaded 100 of 228 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user