lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | Changelog for the c-ares project. Generated with git2changes.pl |
| 2 | |
| 3 | Version 1.12.0 (29 Sep 2016) |
| 4 | |
| 5 | Daniel Stenberg (29 Sep 2016) |
| 6 | - RELEASE-NOTES: 1.12.0 |
| 7 | |
| 8 | - [David Drysdale brought this change] |
| 9 | |
| 10 | ares-test-misc: test ares_create_query with escaped trailing dot |
| 11 | |
| 12 | - ares_create_query: avoid single-byte buffer overwrite |
| 13 | |
| 14 | ... when the name ends with an escaped dot. |
| 15 | |
| 16 | CVE-2016-5180 |
| 17 | |
| 18 | Bug: https://c-ares.haxx.se/adv_20160929.html |
| 19 | |
| 20 | - ares_library_initialized.3: added |
| 21 | |
| 22 | - make: bump CARES_VERSION_INFO for release |
| 23 | |
| 24 | David Drysdale (29 Sep 2016) |
| 25 | - man: update ares_init_options.3 |
| 26 | |
| 27 | Daniel Stenberg (29 Sep 2016) |
| 28 | - ares_library_init.3: corrected the ares_library_init_mem proto |
| 29 | |
| 30 | - README.md: remove space from link |
| 31 | |
| 32 | - README: link to the correct c-ares badge! |
| 33 | |
| 34 | Reported-by: David Hotham |
| 35 | |
| 36 | Fixes #63 |
| 37 | |
| 38 | - docs: minor formatting edits |
| 39 | |
| 40 | - ares_destroy.3: formatting polish |
| 41 | |
| 42 | - ares_init.3: split the init docs into two separate man pages |
| 43 | |
| 44 | - SECURITY: point to the vulnerabilities page now |
| 45 | |
| 46 | - RELEASE-NOTES: synced with daa7235b1a5 |
| 47 | |
| 48 | - ares_create_query.3: edit language |
| 49 | |
| 50 | Tried to make the man page more readable. |
| 51 | |
| 52 | David Drysdale (26 Sep 2016) |
| 53 | - test: fix gMock to work with gcc >= 6.x |
| 54 | |
| 55 | Taken from: |
| 56 | https://github.com/google/googletest/issues/705#issuecomment-235067917 |
| 57 | |
| 58 | Daniel Stenberg (26 Sep 2016) |
| 59 | - [Brad House brought this change] |
| 60 | |
| 61 | headers: remove checks for and defines of variable sizes |
| 62 | |
| 63 | ... they're not really used and by avoiding them in the ares_build.h |
| 64 | output we make the public header less dependent on data sizes. |
| 65 | |
| 66 | David Drysdale (24 Sep 2016) |
| 67 | - api: add ARES_OPT_NOROTATE optmask value |
| 68 | |
| 69 | Fix up a couple of problems with configuring whether c-ares rotates |
| 70 | between different name servers between requests. |
| 71 | |
| 72 | Firstly, ares_save_options() returns (in *optmask) the value of |
| 73 | (channel->optmask & ARES_OPT_ROTATE), which doesn't necessarily |
| 74 | indicate whether the channel is or is not actually doing rotation. |
| 75 | This can be confusing/incorrect if: |
| 76 | - the channel was originally configured without ARES_OPT_ROTATE |
| 77 | (so it appears that the channel is not rotating) |
| 78 | - the /etc/resolv.conf file includes the 'rotate' option |
| 79 | (so the channel is actually performing rotation). |
| 80 | |
| 81 | Secondly, it is not possible to reliably configure a channel |
| 82 | to not-rotate; leaving off ARES_OPT_ROTATE is not enough, since |
| 83 | a 'rotate' option in /etc/resolv.conf will turn it on again. |
| 84 | |
| 85 | Therefore: |
| 86 | - add an ARES_OPT_NOROTATE optmask value to allow explicit |
| 87 | configuration of no-rotate behaviour |
| 88 | - in ares_save_options(), report the value of channel->rotate |
| 89 | as exactly one of (optmask & ARES_OPT_ROTATE) or |
| 90 | (optmask & ARES_OPT_NOROTATE). |
| 91 | |
| 92 | In terms of back-compatibility: |
| 93 | - existing apps that set ARES_OPT_ROTATE will continue to rotate, |
| 94 | and to have ARES_OPT_ROTATE reported back from ares_save_options() |
| 95 | - existing apps that don't set ARES_OPT_ROTATE will continue to |
| 96 | use local config/defaults to decide whether to rotate, and will |
| 97 | now get ARES_OPT_ROTATE or ARES_OPT_NOROTATE reported back from |
| 98 | ares_save_options() rather than 0. |
| 99 | |
| 100 | - ares_init_options: only propagate init failures from options |
| 101 | |
| 102 | Commit 46bb820be3a8 ("ares_init_options: don't lose init failure") |
| 103 | changed init behaviour so that earlier errors in initialization |
| 104 | weren't lost. In particular, if the user passes in specific |
| 105 | options but they are not applied (e.g. because of an allocation |
| 106 | failure), that failure needs to be reported back to the user; this |
| 107 | also applies when duplicating a channel with ares_dup(). |
| 108 | |
| 109 | However, other initialization failures can be ignored and |
| 110 | overridden -- in particular, if init_by_resolv_conf() or |
| 111 | init_by_environment() fail, then falling back to default values |
| 112 | is OK. |
| 113 | |
| 114 | So only preserve failures from the init_by_options() stage, not |
| 115 | from all initialization stages. |
| 116 | |
| 117 | Fixes issue 60. |
| 118 | |
| 119 | - test: Force reinstall of libtool on OSX |
| 120 | |
| 121 | Travis build environment appears to have changed. |
| 122 | |
| 123 | - test: Add valgrind build variant |
| 124 | |
| 125 | - test: Add null pointer to gtest args |
| 126 | |
| 127 | GoogleTest assumes that there is a null pointer in argv[argc], |
| 128 | so make it look like that. Without this change, tests run with |
| 129 | command-line arguments get memory errors under valgrind/ASAN. |
| 130 | |
| 131 | Daniel Stenberg (21 Aug 2016) |
| 132 | - AUTHOR: maybe gitgub isn't really an author =) |
| 133 | |
| 134 | - AUTHORS: added contributors from the git log |
| 135 | |
| 136 | - LICENSE.md: add a stand-alone license file |
| 137 | |
| 138 | Just the MIT license used in the top the source files moved out to a |
| 139 | stand-alone file for easier reference and discovery. |
| 140 | |
| 141 | - README: added "CII best practices" badge |
| 142 | |
| 143 | - SECURITY.md: suggested "security process" for the project |
| 144 | |
| 145 | David Drysdale (17 Aug 2016) |
| 146 | - test: Add Clang static analysis build to Travis |
| 147 | |
| 148 | Run scan-build over the library source code, but skip the |
| 149 | tests. Needs a later Clang install in Travis |
| 150 | |
| 151 | - test: more info on how to run fuzz testing |
| 152 | |
| 153 | - test: make fuzzer driver code C not C++ |
| 154 | |
| 155 | - test: fuzzer mode for AFL's persistent mode |
| 156 | |
| 157 | When fuzzing with AFL, if the LLVM-based instrumentation is |
| 158 | used (via the afl-clang-fast wrapper), then it is possible to |
| 159 | have a single execution of the fuzzer program iterate multiple |
| 160 | times over the fuzzing entrypoint (similar to libFuzzer's normal |
| 161 | mode of execution) with different data. This is much (e.g. 10x) |
| 162 | faster. |
| 163 | |
| 164 | Add code to support this, by checking whether __AFL_LOOP is |
| 165 | defined at compile-time. |
| 166 | |
| 167 | Also, shift the code to effectively be C rather than C++. |
| 168 | |
| 169 | - test: simplify deps for fuzzer entrypoint |
| 170 | |
| 171 | No need to depend on the rest of the test code (ares-test.h) for |
| 172 | the fuzzer entrypoint; this makes the entrypoint slightly simpler |
| 173 | to build with LLVM's libFuzzer. |
| 174 | |
| 175 | Also shift the code to effectively be C rather than C++ |
| 176 | |
| 177 | - test: disable MinGW tests |
| 178 | |
| 179 | The test binary built in the MinGW build is failing for some |
| 180 | reason. It works for me when I build locally, so I'm guessing |
| 181 | it's down to some sort of AppVeyor environment issue. |
| 182 | |
| 183 | Disable for now. |
| 184 | |
| 185 | Daniel Stenberg (16 Aug 2016) |
| 186 | - read_tcp_data: remove superfluous NULL check |
| 187 | |
| 188 | CID 56884 by Coverity. The pointer is already derefenced before this |
| 189 | point so it can't be NULL here anyway. |
| 190 | |
| 191 | - web: http => https |
| 192 | |
| 193 | GitHub (20 Jul 2016) |
| 194 | - [David Drysdale brought this change] |
| 195 | |
| 196 | Merge pull request #59 from fuze/master |
| 197 | |
| 198 | Update msvc_ver.inc for VS2015 Update 3 |
| 199 | |
| 200 | - [Chris Araman brought this change] |
| 201 | |
| 202 | Update msvc_ver.inc |
| 203 | |
| 204 | support Visual Studio 2015 Update 3 |
| 205 | |
| 206 | David Drysdale (2 May 2016) |
| 207 | - Fix trailing comment for #endif |
| 208 | |
| 209 | Daniel Stenberg (30 Apr 2016) |
| 210 | - email: use Gisle's "new" address |
| 211 | |
| 212 | David Drysdale (18 Apr 2016) |
| 213 | - test: drop superfluous fuzz inputs |
| 214 | |
| 215 | Where there are multiple fuzz input files that only differ in |
| 216 | the first two bytes (the query ID), just keep the first such |
| 217 | file. |
| 218 | |
| 219 | svante karlsson (15 Apr 2016) |
| 220 | - Update msvc_ver.inc |
| 221 | |
| 222 | support Visual Studio 2015 Update 2 |
| 223 | |
| 224 | David Drysdale (31 Mar 2016) |
| 225 | - test: Run fuzzcheck.sh in Travis build |
| 226 | |
| 227 | - test: add fuzzing check script to tests |
| 228 | |
| 229 | Add a test script that runs the fuzzing command over the |
| 230 | corpus of DNS packets. This doesn't actually do any fuzzing |
| 231 | (it just runs them as inputs without generating any variations) |
| 232 | but it does ensure that the fuzzing entrypoint is still working. |
| 233 | |
| 234 | - test: allow multiple files in aresfuzz command line |
| 235 | |
| 236 | If no arguments are specified, use stdin as input. |
| 237 | Otherwise treat each argument as a filename and feed |
| 238 | its contents to the fuzz entrypoint. |
| 239 | |
| 240 | - test: Add corpus of DNS packets |
| 241 | |
| 242 | For fuzz testing it is useful to start from a corpus of valid |
| 243 | packets, so fill out the test/fuzzinput/ directory with a bunch |
| 244 | of inputs. |
| 245 | |
| 246 | These packets were generated by temporarily modifying the c-ares |
| 247 | process_answer() function to save off any incoming response messages. |
| 248 | |
| 249 | - test: Add utility to show DNS packet from file |
| 250 | |
| 251 | - [nordsturm brought this change] |
| 252 | |
| 253 | Fix nsort initialization |
| 254 | |
| 255 | Author: Alexander Drachevskiy |
| 256 | http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0004.shtml |
| 257 | http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0014.shtml |
| 258 | |
| 259 | - test: Check setting nsort=0 option is respected |
| 260 | |
| 261 | - test: Update fuzzing function prototype |
| 262 | |
| 263 | libFuzzer changed expected return type from void to int |
| 264 | in LLVM 3.8. |
| 265 | |
| 266 | - Explicitly clear struct servent before use |
| 267 | |
| 268 | On a build where MSAN has been manually set up (which involves |
| 269 | using an MSAN-instrumented version of the standard C++ library, see |
| 270 | https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo) |
| 271 | there's a warning about use of uninitialized memory here. It |
| 272 | might be a false positive, but the fix is trivial so include it. |
| 273 | |
| 274 | - test: for AF_UNSPEC, return CNAME only for AAAA, but valid A record |
| 275 | |
| 276 | Also shuffle expected responses rsp6/rsp4 into the order they will occur. |
| 277 | |
| 278 | - [Chris Araman brought this change] |
| 279 | |
| 280 | msvc_ver.inc: support Visual Studio 2015 Update 1 |
| 281 | |
| 282 | - build: commonize MSVC version detection |
| 283 | |
| 284 | Remove the need to copy/paste version number mapping between |
| 285 | Makefile.msvc and test/Makefile.msvc. |
| 286 | |
| 287 | - test: Use different name in live test |
| 288 | |
| 289 | - test: Only pass unused args to GoogleTest |
| 290 | |
| 291 | - ahost.c: add cast to fix C++ compile |
| 292 | |
| 293 | If ahost.c is force-compiled as C++ the missing cast from |
| 294 | (void *) to (char **) is problematic. |
| 295 | |
| 296 | - ares_library_cleanup: reset ares_realloc too |
| 297 | |
| 298 | Otherwise a subsequent use of the library might use a previous |
| 299 | incarnation's realloc() implementation. |
| 300 | |
| 301 | Daniel Stenberg (9 Mar 2016) |
| 302 | - [Brad House brought this change] |
| 303 | |
| 304 | configure: check if tests can get built before enabled |
| 305 | |
| 306 | The current approach for disabling tests is not a good solution because |
| 307 | it forces you to pass --disable-tests, rather than auto-detect if your |
| 308 | system can support the tests in the first place. Many (most?) systems |
| 309 | do not have C++11. This also causes issues when chain-building c-ares, |
| 310 | the hosting system needs to be updated to support passing this |
| 311 | additional flag if necessary, it doesn't seem reasonable to add this |
| 312 | requirement which breaks compatibility. |
| 313 | |
| 314 | This change auto-detects if the system can build the tests and |
| 315 | automatically disable them if it cannot. If you pass --enable-tests to |
| 316 | configure and the system cannot build them either due to lack of system |
| 317 | support, or because cross-compilation is being used, it will throw an |
| 318 | appropriate error since the user indicated they really did want the |
| 319 | tests. |
| 320 | |
| 321 | David Drysdale (3 Mar 2016) |
| 322 | - [Viktor Szakats brought this change] |
| 323 | |
| 324 | Makefile.m32: add support for CROSSPREFIX |
| 325 | |
| 326 | - [Viktor Szakats brought this change] |
| 327 | |
| 328 | Makefile.m32: add support for extra flags |
| 329 | |
| 330 | Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars |
| 331 | for mingw |
| 332 | |
| 333 | - test: Build with MinGW on AppVeyor |
| 334 | |
| 335 | - test: avoid in6addr_* constants |
| 336 | |
| 337 | These aren't available on MinGW, so use explicit addresses instead. |
| 338 | |
| 339 | - test: add missing #includes for dns-proto.cc |
| 340 | |
| 341 | - [Gregor Jasny brought this change] |
| 342 | |
| 343 | Fix man page typos detected by Lintian |
| 344 | |
| 345 | Daniel Stenberg (19 Feb 2016) |
| 346 | - configure: acknowledge --disable-tests |
| 347 | |
| 348 | Fixes #44 |
| 349 | |
| 350 | - AUTHORS: added contributors from the 1.11.0 release |
| 351 | |
| 352 | - bump: start working on the next version |
| 353 | |
| 354 | Version 1.11.0 (19 Feb 2016) |
| 355 | |
| 356 | Daniel Stenberg (19 Feb 2016) |
| 357 | - RELEASE-NOTES: final edits for 1.11.0 |
| 358 | |
| 359 | David Drysdale (15 Feb 2016) |
| 360 | - ares_dup.3: remove mention of nonexistent function |
| 361 | |
| 362 | ares_dup_options() doesn't exist, so don't document it. |
| 363 | |
| 364 | - test: skip repeated build steps |
| 365 | |
| 366 | Top-level buildconf/configure now triggers for the |
| 367 | test/ subdir too, so don't need to do explicitly. |
| 368 | |
| 369 | - test: namespaces unavailable when cross-compiling |
| 370 | |
| 371 | Daniel Stenberg (13 Feb 2016) |
| 372 | - configure: only run configure in test when NOT cross-compiling |
| 373 | |
| 374 | ... as the tests won't run cross-compiled anyway |
| 375 | |
| 376 | David Drysdale (13 Feb 2016) |
| 377 | - test: prefer ON_CALL to EXPECT_CALL to reduce flakes |
| 378 | |
| 379 | For UDP tests, there's a chance of a retry. EXPECT_CALL only |
| 380 | expects a single request to arrive at the server; ON_CALL allows |
| 381 | for a UDP retry and repeats the same answer. |
| 382 | |
| 383 | Note that ON_CALL and EXPECT_CALL can't be mixed in the same |
| 384 | test, and that tests that have a varied sequence of responses |
| 385 | for the same repeated request still have to use EXPECT_CALL. |
| 386 | |
| 387 | Daniel Stenberg (13 Feb 2016) |
| 388 | - configure: run configure in 'test' too |
| 389 | |
| 390 | Having the test dir completely stand-alone causes too many issues for |
| 391 | users and devs. It still needs to be built specifically. |
| 392 | |
| 393 | - configure: build silently by default |
| 394 | |
| 395 | - buildconf: run test/buildconf too if present |
| 396 | |
| 397 | - test/configure: build silently by default |
| 398 | |
| 399 | - [Gregor Jasny brought this change] |
| 400 | |
| 401 | dist: Distribute README.md |
| 402 | |
| 403 | Closes #42 |
| 404 | |
| 405 | Version 1.11.0 (11 Feb 2016) |
| 406 | |
| 407 | Daniel Stenberg (11 Feb 2016) |
| 408 | - Makefile.am: distribute the test dir too |
| 409 | |
| 410 | - RELEASE-NOTES: synced with 385582bd14b68a |
| 411 | |
| 412 | - [Nicolas \"Pixel\" Noble brought this change] |
| 413 | |
| 414 | ares_win32_init: make LoadLibrary work when using UNICODE too |
| 415 | |
| 416 | Closes #17 |
| 417 | |
| 418 | David Drysdale (11 Feb 2016) |
| 419 | - Use "resolve" as synonym of "dns" in nsswitch.conf |
| 420 | |
| 421 | Modern Linux systems may have libnss_resolve from systemd as the |
| 422 | resolver, which is then configured in /etc/nsswitch.conf with |
| 423 | the "resolve" keyword rather than "dns". |
| 424 | |
| 425 | Fixes #33 |
| 426 | |
| 427 | - ares_set_socket_callback: make manpage match code |
| 428 | |
| 429 | The code in ares_process.c that invokes the socket creation/connection |
| 430 | callback only checks for rc < 0, not for standard ares error codes. |
| 431 | |
| 432 | - Merge pull request #36 from AGWA-forks/master |
| 433 | |
| 434 | Add ares_set_socket_configure_callback() |
| 435 | |
| 436 | - test: Update init tests to match behaviour |
| 437 | |
| 438 | Unreadable config files are now treated the same way |
| 439 | as absent config files. |
| 440 | |
| 441 | - [Fedor Indutny brought this change] |
| 442 | |
| 443 | Ignore `fopen` errors to use default values |
| 444 | |
| 445 | After 46bb820be3a83520e70e6c5f0c5133253fcd69cd `init_by_resolv_conf` |
| 446 | errors are no longer swallowed in `ares_init_options`. This has exposed |
| 447 | a previously unknown bug in `lookups` initialization code. |
| 448 | |
| 449 | If there is no lookup configuration in `resolv.conf`, |
| 450 | `init_by_resolv_conf` will attempt to read it from other files available |
| 451 | on the system. However, some of these files may have restricted |
| 452 | permissions (like `600`), which will lead to `EACCESS` errno, which in |
| 453 | turn is handled like a fatal error by `init_by_resolv_conf`. |
| 454 | |
| 455 | However, it sounds illogical that this error should be handled as a |
| 456 | fatal. There is a `init_by_defaults` call that overrides `lookups` with |
| 457 | default value, and certainly possible absence of lookup information is |
| 458 | the reason why this function exists in a first place! |
| 459 | |
| 460 | I suggest handling any `fopen` errors as non-fatal ones, allowing to |
| 461 | pick up the `lookups` value from different config files, or to pick up |
| 462 | default value. |
| 463 | |
| 464 | Andrew Ayer (9 Feb 2016) |
| 465 | - Document callback type in man page for ares_set_socket_callback |
| 466 | |
| 467 | - Add ares_set_socket_configure_callback() |
| 468 | |
| 469 | This function sets a callback that is invoked after the socket is |
| 470 | created, but before the connection is established. This is an ideal |
| 471 | time to customize various socket options. |
| 472 | |
| 473 | David Drysdale (9 Feb 2016) |
| 474 | - test: ares_set_socket_callback failure behaviour |
| 475 | |
| 476 | - test: Check ares_parse_txt_reply_ext() entrypoint |
| 477 | |
| 478 | - [Fedor Indutny brought this change] |
| 479 | |
| 480 | txt: introduce `ares_parse_txt_reply_ext` |
| 481 | |
| 482 | Introduce `ares_txt_ext` structure with an extra `record_start` |
| 483 | field, which indicates a start of a new TXT record, thus allowing to |
| 484 | differentiate the chunks in the same record, from a chunks in a |
| 485 | different record. |
| 486 | |
| 487 | Introduce a new API method: `ares_parse_txt_reply_ext` that works with |
| 488 | this kind of struct. |
| 489 | |
| 490 | - doc: Update missed repo references |
| 491 | |
| 492 | - doc: Update docs on contributing |
| 493 | |
| 494 | - test: Run command line tools in Travis |
| 495 | |
| 496 | Do a quick execution of each of the command line tools |
| 497 | in the continuous integration build, so that any (say) |
| 498 | sanitizer failures show up. |
| 499 | |
| 500 | - acountry: drop inert test |
| 501 | |
| 502 | If ver_1 is true, then z0 and z1 must both be 'z', and so |
| 503 | (z0 != 'z' && z1 != 'z') can never be true. |
| 504 | |
| 505 | CID 56879, pointed out by Coverity. |
| 506 | |
| 507 | - doc: update badge locations to master repo |
| 508 | |
| 509 | - test: Enable maintainer mode + debug in Travis |
| 510 | |
| 511 | - test: Add an iOS build target |
| 512 | |
| 513 | - test: Ignore SIGPIPE in tests |
| 514 | |
| 515 | - test: More initialization tests |
| 516 | |
| 517 | - test: Improve containerized test mechanism |
| 518 | |
| 519 | Aim is to ensure that code coverage information can escape the |
| 520 | container. To do this: |
| 521 | - Enter a new mount namespace too, so that we can... |
| 522 | - Bind mount the expected source directory into the container |
| 523 | - Share memory with the sub-process so coverage information is |
| 524 | shared too. |
| 525 | |
| 526 | - test: Make contained tests easier to write |
| 527 | |
| 528 | - test: Add framework for containerized testing |
| 529 | |
| 530 | On Linux we can potentially use user and UTS namespaces to run a test |
| 531 | in a pseudo-container with: |
| 532 | - arbitrary filesystem (e.g. /etc/resolv.conf, /etc/nsswitch.conf, /etc/hosts) |
| 533 | - arbitrary hostname/domainname. |
| 534 | |
| 535 | Include a first pass at the framework code to allow this, along with a |
| 536 | first test case that uses the container. |
| 537 | |
| 538 | - test: Use a longer timeout for less flakiness |
| 539 | |
| 540 | Having occasional test failures from timeout before multiple |
| 541 | queries can complete, so up the default timeout for the test |
| 542 | from 100ms to 1500ms. |
| 543 | |
| 544 | - test: Make failure tests more robust |
| 545 | |
| 546 | Different platforms will do different numbers of allocations |
| 547 | in the processing of a given API call; just check that the |
| 548 | return code is either success or ENOMEM, and free off any |
| 549 | returned state in the former case. |
| 550 | |
| 551 | Also cope with ECONNREFUSED as well as ENOTFOUND. |
| 552 | |
| 553 | - test: Get test code building under Windows |
| 554 | |
| 555 | - Initial nmake file based off library nmake file |
| 556 | - Cast socket call arguments to (char *) |
| 557 | - Use wrapper sclose() that maps to closesocket() or close() |
| 558 | - Build a config.h indicating presence of headers |
| 559 | - Conditionally include netdb.h |
| 560 | - Remove unnecessary include of sys/socket.h |
| 561 | - Force longer bitmask for allocation failure tracking |
| 562 | - Call WSAStartup() / WSACleanup() in main() |
| 563 | - Set TCP_NODELAY for mock server |
| 564 | - Turn on tests in AppVeyor build |
| 565 | |
| 566 | - test: Disable tests that manipulate env on Windows |
| 567 | |
| 568 | - test: Move file lists into Makefile.inc |
| 569 | |
| 570 | In preparation for a Win32 build of the test suite. |
| 571 | |
| 572 | - test: Add a simple multi-server test |
| 573 | |
| 574 | Check rotate option does something |
| 575 | |
| 576 | - test: Allow for multiple mock servers |
| 577 | |
| 578 | - Update the MockServer to allow separate specification of |
| 579 | UDP and TCP ports |
| 580 | - Have an array of mock servers listening on consecutive |
| 581 | sets of ports. |
| 582 | - Rename Process(fd) to ProcessFD(fd) to avoid confusion. |
| 583 | - Initialize channel by using the new ares_set_servers_ports() |
| 584 | entrypoint, so multiple ports on the same loopback address |
| 585 | can be used. |
| 586 | |
| 587 | - test: Update test for set/get_servers variants |
| 588 | |
| 589 | Ports are significant in the _ports_ variant functions, so update test to cope. |
| 590 | |
| 591 | - test: Make GetNameServers() utility function port-aware |
| 592 | |
| 593 | Also make it generally available. |
| 594 | |
| 595 | - test: more testing, including of internal static functions |
| 596 | |
| 597 | - test: more tests, especially fallback processing |
| 598 | |
| 599 | - Make mock server listen on UDP + TCP in parallel. |
| 600 | - Test UDP->TCP fallback on truncation |
| 601 | - Test EDNS->no-EDNS fallback |
| 602 | - Test some environment init options |
| 603 | - Test nonsense reply |
| 604 | |
| 605 | test: short response |
| 606 | |
| 607 | - test: more tests, particularly of initialization |
| 608 | |
| 609 | - test: Run mock tests over both TCP and UDP |
| 610 | |
| 611 | With the exception of a few tests that make use of the timed |
| 612 | retry aspect of UDP. |
| 613 | |
| 614 | - test: Run mock tests over both IPv4 and IPv6 |
| 615 | |
| 616 | - test: Add more tests for edge cases |
| 617 | |
| 618 | - test: more nooks and crannies of pton functions |
| 619 | |
| 620 | - test: More tests for PTR parsing |
| 621 | |
| 622 | - test: Use of HOSTALIAS environment variable |
| 623 | |
| 624 | - test: Add RAII utility classes for testing |
| 625 | |
| 626 | - TempFile holds specific contents |
| 627 | - EnvValue sets an environment variable |
| 628 | |
| 629 | - test: More search domain scenarios |
| 630 | |
| 631 | - test: Remove duplicate flags from Makefile.am |
| 632 | |
| 633 | - test: Make test code leak-free |
| 634 | |
| 635 | - test: More tests |
| 636 | |
| 637 | - test use of sortlist |
| 638 | - test gethostbyname(AF_UNSPEC) |
| 639 | |
| 640 | - test: Test ares_gethostbyname_file() |
| 641 | |
| 642 | - test: Add more tests of ares_getnameinfo() |
| 643 | |
| 644 | - test: Tweak tests, add alloc failure test |
| 645 | |
| 646 | - test: Test init with options |
| 647 | |
| 648 | - test: More tests |
| 649 | |
| 650 | - ares_inet_net_pton() variants |
| 651 | - ares_getsock() variants |
| 652 | |
| 653 | - test: Expose ProcessWork() function |
| 654 | |
| 655 | - test: More parsing tests |
| 656 | |
| 657 | Including: |
| 658 | - Split each parse function test set out into separate files. |
| 659 | - Add an allocation failure test for each parsing function. |
| 660 | - Add error check test for each parsing function. |
| 661 | |
| 662 | - test: Add various additional tests |
| 663 | |
| 664 | - test: More tests |
| 665 | |
| 666 | Include tests of internal functions, based on the value of the |
| 667 | CARES_SYMBOL_HIDING macro; need to configure the library with |
| 668 | --disable-symbol-hiding to enable these tests. |
| 669 | |
| 670 | - test: Allow command line override of mock server port |
| 671 | |
| 672 | - test: Add README.md documentation |
| 673 | |
| 674 | - test: Temporarily avoid latest Python requests package |
| 675 | |
| 676 | Currently get error from Travis on this install step, and downgrading one |
| 677 | version appears to fix the problem. |
| 678 | |
| 679 | "Could not find any downloads that satisfy the requirement pyOpenSSL>=0.13 |
| 680 | (from requests[security])" |
| 681 | |
| 682 | - test: Add AppVeyor config file for Windows build |
| 683 | |
| 684 | - test: Add configuration for a Travis build |
| 685 | |
| 686 | Cover Linux & OSX on the container infrastructure, but install |
| 687 | a later G++ to satisfy the tests' need for C++11. |
| 688 | |
| 689 | Use a build matrix to include a variety of build variants: |
| 690 | - ASAN |
| 691 | - UBSAN |
| 692 | - LSAN |
| 693 | - Coverage via coveralls.io |
| 694 | |
| 695 | test: invoke ASAN and coverage in Travis build |
| 696 | |
| 697 | Also shift to use explicit build matrix |
| 698 | |
| 699 | test: Use coveralls.io for coverage tracking |
| 700 | |
| 701 | test: Add a build with UBSAN |
| 702 | |
| 703 | Also expand and re-order the setting of environment variables |
| 704 | for easier modification. |
| 705 | |
| 706 | test: Add LSAN build to Travis config |
| 707 | |
| 708 | - test: Add initial unit tests for c-ares library |
| 709 | |
| 710 | The tests are written in C++11, using the GoogleTest and GoogleMock |
| 711 | frameworks. They have their own independent autoconf setup, so that |
| 712 | users of the library need not have a C++ compiler just to get c-ares |
| 713 | working (however, the test/configure.ac file does assume the use of |
| 714 | a shared top-level m4/ directory). However, this autoconf setup has |
| 715 | only been tested on Linux and OSX so far. |
| 716 | |
| 717 | Run with "./arestest", or "./arestest -v" to see extra debug info. |
| 718 | The GoogleTest options for running specific tests are also |
| 719 | available (e.g. "./arestest --gtest_filter=*Live*"). |
| 720 | |
| 721 | The tests are nowhere near complete yet (currently hitting around |
| 722 | 60% coverage as reported by gcov), but they do include examples |
| 723 | of a few different styles of testing: |
| 724 | |
| 725 | - There are live tests (ares-test-live.cc), which assume that the |
| 726 | current machine has a valid DNS setup and connection to the |
| 727 | internet; these tests issue queries for real domains but don't |
| 728 | particularly check what gets returned. The tests will fail on |
| 729 | an offline machine. |
| 730 | |
| 731 | - There a few mock tests (ares-test-mock.cc) that set up a fake DNS |
| 732 | server and inject its port into the c-ares library configuration. |
| 733 | These tests allow specific response messages to be crafted and |
| 734 | injected, and so are likely to be used for many more tests in |
| 735 | future. |
| 736 | |
| 737 | - To make this generation/injection easier, the dns-proto.h file |
| 738 | includes C++ helper classes for building DNS packets. |
| 739 | |
| 740 | - Other library entrypoints that don't require network activity |
| 741 | (e.g. ares_parse_*_reply) are tested directly. |
| 742 | |
| 743 | - There are few tests of library-internal functions that are not |
| 744 | normally visible to API users (in ares-test-internal.cc). |
| 745 | |
| 746 | - A couple of the tests use a helper method of the test fixture to |
| 747 | inject memory allocation failures, using the earlier change to the |
| 748 | library to allow override of malloc/realloc/free. |
| 749 | |
| 750 | - There is also an entrypoint to allow Clang's libfuzzer to drive |
| 751 | the packet parsing code in ares_parse_*_reply, together with a |
| 752 | standalone wrapper for it (./aresfuzz) to allow use of afl-fuzz |
| 753 | for further fuzz testing. |
| 754 | |
| 755 | - test: Add local copy of GoogleMock/GoogleTest 1.7.0 |
| 756 | |
| 757 | Don't check in gtest/m4 files, as they are unused and interfere |
| 758 | with the top-level configure process. |
| 759 | |
| 760 | - doc: Show build badges in README.md |
| 761 | |
| 762 | Note that these URLs will need to be updated if/when the test branch |
| 763 | gets pulled into the master repo/branch. |
| 764 | |
| 765 | - doc: Convert README to README.md |
| 766 | |
| 767 | Gives better display on GitHub |
| 768 | |
| 769 | - doc: Update in preparation for next release |
| 770 | |
| 771 | Assume 1.11.0 is next (as there are various API additions). |
| 772 | Also add myself to AUTHORS. |
| 773 | |
| 774 | - build: Allow header compilation by Windows C++ compiler |
| 775 | |
| 776 | - build: Expose whether symbol hiding is on |
| 777 | |
| 778 | Adding the CARES_SYMBOL_HIDING definition allows the test suite to |
| 779 | detect whether internal symbols are available or not. |
| 780 | |
| 781 | - build: Add autoconf macros for C++11 code using pthreads |
| 782 | |
| 783 | Pull in testing macros from the GNU autoconf archive to allow |
| 784 | configure scripts to test for and setup use of a C++11 compiler |
| 785 | (AX_CXX_COMPILE_STDCXX_11) and the pthreads library (AX_PTHREAD). |
| 786 | |
| 787 | Note that these macros are not used by the main library autoconf, |
| 788 | just by the tests (which share the same m4/ directory). |
| 789 | |
| 790 | - build: Add a code coverage option |
| 791 | |
| 792 | Configure with: |
| 793 | ./configure --enable-code-coverage |
| 794 | Show coverage output with: |
| 795 | make code-coverage-capture |
| 796 | |
| 797 | Built on m4/ax_code_coverage.m4 from the GNU autoconf archive |
| 798 | to provide the macros to check for presence of gcov + lcov; |
| 799 | upstream macro modified to: |
| 800 | - Remove use of $(AM_DEFAULT_VERBOSITY) , as earlier versions of |
| 801 | autoconf (such as the one used by default on Travis) do not have this. |
| 802 | - Rather than automatically defining CODE_COVERAGE_RULES to be a set |
| 803 | of makefile rules that use ifeq/endif (which is GNU make-specific), |
| 804 | instead only define CODE_COVERAGE_RULES if coverages is turned on, |
| 805 | and in that case don't use conditionals in the makefile. |
| 806 | |
| 807 | - api: Add entrypoints to allow use of per-server ports |
| 808 | |
| 809 | Add user-visible entrypoints ares_{get,set}_servers_ports(3), which |
| 810 | take struct ares_addr_port_node rather than struct ares_addr_node. |
| 811 | This structure includes a UDP and TCP port number; if this is set |
| 812 | to zero, the channel-wide port values are used as before. |
| 813 | |
| 814 | Similarly, add a new ares_set_servers_ports_csv(3) entrypoint, which |
| 815 | is analogous to ares_set_servers(3) except it doesn't ignore any |
| 816 | specified port information; instead, any per-server specified port |
| 817 | is used as both the UDP and TCP port for that server. |
| 818 | |
| 819 | The internal struct ares_addr is extended to hold the UDP/TCP ports, |
| 820 | stored in network order, with the convention that a value of zero |
| 821 | indicates that the channel-wide UDP/TCP port should be used. |
| 822 | |
| 823 | For the internal implementation of ares_dup(3), shift to use the |
| 824 | _ports() version of the get/set functions, so port information is |
| 825 | transferred correctly to the new channel. |
| 826 | |
| 827 | Update manpages, and add missing ares_set_servers_csv to the lists |
| 828 | while we're at it |
| 829 | |
| 830 | - api: Add ares_set_sortlist(3) entrypoint |
| 831 | |
| 832 | Allow explicit configuration of the channel's sortlist, by |
| 833 | specifying a string in the same format as the equivalent |
| 834 | /etc/resolv.conf option. |
| 835 | |
| 836 | This allows library users to perform the same configuration |
| 837 | that is available via /etc/resolv.conf, but without needing |
| 838 | to change that file. |
| 839 | |
| 840 | - api: Allow injection of user-specified malloc/free functions |
| 841 | |
| 842 | Add a new ares_library_init_mem() initialization function for the |
| 843 | library which allows the library user to specify their own malloc, |
| 844 | realloc & free equivalents for use library-wide. |
| 845 | |
| 846 | Store these function pointers in library-wide global variables, |
| 847 | defaulting to libc's malloc(), realloc() and free(). |
| 848 | |
| 849 | Change all calls to malloc, realloc and free to use the function pointer |
| 850 | instead. Also ensure that ares_strdup() is always available |
| 851 | (even if the local environment includes strdup(3)), and change the |
| 852 | library code to always use it. |
| 853 | |
| 854 | Convert calls to calloc() to use ares_malloc() + memset |
| 855 | |
| 856 | - api: Add option to expose some internal functions |
| 857 | |
| 858 | Purely for testing, add --enable-expose-statics option to configure |
| 859 | which converts some static internal functions to be externally visible. |
| 860 | |
| 861 | - api: Expose the ares_library_initialized() function |
| 862 | |
| 863 | - ahost: Allow repeated -s <domain> options |
| 864 | |
| 865 | This also removes a potential leak where later -s options would |
| 866 | replace earlier ones without freeing the relevant string. |
| 867 | |
| 868 | - Mark unhittable lines |
| 869 | |
| 870 | Add comments for the benefit of the lcov tool, marking |
| 871 | lines that cannot be hit. Typically these are fall-back |
| 872 | protection arms that are already covered by earlier checks, |
| 873 | and so it's not worth taking out the unhittable code (in case |
| 874 | someone changes the code between the two places in future). |
| 875 | |
| 876 | - ares_set_servers_csv.3: make return type match code |
| 877 | |
| 878 | - bitncmp: update comment to match code behaviour |
| 879 | |
| 880 | - ares_striendstr: fix so non-NULL return can happen |
| 881 | |
| 882 | This looks to have been broken since it was first introduced in 2005 in |
| 883 | commit aba0b775ea30 ("Added ares_getnameinfo which mimics the |
| 884 | getnameinfo API") |
| 885 | |
| 886 | - config_sortlist: free any existing sortlist on (re)alloc failure |
| 887 | |
| 888 | If we get an allocation failure on 2nd or later entry in the sortlist, the |
| 889 | code would return ENOMEM but still leave the initial entries allocated. |
| 890 | Ensure that *sortlist is set to NULL whenever ENOMEM is returned. |
| 891 | |
| 892 | - ares_dup: clear new channel on failure |
| 893 | |
| 894 | If the attempt to transfer IPv6 servers from the old to the new channel |
| 895 | fails, the previous code would still return a channel to the user even though |
| 896 | an error return code was generated. This makes it likely that users would |
| 897 | leak the channel, so explicitly clear the channel in this case. |
| 898 | |
| 899 | - ares_init_options: don't lose init failure |
| 900 | |
| 901 | If (say) init_by_options() fails, the subsequent call to |
| 902 | init_by_defaults() was overwriting the return code with |
| 903 | success. Still call init_by_defaults() regardless, but track |
| 904 | its return value separately |
| 905 | |
| 906 | - ares_gethostbyname: don't leak valid-but-empty hostent |
| 907 | |
| 908 | If an AF_UNSPEC query gets a valid response to its AAAA query, |
| 909 | but which has no IPv6 addresses in it, then the code chains on to |
| 910 | a A record query. However, the hostent from the AAAA response |
| 911 | was being leaked along the way (because it gets replaced before |
| 912 | the follow-on end_hquery() invocation). |
| 913 | |
| 914 | - ares_parse_txt_reply: propagate errors from per-substring loop |
| 915 | |
| 916 | If we get an allocation failure when processing a particular substring in a |
| 917 | TXT record, that failure is silently lost; fix that by propagating errors from |
| 918 | the inner loop to the outer loop. |
| 919 | |
| 920 | - process_answer: fix things up correctly when removing EDNS option |
| 921 | |
| 922 | When a server rejects an EDNS-equipped request, we retry without |
| 923 | the EDNS option. However, in TCP mode, the 2-byte length prefix was |
| 924 | being calculated wrong -- it was built from the answer length rather than |
| 925 | the length of the original request. |
| 926 | |
| 927 | Also, it is theoretically possible that the call to realloc() might change |
| 928 | the data pointed to; to allow for this, qbuf also needs updating. |
| 929 | |
| 930 | (Both these fixes were actually included in a patchset sent on the mailing |
| 931 | list in Oct 2012, but were included with other functional changes that |
| 932 | didn't get merged: |
| 933 | http://c-ares.haxx.se/mail/c-ares-archive-2012-10/0004.shtml) |
| 934 | |
| 935 | - ares__read_line: clear buf pointer on realloc failure |
| 936 | |
| 937 | - ares_expand_name: check for valid bits in label length |
| 938 | |
| 939 | The top two bits of the label length indicate whether this is a |
| 940 | label length (00) or an index to a name elsewhere in the message |
| 941 | (11). RFC1035 4.1.4 says that the other possible values for the |
| 942 | top two bits (01, 10) are reserved for future use. |
| 943 | |
| 944 | Daniel Stenberg (23 Jan 2016) |
| 945 | - [Gregor Jasny brought this change] |
| 946 | |
| 947 | Fix typos detected by lintian |
| 948 | |
| 949 | Closes #32 |
| 950 | |
| 951 | - [Gregor Jasny brought this change] |
| 952 | |
| 953 | Distribute all man pages |
| 954 | |
| 955 | - README.cares: s/I/Daniel |
| 956 | |
| 957 | ... and add a pointer to an existing version of the original area 1.1.1 |
| 958 | package.a |
| 959 | |
| 960 | - read_tcp_data: don't try to use NULL pointer after malloc failure |
| 961 | |
| 962 | CID 56884, pointed out by Coverity. We really should make this function |
| 963 | return an error code so that a malloc() failure can return back a major |
| 964 | failure. |
| 965 | |
| 966 | - configure_socket: explicitly ignore return code |
| 967 | |
| 968 | CID 56889 in Coverity pointed out the return code from setsocknonblock() |
| 969 | is ignored, and this added typecast to (void) makes it explicit. |
| 970 | |
| 971 | - ahost: check the select() return code |
| 972 | |
| 973 | Fixes CID 137189, pointed out by Coverity |
| 974 | |
| 975 | David Drysdale (18 Jan 2016) |
| 976 | - Fix buildconf on platforms using glibtoolize |
| 977 | |
| 978 | Commit c49a87eea538 changed buildconf to only check for |
| 979 | libtoolize, but missed a line |
| 980 | |
| 981 | - Don't exit loop early leaving uninitialized entries |
| 982 | |
| 983 | Update for commit affc63cba875d. |
| 984 | |
| 985 | The original patch from Gregor Jasny did not have the break |
| 986 | statement; I incorrectly added it to prevent continuing the loop. |
| 987 | However, the later entries in the array would then be left |
| 988 | uninitialized, causing problems for later cleanup. |
| 989 | |
| 990 | So fix to match Gregor's original patch, with apologies. |
| 991 | |
| 992 | Daniel Stenberg (18 Jan 2016) |
| 993 | - buildconf: remove check for libtool, it only requires libtoolize |
| 994 | |
| 995 | David Drysdale (17 Jan 2016) |
| 996 | - [Gregor Jasny brought this change] |
| 997 | |
| 998 | Use libresolv to initialize cares on iPhone targets |
| 999 | |
| 1000 | On iPhone targets like iOS, watchOS or tvOS the file |
| 1001 | /etc/resolv.conf cannot be used to configure cares. |
| 1002 | |
| 1003 | Instead the resolver library is queried for configuration |
| 1004 | values. |
| 1005 | |
| 1006 | CC: Yury Kirpichev <ykirpichev@yandex-team.ru> |
| 1007 | |
| 1008 | Daniel Stenberg (17 Jan 2016) |
| 1009 | - README: updated to new repo URL |
| 1010 | |
| 1011 | David Drysdale (14 Jan 2016) |
| 1012 | - [Lei Shi brought this change] |
| 1013 | |
| 1014 | Fixing slow DNS lookup issue |
| 1015 | |
| 1016 | This patch is fixing the dns lookup issue due to dummy dns information |
| 1017 | of a disconnected adapter(in my case is a bluetooth adapter). I changed |
| 1018 | the dns lookup policy to try GetNetworkParams first because the |
| 1019 | GetNetworkParams provides the most reliable dns information (lots of |
| 1020 | checks were done by system). I also filter out inoperable adapter in |
| 1021 | DNS_AdaptersAddresses in case GetNetworkParams fail. |
| 1022 | |
| 1023 | - Merge pull request #30 from p-push/vs-2015 |
| 1024 | |
| 1025 | Support Visual Studio 2015 |
| 1026 | |
| 1027 | Oleg Pudeyev (3 Jan 2016) |
| 1028 | - [Gisle Vanem brought this change] |
| 1029 | |
| 1030 | Support Visual Studio 2015 |
| 1031 | |
| 1032 | David Drysdale (11 Nov 2015) |
| 1033 | - [Andrew Andkjar brought this change] |
| 1034 | |
| 1035 | added another version case to Makefile.msvc |
| 1036 | |
| 1037 | nmake version 11.00.61030.0 resolves to CC_VERS_NUM = 110 |
| 1038 | |
| 1039 | - Merge pull request #26 from bitbouncer/vs-2013 |
| 1040 | |
| 1041 | added define for visual studio 2013 |
| 1042 | |
| 1043 | svante karlsson (25 Jun 2015) |
| 1044 | - added define for visual studio 2013 |
| 1045 | |
| 1046 | Jakub Hrozek (6 Nov 2014) |
| 1047 | - ares__read_line: free buf on realloc failure |
| 1048 | |
| 1049 | - Destroy options if ares_save_options fails |
| 1050 | |
| 1051 | It's possible that, if ares_save_options failed, the opts structure |
| 1052 | would contain some allocated memory. Calling ares_destroy_options in |
| 1053 | this case is safe, because ares_save_options zeroes out the memory |
| 1054 | initially. |
| 1055 | |
| 1056 | - [David Drysdale brought this change] |
| 1057 | |
| 1058 | Continue loop if space for hostname not large enough |
| 1059 | |
| 1060 | When attempting to build a search domain from the local hostname |
| 1061 | (used as a fallback when no other methods have given a search |
| 1062 | domain), the code doubles the buffer size on each loop iteration. |
| 1063 | |
| 1064 | However, the loop previously had a WHILE_FALSE terminator so the continue |
| 1065 | statement exited the loop rather than going round again. |
| 1066 | |
| 1067 | Daniel Stenberg (30 Oct 2014) |
| 1068 | - ares_getnameinfo.3: there is no ares_getaddrinfo |
| 1069 | |
| 1070 | David Drysdale (30 Sep 2014) |
| 1071 | - [Gregor Jasny brought this change] |
| 1072 | |
| 1073 | Prevent tmpbuf from overrunning |
| 1074 | |
| 1075 | Fix Coverity error CID 56886. |
| 1076 | |
| 1077 | Signed-off-by: Gregor Jasny <gjasny@googlemail.com> |
| 1078 | |
| 1079 | - [Gregor Jasny brought this change] |
| 1080 | |
| 1081 | Re-start loop if select fails |
| 1082 | |
| 1083 | Fix Coverity error CID 56882 |
| 1084 | |
| 1085 | Signed-off-by: Gregor Jasny <gjasny@googlemail.com> |
| 1086 | |
| 1087 | - [Gregor Jasny brought this change] |
| 1088 | |
| 1089 | Free temporary variable in error path |
| 1090 | |
| 1091 | Fix Coverity CID 56890 |
| 1092 | |
| 1093 | Signed-off-by: Gregor Jasny <gjasny@googlemail.com> |
| 1094 | |
| 1095 | - [Gregor Jasny brought this change] |
| 1096 | |
| 1097 | Fix integer shift overflow if both tcp_socket and udp_socket are set |
| 1098 | |
| 1099 | The problem occurs if at the start of the loop the sockindex is at the |
| 1100 | last valid ARES_GETSOCK_MAXNUM position. If then both udp_socket and |
| 1101 | tcp_socket are valid, sockindex gets incremented for UDP first and |
| 1102 | points one entry behind the array for the tcp block. |
| 1103 | So the fix is to check after every increment of sockindex if it is still |
| 1104 | valid. |
| 1105 | |
| 1106 | Fix Coverity error CID 56878 |
| 1107 | |
| 1108 | Signed-off-by: Gregor Jasny <gjasny@googlemail.com> |
| 1109 | |
| 1110 | - [Gregor Jasny brought this change] |
| 1111 | |
| 1112 | Null check before dereference |
| 1113 | |
| 1114 | Fix Coverity error CID 56880 |
| 1115 | |
| 1116 | Signed-off-by: Gregor Jasny <gjasny@googlemail.com> |
| 1117 | |
| 1118 | Jakub Hrozek (28 Jul 2014) |
| 1119 | - [Gisle Vanem brought this change] |
| 1120 | |
| 1121 | Comment in ares_ipv6.h |
| 1122 | |
| 1123 | David Drysdale (25 Jul 2014) |
| 1124 | - CONTRIBUTING: add file to indicate mailing list is preferred |
| 1125 | |
| 1126 | - Add -t u option to ahost |
| 1127 | |
| 1128 | Add an option to allow specification of the AF_UNSPEC |
| 1129 | address family. |
| 1130 | |
| 1131 | Jakub Hrozek (24 Jul 2014) |
| 1132 | - host_callback: Fall back to AF_INET on searching with AF_UNSPEC |
| 1133 | |
| 1134 | Previously, when an ares_gethostbyname() searched with AF_UNSPEC and the |
| 1135 | first AF_INET6 call only returned CNAMEs, the host_callback never |
| 1136 | retried AF_INET. |
| 1137 | |
| 1138 | This patch makes sure than on ARES_SUCCESS, the result of AF_INET6 is |
| 1139 | taken as authoritative only if the result contains some addresses. |
| 1140 | |
| 1141 | - [David Drysdale brought this change] |
| 1142 | |
| 1143 | Move memset call below platform-specific declarations |
| 1144 | |
| 1145 | A GitHub commenter [1] says that my recent change to ahost.c has |
| 1146 | problems compiling on Windows + C89 platforms. |
| 1147 | |
| 1148 | [1] https://github.com/bagder/c-ares/commit/ee22246507c9#commitcomment-6587616 |
| 1149 | |
| 1150 | - [David Drysdale brought this change] |
| 1151 | |
| 1152 | Update ahost man page to describe -s option. |
| 1153 | |
| 1154 | Commit ee22246507c9 added the -s <domain> option to the |
| 1155 | ahost command, but neglected to update the man page to |
| 1156 | describe it. |
| 1157 | |
| 1158 | Also fix typo in description of -t option. |
| 1159 | |
| 1160 | - ares_parse_soa_reply: Do not leak rr_name on allocation failure |
| 1161 | |
| 1162 | If ares_malloc_data failed, already allocated rr_name would go out of |
| 1163 | scope. |
| 1164 | |
| 1165 | - [David Drysdale brought this change] |
| 1166 | |
| 1167 | Don't override explicitly specified search domains |
| 1168 | |
| 1169 | Only set search domains from /etc/resolv.conf if there isn't a value |
| 1170 | already present in the channel. |
| 1171 | |
| 1172 | - [David Drysdale brought this change] |
| 1173 | |
| 1174 | Allow specification of search domain in ahost |
| 1175 | |
| 1176 | Add the "-s domain" command line option to override the search |
| 1177 | domains. |
| 1178 | |
| 1179 | Daniel Stenberg (12 May 2014) |
| 1180 | - Revert "ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address" |
| 1181 | |
| 1182 | This reverts commit 440110b303fdbfadb3ad53d30eeb98cc45d70451. |
| 1183 | |
| 1184 | - [Frederic Germain brought this change] |
| 1185 | |
| 1186 | ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address |
| 1187 | |
| 1188 | - [Doug Kwan brought this change] |
| 1189 | |
| 1190 | ares_build.h: fix building on 64-bit powerpc |
| 1191 | |
| 1192 | There are two issues. |
| 1193 | |
| 1194 | 1. gcc actually does not use __ppc__ and __ppc64__ but __PPC__ and |
| 1195 | __PPC64__. The tests of __ILP32__ and __LP64__ are sufficient for gcc. |
| 1196 | |
| 1197 | 2. clang defines __GNU__ and defines both __ppc64__ and __ppc__ when |
| 1198 | targeting ppc64. This makes CARES_SIZEOF_LONG to be 4 on a ppc64 system |
| 1199 | when building with clang. |
| 1200 | |
| 1201 | My patch is two change the order of the checks so that we check the |
| 1202 | 64-bit case first. |
| 1203 | |
| 1204 | - refresh: updated now with automake 1.14 |
| 1205 | |
| 1206 | - [David Drysdale brought this change] |
| 1207 | |
| 1208 | single_domain: Invalid memory access for empty string input |
| 1209 | |
| 1210 | We noticed a small buglet in ares_search() when it gets an empty string |
| 1211 | as input -- the single_domain() utility function in ares_search.c |
| 1212 | accesses invalid memory (before the start of the string). |
| 1213 | |
| 1214 | Guenter Knauf (31 Aug 2013) |
| 1215 | - Fixed warning 'type specifier missing'. |
| 1216 | |
| 1217 | Daniel Stenberg (30 Aug 2013) |
| 1218 | - [Tor Arntsen brought this change] |
| 1219 | |
| 1220 | ares_rules.h: CARES_SIZEOF_LONG doesn't exist anymore, don't test for it |
| 1221 | |
| 1222 | It was removed in f19387dd72432 |
| 1223 | |
| 1224 | - nowarn: use <limits.h> instead of configure for size of long |
| 1225 | |
| 1226 | This makes the header file much more multi-arch friendly and can be used |
| 1227 | as-is with both 32 bit and 64 bit builds. |
| 1228 | |
| 1229 | - timeoffset: made static and private |
| 1230 | |
| 1231 | ares__timeoffset() was only used once within this single source file |
| 1232 | |
| 1233 | - timeadd: make static |
| 1234 | |
| 1235 | ares__timeadd() was only ever used from within the same source |
| 1236 | |
| 1237 | Yang Tse (18 Jul 2013) |
| 1238 | - xc-am-iface.m4: comments refinement |
| 1239 | |
| 1240 | - configure: fix 'subdir-objects' distclean related issue |
| 1241 | |
| 1242 | See XC_AMEND_DISTCLEAN comments for details. |
| 1243 | |
| 1244 | - configure: automake 1.14 compatibility tweak (use XC_AUTOMAKE) |
| 1245 | |
| 1246 | - xc-am-iface.m4: provide XC_AUTOMAKE macro |
| 1247 | |
| 1248 | Daniel Stenberg (12 May 2013) |
| 1249 | - gitignore: ignore all ares_*pdf but also CHANGES.dist |
| 1250 | |
| 1251 | - bump: start working towards 1.10.1 |
| 1252 | |
| 1253 | Version 1.10.0 (12 May 2013) |
| 1254 | |
| 1255 | Daniel Stenberg (12 May 2013) |
| 1256 | - RELEASE-NOTES: two more bug fixes |
| 1257 | |
| 1258 | - [Keith Shaw brought this change] |
| 1259 | |
| 1260 | ares_set_servers_csv: fixed IPv6 address parsing |
| 1261 | |
| 1262 | Fixed bug that caused the last part of an IPv6 address to be parsed as |
| 1263 | the port number when the last part is all numeric. |
| 1264 | |
| 1265 | - nroff: fix two syntax mistakes |
| 1266 | |
| 1267 | ares_parse_a_reply and ares_parse_aaaa_reply both had two \fB instead of |
| 1268 | \fP |
| 1269 | |
| 1270 | Reported-by: Alexander Klauer |
| 1271 | Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-03/0010.shtml |
| 1272 | |
| 1273 | - [Alex Loukissas brought this change] |
| 1274 | |
| 1275 | build: fix build on msvc11 |
| 1276 | |
| 1277 | - Makefile.am: increment -version-info for 1.10.0 release |
| 1278 | |
| 1279 | - README: remove unnecessary comment |
| 1280 | |
| 1281 | - ares_version.h: copyright end range year is now 2013 |
| 1282 | |
| 1283 | - RELEASE-NOTES: synced with fb0737f3a0a1c37 |
| 1284 | |
| 1285 | - [Paul Saab brought this change] |
| 1286 | |
| 1287 | ares_parse_aaaa_reply: Plug memory leak |
| 1288 | |
| 1289 | This change is similar to ares_parse_a_reply.c in commit |
| 1290 | bffd67f16a8f42fe6dbf79ab2e39d92eea05c8a6 |
| 1291 | |
| 1292 | - [Patrick Valsecchi brought this change] |
| 1293 | |
| 1294 | ares_parse_txt_reply: return a ares_txt_reply node for each sub-string |
| 1295 | |
| 1296 | Previously, the function would wrongly return all substrings merged into |
| 1297 | one. |
| 1298 | |
| 1299 | - [Alexander Klauer brought this change] |
| 1300 | |
| 1301 | library init: documentation update |
| 1302 | |
| 1303 | This commit updates the documentation of ares_library_init() and |
| 1304 | ares_library_cleanup() with regard to the newly introduced reference |
| 1305 | counting of initializations and deinitializations. |
| 1306 | |
| 1307 | - [Alexander Klauer brought this change] |
| 1308 | |
| 1309 | library init: be recursive |
| 1310 | |
| 1311 | Previously, a single call to ares_library_cleanup() would deinitialise |
| 1312 | the c-ares library, regardless of how many times ares_library_init() was |
| 1313 | called. This behaviour may cause problems in programs linking two or |
| 1314 | more libraries which, in turn, use c-ares. The present commit fixes this |
| 1315 | problem, deinitializing the library only after a number of calls to |
| 1316 | ares_library_cleanup() matching the number of calls to |
| 1317 | ares_library_init(). |
| 1318 | |
| 1319 | - [Patrick Valsecchi brought this change] |
| 1320 | |
| 1321 | protocol parsing: check input data stricter |
| 1322 | |
| 1323 | ... so that bad length fields aren't blindly accepted |
| 1324 | |
| 1325 | Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml |
| 1326 | |
| 1327 | Guenter Knauf (11 Apr 2013) |
| 1328 | - Create ares_build.h when buidling from Git. |
| 1329 | |
| 1330 | - Added -DCARES_STATICLIB to CFLAGS. |
| 1331 | |
| 1332 | Currently this static makefile does only support building the |
| 1333 | static library libcares.a. |
| 1334 | |
| 1335 | Daniel Stenberg (8 Apr 2013) |
| 1336 | - [Alexander Klauer brought this change] |
| 1337 | |
| 1338 | .gitignore: ignore patch files |
| 1339 | |
| 1340 | This commit adds a line to .gitignore to the effect that patch files |
| 1341 | generated by 'git format-patch' are excluded from the repository. |
| 1342 | |
| 1343 | - [Alexander Klauer brought this change] |
| 1344 | |
| 1345 | ares_destroy() documentation: no new requests |
| 1346 | |
| 1347 | Clarify that no new requests may be added to a resolver channel that is |
| 1348 | currently being destroyed. |
| 1349 | |
| 1350 | - [Alexander Klauer brought this change] |
| 1351 | |
| 1352 | Documentation: properly document ARES_ECANCELLED |
| 1353 | |
| 1354 | This commit clarifies the behaviour of ares_cancel() with respect to |
| 1355 | callbacks and adds missing documentation of ARES_ECANCELLED to the man |
| 1356 | pages of the affected functions. |
| 1357 | |
| 1358 | - [Alexander Klauer brought this change] |
| 1359 | |
| 1360 | ares_cancel(): cancel requests safely |
| 1361 | |
| 1362 | An invocation of ares_cancel() walks through the request list, calling |
| 1363 | the callbacks of all pending requests on a channel. Previously, if such |
| 1364 | a callback added a new request to the channel, the request list might |
| 1365 | not end up empty, causing an abort by assertion failure. The present |
| 1366 | commit ensures that precisely all requests present upon entry of |
| 1367 | ares_cancel() are cancelled, and that adding new requests through |
| 1368 | callbacks is safe. |
| 1369 | |
| 1370 | Yang Tse (10 Mar 2013) |
| 1371 | - ares.h: stricter CARES_EXTERN linkage decorations logic |
| 1372 | |
| 1373 | No API change involved. |
| 1374 | |
| 1375 | - ares_build.h.dist: enhance non-configure GCC ABI detection logic |
| 1376 | |
| 1377 | GCC specific adjustments: |
| 1378 | |
| 1379 | - check __ILP32__ before 32 and 64bit processor architectures in |
| 1380 | order to detect ILP32 programming model on 64 bit processors |
| 1381 | which, of course, also support LP64 programming model, when using |
| 1382 | gcc 4.7 or newer. |
| 1383 | |
| 1384 | - keep 32bit processor architecture checks in order to support gcc |
| 1385 | versions older than 4.7 which don't define __ILP32__ |
| 1386 | |
| 1387 | - check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor |
| 1388 | architecture checks for older versions which don't define __LP64__ |
| 1389 | |
| 1390 | Daniel Stenberg (9 Mar 2013) |
| 1391 | - ares.h: there is no ares_free_soa function |
| 1392 | |
| 1393 | Yang Tse (9 Mar 2013) |
| 1394 | - Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility |
| 1395 | |
| 1396 | - ares_inet_ntop.3: s/socklen_t/ares_socklen_t |
| 1397 | |
| 1398 | - configure: use XC_LIBTOOL for portability across libtool versions |
| 1399 | |
| 1400 | - xc-lt-iface.m4: provide XC_LIBTOOL macro |
| 1401 | |
| 1402 | - Makefile.am: use AM_CPPFLAGS instead of INCLUDES |
| 1403 | |
| 1404 | - inet_ntop.c: s/socklen_t/ares_socklen_t |
| 1405 | |
| 1406 | - inet_ntop.c: s/socklen_t/ares_socklen_t for portability |
| 1407 | |
| 1408 | Daniel Stenberg (19 Feb 2013) |
| 1409 | - ares.h: s/socklen_t/ares_socklen_t for portability |
| 1410 | |
| 1411 | - ares_inet_ntop.3: 4th argument is socklen_t! |
| 1412 | |
| 1413 | - spell inet correctly! |
| 1414 | |
| 1415 | - ares_inet_pton/ntop: cleanup |
| 1416 | |
| 1417 | Make sure that the symbols are always exported and present in c-ares. |
| 1418 | |
| 1419 | Make the headers prefixed with 'ares'. |
| 1420 | |
| 1421 | Removed the inet_ntop.h version as it no longer features any content. |
| 1422 | |
| 1423 | - ares_inet_ntop/ares_inet_pton: added man pages |
| 1424 | |
| 1425 | Yang Tse (15 Feb 2013) |
| 1426 | - [Gisle Vanem brought this change] |
| 1427 | |
| 1428 | curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s() |
| 1429 | |
| 1430 | - [Gisle Vanem brought this change] |
| 1431 | |
| 1432 | config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32 |
| 1433 | |
| 1434 | - [Gisle Vanem brought this change] |
| 1435 | |
| 1436 | config-dos.h: define strerror() to strerror_s_() for High-C |
| 1437 | |
| 1438 | Daniel Stenberg (13 Feb 2013) |
| 1439 | - ares_get_datatype: removed unused function |
| 1440 | |
| 1441 | it was also wrongly named as internal functions require two underscores |
| 1442 | |
| 1443 | - ares__bitncmp: use two underscores for private functions |
| 1444 | |
| 1445 | It used a single one previously making it look like a public one |
| 1446 | |
| 1447 | - ares__generate_new_id: moved to ares_query.c |
| 1448 | |
| 1449 | ... and ares__rc4 is turned into a local static function. |
| 1450 | |
| 1451 | - ares__swap_lists: make private and static |
| 1452 | |
| 1453 | ... since there's only one user, make it static within ares_process.c |
| 1454 | |
| 1455 | Yang Tse (13 Feb 2013) |
| 1456 | - Makefile.msvc: add four VS version strings |
| 1457 | |
| 1458 | Daniel Stenberg (13 Feb 2013) |
| 1459 | - ares_expand_name.3: clarify how to free the data |
| 1460 | |
| 1461 | Yang Tse (30 Jan 2013) |
| 1462 | - zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2 |
| 1463 | |
| 1464 | - Fix a pair of single quotes to double quotes. |
| 1465 | |
| 1466 | URL: http://curl.haxx.se/mail/lib-2013-01/0355.html |
| 1467 | Reported by: Tor Arntsen |
| 1468 | |
| 1469 | - zz40-xc-ovr.m4: fix 'wc' detection - follow-up |
| 1470 | |
| 1471 | - Take into account that 'wc' may return leading spaces and/or tabs. |
| 1472 | |
| 1473 | - Set initial IFS to space, tab and newline. |
| 1474 | |
| 1475 | - zz40-xc-ovr.m4: fix 'wc' detection |
| 1476 | |
| 1477 | - Take into account that 'wc' may return leading spaces. |
| 1478 | |
| 1479 | - Set internationalization behavior variables. |
| 1480 | |
| 1481 | Tor Arntsen analyzed and reported the issue. |
| 1482 | |
| 1483 | URL: http://curl.haxx.se/mail/lib-2013-01/0351.html |
| 1484 | |
| 1485 | - zz40-xc-ovr.m4: check another three basic utilities |
| 1486 | |
| 1487 | - zz40-xc-ovr.m4: 1.0 interface stabilization |
| 1488 | |
| 1489 | - Stabilization results in 4 public interface m4 macros: |
| 1490 | XC_CONFIGURE_PREAMBLE |
| 1491 | XC_CONFIGURE_PREAMBLE_VER_MAJOR |
| 1492 | XC_CONFIGURE_PREAMBLE_VER_MINOR |
| 1493 | XC_CHECK_PATH_SEPARATOR |
| 1494 | - Avoid one level of internal indirection |
| 1495 | - Update comments |
| 1496 | - Drop XC_OVR_ZZ40 macro |
| 1497 | |
| 1498 | - zz40-xc-ovr.m4: emit witness message in configure BODY |
| 1499 | |
| 1500 | This avoids witness message in output when running configure --help, |
| 1501 | while sending the message to config.log for other configure runs. |
| 1502 | |
| 1503 | - zz40-xc-ovr.m4: truly do version conditional overriding |
| 1504 | |
| 1505 | - version conditional overriding |
| 1506 | - catch unexpanded XC macros |
| 1507 | - fix double words in comments |
| 1508 | |
| 1509 | - zz40-xc-ovr.m4: fix variable assignment of subshell output bashism |
| 1510 | |
| 1511 | Tor Arntsen analyzed and reported the issue. |
| 1512 | |
| 1513 | URL: http://curl.haxx.se/mail/lib-2013-01/0306.html |
| 1514 | |
| 1515 | - zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies |
| 1516 | |
| 1517 | - zz40-xc-ovr.m4: avoid double single-quote usage |
| 1518 | |
| 1519 | - zz40-xc-ovr.m4: parentheses balancing of 'case' statements |
| 1520 | |
| 1521 | m4 quadrigraph shell comment technique allows proper autoconf |
| 1522 | parentheses balancing in shell 'case' statements. The presence |
| 1523 | of unbalanced parentheses may otherwise trigger expansion bugs. |
| 1524 | |
| 1525 | - zz40-xc-ovr.m4: internals overhauling |
| 1526 | |
| 1527 | - Update comments |
| 1528 | - Execute commands in subshells |
| 1529 | - Faster path separator check |
| 1530 | - Fix missing 'test' command |
| 1531 | - Rename private macros |
| 1532 | - Minimize AC_REQUIRE usage |
| 1533 | |
| 1534 | - zz40-xc-ovr.m4: redirect errors and warnings to stderr |
| 1535 | |
| 1536 | - configure: use XC_CONFIGURE_PREAMBLE early checks |
| 1537 | |
| 1538 | Some basic checks we make were placed early enough in generated |
| 1539 | configure script when using autoconf 2.5X versions. Newer autoconf |
| 1540 | versions expand these checks much further into the configure script, |
| 1541 | rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement |
| 1542 | of early intended checks across all our autoconf supported versions. |
| 1543 | |
| 1544 | - zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro |
| 1545 | |
| 1546 | - configure: autotools compatibility fixes - step I |
| 1547 | |
| 1548 | Fix proper macro expansion order across autotools versions for |
| 1549 | C compiler and preprocessor program checks. |
| 1550 | |
| 1551 | - configure: fix automake 1.13 compatibility |
| 1552 | |
| 1553 | Tested with: |
| 1554 | |
| 1555 | buildconf: autoconf version 2.69 |
| 1556 | buildconf: autom4te version 2.69 |
| 1557 | buildconf: autoheader version 2.69 |
| 1558 | buildconf: automake version 1.13.1 |
| 1559 | buildconf: aclocal version 1.13.1 |
| 1560 | buildconf: libtool version 2.4 |
| 1561 | buildconf: GNU m4 version 1.4.16 |
| 1562 | |
| 1563 | - ares_private.h: use again memdebug.h instead of curl_memdebug.h |
| 1564 | |
| 1565 | - configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS |
| 1566 | |
| 1567 | automake 1.13 errors if AM_CONFIG_HEADER is used in configure script. |
| 1568 | |
| 1569 | - cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally |
| 1570 | |
| 1571 | Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using |
| 1572 | an autoconf version that does not provide it, instead of what we were |
| 1573 | doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for |
| 1574 | all autoconf versions. |
| 1575 | |
| 1576 | - ares_private.h: use curl_memdebug.h instead of memdebug.h |
| 1577 | |
| 1578 | - vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c |
| 1579 | |
| 1580 | - cares-functions.m4: improve gethostname arg 2 data type check |
| 1581 | |
| 1582 | - setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions. |
| 1583 | |
| 1584 | Also reverts commit bceb40095a |
| 1585 | |
| 1586 | - configure: check if compiler halts on function prototype mismatch |
| 1587 | |
| 1588 | - cares-functions.m4: add gethostname arg 2 data type check and definition |
| 1589 | |
| 1590 | - cares-functions.m4: update thread-safeness detection of getaddrinfo() |
| 1591 | |
| 1592 | Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also |
| 1593 | consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or |
| 1594 | (_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not. |
| 1595 | |
| 1596 | Take in account that h_errno might be a modifiable lvalue not defined as |
| 1597 | a C preprocessor macro. |
| 1598 | |
| 1599 | - setup_once.h: HP-UX <sys/socket.h> issue workaround |
| 1600 | |
| 1601 | Issue: When building a 32bit target with large file support HP-UX |
| 1602 | <sys/socket.h> header file may simultaneously provide two different |
| 1603 | sets of declarations for sendfile and sendpath functions, one with |
| 1604 | static and another with external linkage. Given that we do not use |
| 1605 | mentioned functions we really don't care which linkage is the |
| 1606 | appropriate one, but on the other hand, the double declaration emmits |
| 1607 | warnings when using the HP-UX compiler and errors when using modern |
| 1608 | gcc versions resulting in fatal compilation errors. |
| 1609 | |
| 1610 | Mentioned issue is now fixed as long as we don't use sendfile nor |
| 1611 | sendpath functions. |
| 1612 | |
| 1613 | - setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h> |
| 1614 | |
| 1615 | Inclusion of these two header files now done in setup_once.h |
| 1616 | |
| 1617 | - Header inclusion clean-up |
| 1618 | |
| 1619 | Remove header inclusions already done in setup_once.h |
| 1620 | |
| 1621 | - setup_once.h: HP-UX specific TRUE and FALSE definitions |
| 1622 | |
| 1623 | Some HP-UX system headers require TRUE defined to 1 and FALSE to 0. |
| 1624 | |
| 1625 | - ares_timeout.c: fix compiler warning |
| 1626 | |
| 1627 | - ares_create_query.c: IRIX compilation fix |
| 1628 | |
| 1629 | - c-ares/nameser.h: add some T_* defines for ns_t_* values |
| 1630 | |
| 1631 | Daniel Stenberg (7 Nov 2012) |
| 1632 | - Revert "ares_parse_aaaa_reply: fix memory leak" |
| 1633 | |
| 1634 | This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a. |
| 1635 | |
| 1636 | - ares_parse_aaaa_reply: fix memory leak |
| 1637 | |
| 1638 | an allocated buffer was not freed in the successful case. |
| 1639 | |
| 1640 | - [Gisle Vanem brought this change] |
| 1641 | |
| 1642 | adig: perror() doesn't work for socket errors on windows |
| 1643 | |
| 1644 | ... so print the SOCKERRNO instead |
| 1645 | |
| 1646 | - get_DNS_AdaptersAddresses: fix IPv6 parsing |
| 1647 | |
| 1648 | Use of the wrong define made the function not parse IPv6 addresses |
| 1649 | properly. |
| 1650 | |
| 1651 | Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml |
| 1652 | Reported by: Saúl Ibarra Corretgé |
| 1653 | |
| 1654 | - version: bumped to 1.10.0 |
| 1655 | |
| 1656 | Due to the newly added function: ares_create_query() |
| 1657 | |
| 1658 | - AUTHORS: synced with 83093ac450 |
| 1659 | |
| 1660 | Added 21 authors since this document was last updated |
| 1661 | |
| 1662 | - ares_create_query.3: mention when this is added |
| 1663 | |
| 1664 | - [hpopescu@ixiacom.com brought this change] |
| 1665 | |
| 1666 | Added new feature (rfc2671) |
| 1667 | |
| 1668 | - code police: fix indents, < 80 columns, reflowed comments |
| 1669 | |
| 1670 | Guenter Knauf (11 Jul 2012) |
| 1671 | - Cleaned up version awk script. |
| 1672 | |
| 1673 | Daniel Stenberg (30 Jun 2012) |
| 1674 | - [Gisle Vanem brought this change] |
| 1675 | |
| 1676 | read_udp_packets: bail out loop on bad sockets |
| 1677 | |
| 1678 | I can see that recvfrom() in ares_process.c many times is called with |
| 1679 | 'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call |
| 1680 | recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the |
| 1681 | inner-loop. |
| 1682 | |
| 1683 | Yang Tse (29 Jun 2012) |
| 1684 | - cares-compilers.m4: remove -Wstrict-aliasing=3 from clang |
| 1685 | |
| 1686 | Currently it is unknown if there is any version of clang that |
| 1687 | actually supports -Wstrict-aliasing. What is known is that there |
| 1688 | are several that don't support it. |
| 1689 | |
| 1690 | - cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds |
| 1691 | |
| 1692 | Daniel Stenberg (18 Jun 2012) |
| 1693 | - version: work towards 1.9.2 (at least) |
| 1694 | |
| 1695 | Version 1.9.1 (18 Jun 2012) |
| 1696 | |
| 1697 | Daniel Stenberg (18 Jun 2012) |
| 1698 | - RELEASE-NOTES: 1.9.1 coming up |
| 1699 | |
| 1700 | Version 1.9.0 (16 Jun 2012) |
| 1701 | |
| 1702 | Daniel Stenberg (16 Jun 2012) |
| 1703 | - ares_version.h: next version is 1.9.0 |
| 1704 | |
| 1705 | - [Marko Kreen brought this change] |
| 1706 | |
| 1707 | ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0 |
| 1708 | |
| 1709 | - RELEASE-NOTES: synced with 979bf951d |
| 1710 | |
| 1711 | Next release deemed to become 1.9.0 due to the new function |
| 1712 | |
| 1713 | - [Marko Kreen brought this change] |
| 1714 | |
| 1715 | SOA parser added |
| 1716 | |
| 1717 | I need to do SOA queries, so here is a parser for them. |
| 1718 | |
| 1719 | - ares_soa_reply: new struct |
| 1720 | - ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY |
| 1721 | - ares_parse_soa_reply: actual function |
| 1722 | |
| 1723 | Yang Tse (14 Jun 2012) |
| 1724 | - Kill compiler warning |
| 1725 | |
| 1726 | - Fix libcares.pc generation for static MingW* cross builds |
| 1727 | |
| 1728 | Daniel Stenberg (21 May 2012) |
| 1729 | - [Nick Alcock brought this change] |
| 1730 | |
| 1731 | Fix UDP and TCP port byte order in saved options. |
| 1732 | |
| 1733 | The UDP and TCP port are stored in network byte order in the |
| 1734 | ares_channeldata, but are passed in to ares_init_options() in host byte |
| 1735 | order. Thus we must return them from ares_save_options() in host byte |
| 1736 | order too, or a duplicated channel will convert them again, leading to a |
| 1737 | nonfunctional channel and a mysterious connection refused error from |
| 1738 | ares_gethostbyname(). This breaks ares_dup(), thus the curl easy API |
| 1739 | when c-ares is used by curl, and thus all the curl easy API's users. |
| 1740 | |
| 1741 | Yang Tse (28 Apr 2012) |
| 1742 | - version: start working on 1.8.1-DEV |
| 1743 | |
| 1744 | Version 1.8.0 (27 Apr 2012) |
| 1745 | |
| 1746 | Daniel Stenberg (27 Apr 2012) |
| 1747 | - RELEASE-NOTES: call next 1.8 instead |
| 1748 | |
| 1749 | Since we added a function, let's use a stricter bumping scheme |
| 1750 | |
| 1751 | Yang Tse (25 Apr 2012) |
| 1752 | - INSTALL: some adjustments |
| 1753 | |
| 1754 | Daniel Stenberg (25 Apr 2012) |
| 1755 | - GIT-INFO: mention buildconf |
| 1756 | |
| 1757 | Yang Tse (25 Apr 2012) |
| 1758 | - INSTALL: remove more sections that don't apply to c-ares |
| 1759 | |
| 1760 | - ares_timeout.c: fix compiler warning |
| 1761 | |
| 1762 | Daniel Stenberg (25 Apr 2012) |
| 1763 | - [Ben Noordhuis brought this change] |
| 1764 | |
| 1765 | Makefile.m32: fix mingw32 build |
| 1766 | |
| 1767 | * add . to include path so ares_build.h is picked up |
| 1768 | * make ar configurable to ease cross-compiling |
| 1769 | |
| 1770 | - RELEASE-NOTES: added what's happened since 1.7.5 |
| 1771 | |
| 1772 | Guenter Knauf (22 Apr 2012) |
| 1773 | - Updated copyright year. |
| 1774 | |
| 1775 | Yang Tse (21 Apr 2012) |
| 1776 | - ares_init.c: Further refactoring of Windows system's DNS fetching code |
| 1777 | |
| 1778 | Guenter Knauf (20 Apr 2012) |
| 1779 | - Android: small changes to dns property part. |
| 1780 | |
| 1781 | Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro. |
| 1782 | |
| 1783 | - Handle CNAME-only in ares_parse_aaaa_reply(). |
| 1784 | |
| 1785 | posted to the c-ares list by Peter Griess <pg@std.in>. |
| 1786 | |
| 1787 | - Add support for multiple DNS servers on Android. |
| 1788 | |
| 1789 | Before, c-ares always used the first DNS server on Android, causing |
| 1790 | network problems if this DNS server was not available. |
| 1791 | |
| 1792 | Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> |
| 1793 | |
| 1794 | - Added INSTALL so it gets into tarballs. |
| 1795 | |
| 1796 | - Added some more ifdefs to silent compiler warnings. |
| 1797 | |
| 1798 | Yang Tse (17 Apr 2012) |
| 1799 | - INSTALL: remove a non c-ares section |
| 1800 | |
| 1801 | - cares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds |
| 1802 | |
| 1803 | When building a Windows target with gcc 4.5 or newer and strict compiler |
| 1804 | warnings enabled use -Wno-pedantic-ms-format in addition to other flags. |
| 1805 | |
| 1806 | - setup_once.h: tighten requirements for stdbool.h header inclusion |
| 1807 | |
| 1808 | Include stdbool.h only when it is available and configure is capable of |
| 1809 | detecting a proper 'bool' data type when the header is included. |
| 1810 | |
| 1811 | - configure: NATIVE_WINDOWS no longer defined in config file |
| 1812 | |
| 1813 | - cares-compilers.m4: double underscore decoration for visibility attribute |
| 1814 | |
| 1815 | - build adjustments: CARES_SYMBOL_HIDING no longer defined in config files |
| 1816 | |
| 1817 | configure script now provides conditional definitions for Makefile.am |
| 1818 | that result in CARES_SYMBOL_HIDING being defined by resulting makefiles |
| 1819 | when appropriate. |
| 1820 | |
| 1821 | - configure: Windows cross-compilation fixes |
| 1822 | |
| 1823 | CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h, |
| 1824 | configure will generate appropriate conditionals so that mentioned symbols |
| 1825 | get defined and used in Makefile derived from Makefile.am at compilation time. |
| 1826 | |
| 1827 | Guenter Knauf (17 Apr 2012) |
| 1828 | - Added INSTALL file adapted from libcurl. |
| 1829 | |
| 1830 | Not yet ready, and needs further edits. |
| 1831 | |
| 1832 | Yang Tse (16 Apr 2012) |
| 1833 | - ares_init.c: get_iphlpapi_dns_info() refactoring |
| 1834 | |
| 1835 | Guenter Knauf (16 Apr 2012) |
| 1836 | - Kill some more compiler warnings. |
| 1837 | |
| 1838 | - Kill compiler warning about unused var. |
| 1839 | |
| 1840 | - Fixed my last commit: wrong preprocessor directive. |
| 1841 | |
| 1842 | - Check for __ANDROID__ in addition to ANDROID macro. |
| 1843 | |
| 1844 | - Check for __ANDROID__ in addition to ANDROID macro. |
| 1845 | |
| 1846 | Posted to c-ares list by Wayne. |
| 1847 | |
| 1848 | - Fix for Android to disable useless arpa/nameser.h. |
| 1849 | |
| 1850 | - Fix for Android to include sys/select.h for fd_set. |
| 1851 | |
| 1852 | Yang Tse (17 Mar 2012) |
| 1853 | - ares_data.c: some NAPTR related fixes |
| 1854 | |
| 1855 | Daniel Stenberg (16 Mar 2012) |
| 1856 | - port numbers: convert them to network order! |
| 1857 | |
| 1858 | When the config options ARES_OPT_UDP_PORT or ARES_OPT_TCP_PORT are used, |
| 1859 | make sure to convert them to network byte order! |
| 1860 | |
| 1861 | Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-02/0004.shtml |
| 1862 | |
| 1863 | - white space cleanup |
| 1864 | |
| 1865 | - Keep code within 80 columns |
| 1866 | |
| 1867 | - Removed funny spaces after open paren and before closing paren |
| 1868 | |
| 1869 | - [Poul Thomas Lomholt brought this change] |
| 1870 | |
| 1871 | get_iphlpapi_dns_info: fix buffer overrun |
| 1872 | |
| 1873 | I experienced a buffer overrun exception in c-ares on Windows and |
| 1874 | tracked it down to be an error in the calculation of the 'left' variable |
| 1875 | in get_iphlpapi_dns_info(). |
| 1876 | |
| 1877 | I changed the variable type of 'left' to a _signed_ type because of the |
| 1878 | subtraction arithmetic; not sure if a long is the best choice |
| 1879 | |
| 1880 | - Merge pull request #7 from saghul/naptr |
| 1881 | |
| 1882 | Added support for parsing NAPTR records |
| 1883 | |
| 1884 | saghul (23 Feb 2012) |
| 1885 | - Added support for parsing NAPTR records |
| 1886 | |
| 1887 | Yang Tse (19 Jan 2012) |
| 1888 | - ares_init.c: fix compiler warning on winsock builds |
| 1889 | |
| 1890 | - configure: libtool 1.5 tweaks |
| 1891 | |
| 1892 | Daniel Stenberg (19 Dec 2011) |
| 1893 | - ares_timeout.3: fix the NAME section |
| 1894 | |
| 1895 | It was clearly a copy n' paste error |
| 1896 | |
| 1897 | Yang Tse (27 Sep 2011) |
| 1898 | - [Albert Chin brought this change] |
| 1899 | |
| 1900 | configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def |
| 1901 | |
| 1902 | When using Sun C compiler the preprocessor somehow inserts an extra space |
| 1903 | in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround |
| 1904 | this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of |
| 1905 | symbol substitution result. |
| 1906 | |
| 1907 | - ares_init.c: fix segfault triggered in ares_init_options() upon previous |
| 1908 | failure of init_by_defaults() and incomplete cleanup there. |
| 1909 | |
| 1910 | - ares_process.c: fix compiler warning |
| 1911 | |
| 1912 | - fix MSVC compiler warning 'conditional expression is constant' |
| 1913 | |
| 1914 | - setup_once.h cleanup and sync |
| 1915 | |
| 1916 | - [Denis Bilenko brought this change] |
| 1917 | |
| 1918 | ares_getnameinfo: fix random results with c-ares 1.7.5 |
| 1919 | |
| 1920 | In ares_getnameinfo memcpy did not copy enough bytes, causing |
| 1921 | it to return arbitrary memory contents as a result. |
| 1922 | |
| 1923 | - warnings: fix another 'conversion may lose significant bits' compiler warning |
| 1924 | |
| 1925 | - ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions |
| 1926 | |
| 1927 | Fixing compiler warnings existing definitions triggered on these. |
| 1928 | |
| 1929 | - ares_destroy.c: fix segfault in ares_destroy_options() |
| 1930 | |
| 1931 | Daniel Stenberg (21 Aug 2011) |
| 1932 | - ares_parse_srv_reply: silence compiler warnings |
| 1933 | |
| 1934 | ... by adding ugly typecasts. |
| 1935 | |
| 1936 | - CHANGES: generate from script |
| 1937 | |
| 1938 | The CHANGES file is now generated automatically with 'git2changes.pl', |
| 1939 | invoked by the maketgz script which is used to build release archives. |
| 1940 | |
| 1941 | The former human edited CHANGES file was renamed to CHANGES.0 in git. |
| 1942 | |
| 1943 | Yang Tse (21 Aug 2011) |
| 1944 | - Makefile.netware: SIZEOF_SHORT definition |
| 1945 | |
| 1946 | - warnings: fix some 'conversion may lose significant bits' compiler warnings |
| 1947 | |
| 1948 | - configure: fix symbol hiding usability check |
| 1949 | |
| 1950 | A more thorough test is done now in order to determine visibility attribute |
| 1951 | usability, given that some compilers don't support visibility attribute on |
| 1952 | all configurations. |
| 1953 | |
| 1954 | Daniel Stenberg (16 Aug 2011) |
| 1955 | - 1.7.6: start working... |
| 1956 | |
| 1957 | Version 1.7.5 (16 Aug 2011) |
| 1958 | |
| 1959 | Daniel Stenberg (16 Aug 2011) |
| 1960 | - CHANGES: synced for 1.7.5 release |
| 1961 | |
| 1962 | - RELEASE-NOTES: synced with bb4096effef7f000 |
| 1963 | |
| 1964 | Jakub Hrozek (15 Aug 2011) |
| 1965 | - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses |
| 1966 | |
| 1967 | Yang Tse (10 Aug 2011) |
| 1968 | - [Gisle Vanem brought this change] |
| 1969 | |
| 1970 | ares_iphlpapi.h: Watcom C fix |
| 1971 | |
| 1972 | Added "!defined(_WS2DEF_)" since Watcom doesn't have |
| 1973 | a per type guard for the typedefs 'CSADDR_INFO' (that MingW has) or |
| 1974 | 'SOCKET_ADDRESS' (that MSVC has). But we can use the header-guard for |
| 1975 | <ws2def.h> instead. |
| 1976 | |
| 1977 | - [Gisle Vanem brought this change] |
| 1978 | |
| 1979 | Makefile.Watcom: |
| 1980 | * The 'NTDDI_VERSION' needs to be raised to 0x05010000 |
| 1981 | in order for SOCKADDR_STORAGE etc. to be typedefed. |
| 1982 | * Replaced '-dUSE_WATT32' with '-dWATT32'. |
| 1983 | * Added $(DEMOS) to the 'all' target and removed the 'demos' |
| 1984 | target to be consistent with e.g. Makefile.msvc etc. |
| 1985 | * 'ENABLE_IPV6' is no longer used. Hence removed the '%use_ipv6' construct. |
| 1986 | * object-file order seems to be important (Watcom v.19). Hence |
| 1987 | 'ares_getopt.obj' must be put after the .obj that references getopt(). |
| 1988 | |
| 1989 | - cares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments |
| 1990 | |
| 1991 | Add CARES_CHECK_COMPILER as a requirement. |
| 1992 | |
| 1993 | Ensure macro does nothing unless GNU_C or CLANG compiler is used. |
| 1994 | |
| 1995 | This should allow usage of this macro in unforeseen placements. |
| 1996 | |
| 1997 | - config-win32.h: comments adjustments - followup |
| 1998 | |
| 1999 | - config-win32.h: comments adjustments |
| 2000 | |
| 2001 | Daniel Stenberg (5 Aug 2011) |
| 2002 | - [Tom Hughes brought this change] |
| 2003 | |
| 2004 | ares_parse_a_reply: fix memleak |
| 2005 | |
| 2006 | Yang Tse (29 Jul 2011) |
| 2007 | - cares-functions.m4 serial # bump |
| 2008 | |
| 2009 | - Revert "configure: additional flag checks for fcntl() and socket()" |
| 2010 | |
| 2011 | This reverts commit 5f2a3b0e48f26d24cb1fefea0dccb92d417dcbf7. |
| 2012 | |
| 2013 | - configure: additional flag checks for fcntl() and socket() |
| 2014 | |
| 2015 | - xc-translit.m4 fix quoting |
| 2016 | |
| 2017 | - configure: avoid direct usage of AS_TR_* macros |
| 2018 | |
| 2019 | - xc-translit.m4 provides transliteration macros with well defined behavior. |
| 2020 | |
| 2021 | Jakub Hrozek (15 Jun 2011) |
| 2022 | - Revert "Only fall back to AF_INET searches when looking for AF_UNSPEC addresses" |
| 2023 | |
| 2024 | This reverts commit b5823d65706af687c0e5110af8f0cfdcd068997d. |
| 2025 | |
| 2026 | This patch was not reviewed properly before pushing |
| 2027 | |
| 2028 | - Revert "Do not use sized constants in public headers" |
| 2029 | |
| 2030 | This reverts commit 22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d. |
| 2031 | |
| 2032 | This is a Red Hat specific patch that does not belong into upstream |
| 2033 | |
| 2034 | - Use correct sizeof in ares_getnameinfo() |
| 2035 | |
| 2036 | - Do not leak rr_name on failures inside ares_parse_ptr_reply |
| 2037 | |
| 2038 | - Do not leak rr_name on failures inside ares_parse_a_reply |
| 2039 | |
| 2040 | - Do not leak rr_name on failures inside ares_parse_aaaa_reply |
| 2041 | |
| 2042 | - Do not leak rr_name on failures inside ares_parse_ns_reply |
| 2043 | |
| 2044 | - Fix incorrect sizeof() in ares_save_options |
| 2045 | |
| 2046 | - Fix incorrect allocation in ares_parse_ptr_reply() |
| 2047 | |
| 2048 | - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses |
| 2049 | |
| 2050 | - Do not use sized constants in public headers |
| 2051 | |
| 2052 | Daniel Stenberg (13 Jun 2011) |
| 2053 | - [Jakub Hrozek brought this change] |
| 2054 | |
| 2055 | ares_free_hostent(NULL) should be a noop |
| 2056 | |
| 2057 | Yang Tse (8 Jun 2011) |
| 2058 | - configure: fix recvfrom 5th arg type qualifier detection (followup) |
| 2059 | |
| 2060 | - configure: fix recvfrom 5th arg type qualifier detection |
| 2061 | |
| 2062 | Additionally remove whitespace from EOL |
| 2063 | |
| 2064 | Daniel Stenberg (4 Jun 2011) |
| 2065 | - strlen: use size_t to receive the return |
| 2066 | |
| 2067 | Yang Tse (4 Jun 2011) |
| 2068 | - xlc: avoid preprocessor definition usage when linking |
| 2069 | |
| 2070 | - ares_nowarn: icc 9.1 workaround |
| 2071 | |
| 2072 | - ares_nowarn: header inclusion fix |
| 2073 | |
| 2074 | - ares_init: make ares_private.h last included header again |
| 2075 | |
| 2076 | - compiler warning: fix |
| 2077 | |
| 2078 | Fix compiler warning: conversion may lose significant bits |
| 2079 | |
| 2080 | - compiler warning: fix |
| 2081 | |
| 2082 | Fix compiler warning: variable was set but never used |
| 2083 | |
| 2084 | Fix compiler warning: clobber ignored |
| 2085 | |
| 2086 | - ares_iphlpapi: fix compiler warnings |
| 2087 | |
| 2088 | - winsock: compilation fixes |
| 2089 | |
| 2090 | Provide winsock iphlpapi alternative definitions to prevent compilation |
| 2091 | failures when using a variety of winsock header implementations. |
| 2092 | |
| 2093 | Daniel Stenberg (17 May 2011) |
| 2094 | - [David Stuart brought this change] |
| 2095 | |
| 2096 | IPv6-on-windows: find DNS servers correctly |
| 2097 | |
| 2098 | - man pages: docs for the c-ares utility programs |
| 2099 | |
| 2100 | - ares_parse_ns_reply.c: remove CVSism |
| 2101 | |
| 2102 | Yang Tse (27 Mar 2011) |
| 2103 | - build: fix header inclusion |
| 2104 | |
| 2105 | - getservbyport replacement for Win CE |
| 2106 | |
| 2107 | - renamed getplatform() to ares__getplatform() to avoid namespace pollution |
| 2108 | |
| 2109 | - configure: fix libtool warning |
| 2110 | |
| 2111 | Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR |
| 2112 | macro and warn heavily when not used in configure script along with |
| 2113 | ACLOCAL_AMFLAGS in Makefile.am. So in order to make libtool happy |
| 2114 | while keeping backwards compatibility this is added. |
| 2115 | |
| 2116 | - adig: RFC4034 resource record type detection |
| 2117 | |
| 2118 | Can be tested with: adig -s 8.8.8.8 -t ANY example.com |
| 2119 | |
| 2120 | - nameser.h: RFC4034 resource record type definitions |
| 2121 | |
| 2122 | - build: move platform stuff to ares_platform.c and ares_platform.h |
| 2123 | |
| 2124 | - build: find out windows platform using GetVersionEx() |
| 2125 | |
| 2126 | - build: use getenv() replacement function for systems which lack it |
| 2127 | |
| 2128 | - setup_once: system error codes for Windows CE |
| 2129 | |
| 2130 | - ares_search: use ERRNO macro for portability sake |
| 2131 | |
| 2132 | - System's errno.h inclusion cleanup follow-up. |
| 2133 | |
| 2134 | System's errno.h is conditionally included from setup_once.h |
| 2135 | |
| 2136 | - Windows CE specific adjustment |
| 2137 | |
| 2138 | All versions of Windows CE support Winsock 1.1 |
| 2139 | |
| 2140 | - System's errno.h inclusion cleanup. |
| 2141 | |
| 2142 | System's errno.h is conditionally included from setup_once.h |
| 2143 | |
| 2144 | - ares_init: fix gethostname error detection on winsock platforms |
| 2145 | |
| 2146 | - configure: r-enable temporarily disabled detection of system's inet_ntop() |
| 2147 | |
| 2148 | Detection was temporarily disabled in commit 674e044ccb21f2f63537da53565fce868f |
| 2149 | |
| 2150 | Daniel Stenberg (15 Mar 2011) |
| 2151 | - configure: stop using the deprecated AM_INIT_AUTOMAKE syntax |
| 2152 | |
| 2153 | - [Gisle Vanem brought this change] |
| 2154 | |
| 2155 | Watt-32: use errno |
| 2156 | |
| 2157 | Make sure Watt-32 programs use 'errno' even on Win32 targets |
| 2158 | |
| 2159 | Guenter Knauf (18 Feb 2011) |
| 2160 | - Removed commented CLFAGS no longer needed. |
| 2161 | |
| 2162 | - Fixed CFLAGS for NetWare. |
| 2163 | |
| 2164 | Added -m32 to enable compilation with x86_64 compilers; |
| 2165 | added conditional to set -fpcc-struct-return only for gcc compiler. |
| 2166 | |
| 2167 | Daniel Stenberg (18 Feb 2011) |
| 2168 | - [Gisle Vanem brought this change] |
| 2169 | |
| 2170 | Watt32: fix server init |
| 2171 | |
| 2172 | Somewhere in the process, programs using the Watt-32 tcp/ip stack |
| 2173 | stopped working. |
| 2174 | |
| 2175 | - [Dima Tisnek brought this change] |
| 2176 | |
| 2177 | config_sortlist: (win32) missing else |
| 2178 | |
| 2179 | Without an else there, contents of "pat" that could have been |
| 2180 | successfully set just above, may be clobbered by successive unsuccessful |
| 2181 | calls to "xxx_pton" or "ip_addr". |
| 2182 | |
| 2183 | Yang Tse (17 Jan 2011) |
| 2184 | - Makefile.msvc: add a couple of VS version strings |
| 2185 | |
| 2186 | - Makefile.msvc: add a couple of VS version strings |
| 2187 | |
| 2188 | - build: add install target to Makefile.msvc |
| 2189 | |
| 2190 | Daniel Stenberg (27 Dec 2010) |
| 2191 | - ares_set_servers_csv: remove unused variables |
| 2192 | |
| 2193 | - init_by_resolv_conf: fix compiler warnings |
| 2194 | |
| 2195 | The code received the return codes in the 'status' variable without |
| 2196 | using it. Instead we just ignore those particular errors. |
| 2197 | |
| 2198 | - getv4: Value stored to 'dst' is never read |
| 2199 | |
| 2200 | - advance_tcp_send_queue: avoid NULL ptr dereference |
| 2201 | |
| 2202 | If given a too large 'num_bytes' value, it would cause a NULL ptr |
| 2203 | dereference. Instead the code will now break out of the loop at the end |
| 2204 | of the list. |
| 2205 | |
| 2206 | - [Peter Pentchev brought this change] |
| 2207 | |
| 2208 | configure: fix a bashism |
| 2209 | |
| 2210 | - cleanup: avoid unsafe typecasts |
| 2211 | |
| 2212 | Avoid the risk of reading 16bit data from an unaligned address by using |
| 2213 | a macro that is adapted for this. |
| 2214 | |
| 2215 | - [Stefan Bühler brought this change] |
| 2216 | |
| 2217 | ares_expand_name: Fix encoded length for indirect root |
| 2218 | |
| 2219 | Yang Tse (18 Dec 2010) |
| 2220 | - build: add some explicit file references to VS project files |
| 2221 | |
| 2222 | - config-win32: provide HAVE_ASSERT_H definition |
| 2223 | |
| 2224 | - build: include ares_nowarn in sample program VS project files |
| 2225 | |
| 2226 | - build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS |
| 2227 | |
| 2228 | - configure: temporarily disable detection of system's inet_ntop() |
| 2229 | |
| 2230 | This is done to allow compilation of ares_inet_ntop() by some daily |
| 2231 | builds picky compilers that otherwise do not need this function. |
| 2232 | |
| 2233 | - changes: mention last fix |
| 2234 | |
| 2235 | - ares_inet_ntop: remove definition and usage of macro SPRINTF |
| 2236 | |
| 2237 | Existing definition of SPRINTF always resulted in sprintf() being used, |
| 2238 | and sprintf() returning 'int' is already used throughout the library. |
| 2239 | |
| 2240 | - ares_inet_ntop: reapply changes from previous c-ares version (III) |
| 2241 | |
| 2242 | - Replace 'u_char' with 'unsigned char'. |
| 2243 | - Replace 'u_int' with 'unsigned int'. |
| 2244 | - use macros ERRNO and SET_ERRNO() for errno handling. |
| 2245 | |
| 2246 | - ares_inet_ntop: reapply changes from previous c-ares version (II) |
| 2247 | |
| 2248 | - Remove rcsid. |
| 2249 | - Adjust header file inclusions. |
| 2250 | - ares_inet_ntop used only on systems without a proper inet_ntop function. |
| 2251 | |
| 2252 | - ares_inet_ntop: reapply changes from previous c-ares version (I) |
| 2253 | |
| 2254 | - Replace tabs with spaces. |
| 2255 | - Use ANSI C style for function declarations and definitions. |
| 2256 | - Use sizeof with parentheses. |
| 2257 | |
| 2258 | - ares_inet_ntop: fix off by one error triggering out of bounds write |
| 2259 | |
| 2260 | ares_inet_ntop would trigger an out of bounds write when the representation |
| 2261 | of the address required 15 characters, due to not taking in account null |
| 2262 | termination character. |
| 2263 | |
| 2264 | Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes. |
| 2265 | |
| 2266 | - ares_nowarn: add conditional inclusion of assert.h header |
| 2267 | |
| 2268 | - fix compiler warning: conversion may lose significant bits |
| 2269 | |
| 2270 | - ares_inet_net_pton: fix non-rejection of some malformed literals |
| 2271 | |
| 2272 | ares_inet_net_pton would return wrong values when excessively large, |
| 2273 | and invalid, netmasks are used. Fixes are from bind-9.5.3rc1, |
| 2274 | issue also described in the WLB-2008080064 advisory. |
| 2275 | |
| 2276 | - setup_once: provide ISASCII macro |
| 2277 | |
| 2278 | - configure: inet_net_pton function check adjustments |
| 2279 | |
| 2280 | Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6 |
| 2281 | capable and is not affected by the WLB-2008080064 advisory. |
| 2282 | |
| 2283 | HAVE_INET_NET_PTON_IPV6 is no longer defined nor used. |
| 2284 | |
| 2285 | - ares_init: fix detection of semicolon comments in resolv.conf |
| 2286 | |
| 2287 | File resolv.conf may either use a hash '#' or a semicolon ';' character as an |
| 2288 | indication that the rest of the line is a comment. This fixes not recognizing |
| 2289 | the semicolon as a valid comment indicator in resolv.conf. |
| 2290 | |
| 2291 | - version: start working on 1.7.5 |
| 2292 | |
| 2293 | Version 1.7.4 (8 Dec 2010) |
| 2294 | |
| 2295 | Daniel Stenberg (8 Dec 2010) |
| 2296 | - release-preps: CHANGES and RELEASE-NOTES synced |
| 2297 | |
| 2298 | - ares_set_local_*: added in 1.7.4, not before |
| 2299 | |
| 2300 | Yang Tse (3 Dec 2010) |
| 2301 | - build: provide SIZEOF_SIZE_T definition for non-configure builds |
| 2302 | |
| 2303 | - build: config.dos renamed to config-dos.h |
| 2304 | |
| 2305 | - build: provide SIZEOF_SIZE_T netware definition |
| 2306 | |
| 2307 | - ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits |
| 2308 | |
| 2309 | - configure: undo using autobuilds to temporarily verify strict aliasing warnings. |
| 2310 | |
| 2311 | - fix compiler warning: rounding, sign extension, or loss of accuracy may result |
| 2312 | |
| 2313 | Daniel Stenberg (2 Dec 2010) |
| 2314 | - [Ben Noordhuis brought this change] |
| 2315 | |
| 2316 | ares_parse_a_reply: fix CNAME response parsing |
| 2317 | |
| 2318 | Reply to a CNAME query doesn't contain addresses, causing |
| 2319 | ares_parse_a_reply() to bail out with ARES_ENODATA |
| 2320 | |
| 2321 | Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b |
| 2322 | |
| 2323 | Yang Tse (1 Dec 2010) |
| 2324 | - fix compiler warning: conversion may lose significant bits |
| 2325 | |
| 2326 | - atoi: remove atoi usage |
| 2327 | |
| 2328 | - ares_init: fix compiler warning: conversion may lose significant bits |
| 2329 | |
| 2330 | - configure: fix autoconf warning |
| 2331 | |
| 2332 | - inet_pton: fix compiler warning |
| 2333 | |
| 2334 | - configure: use autobuilds to temporarily verify strict aliasing warnings. |
| 2335 | |
| 2336 | Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing |
| 2337 | rules and warnings. Given that cross-compiled targets autobuilds do not run the |
| 2338 | test-suite, there is no risk of running code that violates strict aliasing rules |
| 2339 | |
| 2340 | - ares_getnameinfo: Partially revert commit 85520d66e0ac7ac73411bc25e98769a88b2f |
| 2341 | |
| 2342 | Upon socket address family and length validation failure return ARES_ENOTIMP |
| 2343 | in callback again, this is the error code documented in man page and used |
| 2344 | mostly all over the library. |
| 2345 | |
| 2346 | - ares_getnameinfo: Validate socket address family and length. |
| 2347 | |
| 2348 | Validate socket address family and that the socket address length is appropriate |
| 2349 | for the specified family. Failure is reported with ARES_EBADFAMILY in callback. |
| 2350 | |
| 2351 | - ares_getnameinfo: fix two compiler warnings |
| 2352 | |
| 2353 | - Added another VS10 version string |
| 2354 | |
| 2355 | - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'. |
| 2356 | |
| 2357 | - Revert commit 494274e653936335c255a47599970de3df21e7c4 |
| 2358 | |
| 2359 | - configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body |
| 2360 | |
| 2361 | - Fix compiler warning: array subscript has type 'char' |
| 2362 | |
| 2363 | - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'. |
| 2364 | |
| 2365 | - Revert following commits: |
| 2366 | 07bc7ea79509bcc9ef6e09151e81766ed00d3392 |
| 2367 | 3392a50ea3f8573ea4b7a9d82b9833dab60cb0e9 |
| 2368 | 9912637d32c9987719a1ea12db591aee2941891c |
| 2369 | |
| 2370 | The purpose of the whole patch was to silence a compiler warning triggered |
| 2371 | with GCC 4 on file ares_process.c The specific compiler warning was |
| 2372 | 'dereferencing type-punned pointer might break strict-aliasing rules'. |
| 2373 | |
| 2374 | A simpler patch will follow to equally silence the warning. |
| 2375 | |
| 2376 | - ares_options: reorder header inclusions to make inclusion of |
| 2377 | ares_private.h the last included one again. |
| 2378 | |
| 2379 | Daniel Stenberg (12 Nov 2010) |
| 2380 | - [Patrik Thunstrom brought this change] |
| 2381 | |
| 2382 | adig: fix NAPTR parsing |
| 2383 | |
| 2384 | I ran across a small "issue" in your adig example. |
| 2385 | |
| 2386 | It is simply the last part of the NAPTR record, the replacement element, |
| 2387 | which is not a string, as currently handled in adig, but a domain name. |
| 2388 | |
| 2389 | - ares_save_options: assignments instead of memcpy |
| 2390 | |
| 2391 | - init_by_options: don't copy an empty sortlist |
| 2392 | |
| 2393 | If there aren't any sort items to copy, don't bother. Without this |
| 2394 | little precaution it would do a malloc(0) which causes undefined |
| 2395 | behaviors and is frowned upon by curl's memdebug-system. |
| 2396 | |
| 2397 | Guenter Knauf (3 Oct 2010) |
| 2398 | - Minor Watcom makefile tweaks. |
| 2399 | |
| 2400 | Daniel Stenberg (30 Sep 2010) |
| 2401 | - [Mike Crowe brought this change] |
| 2402 | |
| 2403 | Fix lookup with HOSTALIASES set. |
| 2404 | |
| 2405 | ares__read_line returns ARES_EOF when it reaches the end of the |
| 2406 | file. This will happen every time when reading to the end of the |
| 2407 | HOSTALIASES file. Unfortunately single_domain treats this error as |
| 2408 | being fatal. |
| 2409 | |
| 2410 | Signed-off-by: Mike Crowe <mac@mcrowe.com> |
| 2411 | |
| 2412 | Ben Greear (24 Aug 2010) |
| 2413 | - Add missing break that caused get_ares_servers to fail. |
| 2414 | |
| 2415 | Reported-by: Ning Dong <flintning@163.com> |
| 2416 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2417 | |
| 2418 | Yang Tse (11 Aug 2010) |
| 2419 | - configure: werror related adjustments |
| 2420 | |
| 2421 | Guenter Knauf (8 Aug 2010) |
| 2422 | - Added copyright string to ares_version.h and make use of it in other files. |
| 2423 | |
| 2424 | - Block created ares_build.h for NetWare to avoid usage from other platforms. |
| 2425 | |
| 2426 | - Fix to overwrite default libname. |
| 2427 | |
| 2428 | - Some more Watcom makefile massage ... |
| 2429 | |
| 2430 | - Some more Watcom makefile massage ... |
| 2431 | |
| 2432 | Ben Greear (4 Aug 2010) |
| 2433 | - sock-addr-storage: Detect and deal with lack of .ss_family member. |
| 2434 | |
| 2435 | AIX, at least, does not have sockaddr_storage.ss_family member. |
| 2436 | Detect this in the configure logic and use proper #ifdefs in the |
| 2437 | ares_process logic. |
| 2438 | |
| 2439 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2440 | Tested-by: Tor Arntsen <tor@spacetec.no> |
| 2441 | |
| 2442 | Guenter Knauf (3 Aug 2010) |
| 2443 | - Added Watcom makefile based on libcurl's Makefile.Watcom. |
| 2444 | |
| 2445 | Ben Greear (31 Jul 2010) |
| 2446 | - typo: Fix compile bug for platforms that don't have sockaddr_storage. |
| 2447 | |
| 2448 | Bug was introduced by me in previous commit. |
| 2449 | |
| 2450 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2451 | |
| 2452 | - Fix aliasing warning in gcc 4.4.4 (at least). |
| 2453 | |
| 2454 | Should be no functional change, though the code gets a bit |
| 2455 | ugglier. |
| 2456 | |
| 2457 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2458 | |
| 2459 | Daniel Stenberg (31 Jul 2010) |
| 2460 | - ares_set_servers_csv: use ISDIGIT |
| 2461 | |
| 2462 | The IS*() set of macros are preferred to the regular is*() functions as |
| 2463 | they help us avoid the most common pitfalls. |
| 2464 | |
| 2465 | Ben Greear (30 Jul 2010) |
| 2466 | - cast arg to isdigit to int |
| 2467 | |
| 2468 | Looks like it might silence a warning on Netware build. |
| 2469 | |
| 2470 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2471 | |
| 2472 | - remove all uses of uint32_t |
| 2473 | |
| 2474 | Previous fix forgot a few. |
| 2475 | |
| 2476 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2477 | |
| 2478 | - fix signed v/s unsigned casts warning in ares_gethostbyaddr.c |
| 2479 | |
| 2480 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2481 | |
| 2482 | - local-bind-fixup: Fix inet_pton warning. |
| 2483 | |
| 2484 | Conditionally include <arpa/inet.h> for inet_pton |
| 2485 | headers. |
| 2486 | |
| 2487 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2488 | |
| 2489 | - build: Enable compiling with -Werror. |
| 2490 | |
| 2491 | This helps find compile warnings because they simply break |
| 2492 | the build. |
| 2493 | |
| 2494 | To use: |
| 2495 | ./configure --enable-warnings --enable-werror |
| 2496 | |
| 2497 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2498 | |
| 2499 | - ipv6: Fix some build issues related to the local-bind feature. |
| 2500 | |
| 2501 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2502 | |
| 2503 | Guenter Knauf (29 Jul 2010) |
| 2504 | - Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms. |
| 2505 | |
| 2506 | Daniel Stenberg (18 Jul 2010) |
| 2507 | - [Ben Greear brought this change] |
| 2508 | |
| 2509 | local-bind: Support binding to local interface/IPs |
| 2510 | |
| 2511 | Add 3 new functions to set the local binding for the out-going |
| 2512 | socket connection, and add ares_set_servers_csv() to set a |
| 2513 | list of servers at once as a comma-separated string. |
| 2514 | |
| 2515 | Signed-off-by: Ben Greear <greearb@candelatech.com> |
| 2516 | |
| 2517 | - version: now start on 1.7.4 |
| 2518 | |
| 2519 | - [Andrew C. Morrow brought this change] |
| 2520 | |
| 2521 | fix memory leak in ares_getnameinfo |
| 2522 | |
| 2523 | Version 1.7.3 (11 Jun 2010) |
| 2524 | |
| 2525 | Daniel Stenberg (11 Jun 2010) |
| 2526 | - changelogs: updated for 1.7.3 |
| 2527 | |
| 2528 | - [BogDan Vatra brought this change] |
| 2529 | |
| 2530 | init: allow c-ares to work on Android OS |
| 2531 | |
| 2532 | - changelog: fill in the 1.7.2 changes |
| 2533 | |
| 2534 | - added another pdf to ignore |
| 2535 | |
| 2536 | Yang Tse (11 Jun 2010) |
| 2537 | - add ares_parse_mx_reply.c to VS dsp file |
| 2538 | |
| 2539 | Daniel Stenberg (10 Jun 2010) |
| 2540 | - tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST |
| 2541 | |
| 2542 | It's not clear to me why we need this, but we apparently may |
| 2543 | otherwise not get all files bundled in the dist tarball. |
| 2544 | |
| 2545 | - version: start working on 1.7.3 |
| 2546 | |
| 2547 | Version 1.7.2 (10 Jun 2010) |
| 2548 | |
| 2549 | Daniel Stenberg (10 Jun 2010) |
| 2550 | - RELEASE-NOTES: 1.7.2 details added |
| 2551 | |
| 2552 | - [Jakub Hrozek brought this change] |
| 2553 | |
| 2554 | ares_init: Last, not first instance of domain or search should win |
| 2555 | |
| 2556 | - style: make code less than 80 columns wide |
| 2557 | |
| 2558 | Yang Tse (31 May 2010) |
| 2559 | - [Tor Arntsen brought this change] |
| 2560 | |
| 2561 | improve alternative definition of bool to use enum instead of unsigned char |
| 2562 | |
| 2563 | - fix VS2010 compiler warnings |
| 2564 | |
| 2565 | Daniel Stenberg (18 Apr 2010) |
| 2566 | - [Jérémy Lal brought this change] |
| 2567 | |
| 2568 | added ares_parse_mx_reply |
| 2569 | |
| 2570 | - repair the file mode |
| 2571 | |
| 2572 | - remove all $Id$ lines |
| 2573 | |
| 2574 | - remove all .cvsignore files |
| 2575 | |
| 2576 | - spell fix |
| 2577 | |
| 2578 | reported by Gregor Jasny on the mailing list |
| 2579 | |
| 2580 | - [Peter Pentchev brought this change] |
| 2581 | |
| 2582 | Fix a couple of typos and grammar nits. |
| 2583 | |
| 2584 | - ignore the GPG signature files too |
| 2585 | |
| 2586 | - start the journey towards 1.7.2 |
| 2587 | |
| 2588 | - no longer CVS tagging |
| 2589 | |
| 2590 | - ignore generated PDFs |
| 2591 | |
| 2592 | Version 1.7.1 (23 Mar 2010) |
| 2593 | |
| 2594 | Daniel Stenberg (23 Mar 2010) |
| 2595 | - 1.7.1 |
| 2596 | |
| 2597 | - made README the primary readme file |
| 2598 | |
| 2599 | ... and did README.cares to contain a historic reason etc. |
| 2600 | |
| 2601 | - s/CVS/git |
| 2602 | |
| 2603 | - git now, not CVS |
| 2604 | |
| 2605 | - ignore lots of generated files |
| 2606 | |
| 2607 | - [Daniel Johnson brought this change] |
| 2608 | |
| 2609 | Fix warnings for clang |
| 2610 | |
| 2611 | Yang Tse (17 Mar 2010) |
| 2612 | - replaced intel compiler option -no-ansi-alias with -fno-strict-aliasing |
| 2613 | |
| 2614 | - update outdated serial number |
| 2615 | |
| 2616 | - fix compiler warning |
| 2617 | |
| 2618 | - watt32 compilation fix |
| 2619 | |
| 2620 | - Added another VS10 version string |
| 2621 | |
| 2622 | - fix line break |
| 2623 | |
| 2624 | - removed usage of 's6_addr', fixing compilation issue triggered with no |
| 2625 | longer using 'in6_addr' but only our 'ares_in6_addr' struct |
| 2626 | |
| 2627 | Daniel Stenberg (5 Mar 2010) |
| 2628 | - Daniel Johnson provided fixes for building with the clang compiler |
| 2629 | |
| 2630 | Yang Tse (5 Mar 2010) |
| 2631 | - Added IPv6 name servers support |
| 2632 | |
| 2633 | Gisle Vanem (5 Mar 2010) |
| 2634 | - Ops!. Readded ares_nowarn.h. |
| 2635 | |
| 2636 | - Added ares_nowarn.c. |
| 2637 | |
| 2638 | Yang Tse (28 Feb 2010) |
| 2639 | - Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems |
| 2640 | |
| 2641 | - Added ares_nowarn.* to VC6 project file |
| 2642 | |
| 2643 | - Added SIZEOF_INT definition |
| 2644 | |
| 2645 | - fix compiler warning |
| 2646 | |
| 2647 | - fix compiler warning |
| 2648 | |
| 2649 | - fix compiler warning |
| 2650 | |
| 2651 | Daniel Stenberg (17 Feb 2010) |
| 2652 | - ares_reinit() |
| 2653 | |
| 2654 | - To allow an app to force a re-read of /etc/resolv.conf etc, pretty much |
| 2655 | like the res_init() resolver function offers |
| 2656 | |
| 2657 | - - Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't |
| 2658 | check for broken connections like ares_process() did. Based on that, I |
| 2659 | merged the two functions into a single generic one with two front-ends. |
| 2660 | |
| 2661 | Yang Tse (30 Dec 2009) |
| 2662 | - VMS specific preprocessor symbol checking adjustments |
| 2663 | |
| 2664 | - Mention last changes |
| 2665 | |
| 2666 | - - Fix configure_socket() to use ares_socket_t instead of int data type. |
| 2667 | |
| 2668 | - - Where run-time error checks enabling compiler option /GZ was used it is now |
| 2669 | replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions. |
| 2670 | |
| 2671 | - Compiler option /GX is now replaced with equivalent /EHsc for all versions. |
| 2672 | |
| 2673 | - - Ingmar Runge noticed that Windows config-win32.h configuration file |
| 2674 | did not include a definition for HAVE_CLOSESOCKET which resulted in |
| 2675 | function close() being inappropriately used to close sockets. |
| 2676 | |
| 2677 | Daniel Stenberg (30 Nov 2009) |
| 2678 | - start working on 1.7.1 |
| 2679 | |
| 2680 | Version 1.7.0 (27 Nov 2009) |
| 2681 | |
| 2682 | Yang Tse (27 Nov 2009) |
| 2683 | - Preserve empty line following last target |
| 2684 | |
| 2685 | - - Larry Lansing fixed ares_parse_srv_reply to properly parse replies |
| 2686 | which might contain non-SRV answers, skipping over potential non-SRV |
| 2687 | ones such as CNAMEs. |
| 2688 | |
| 2689 | - When using icc, compile with -fpic and link with intel dynamic libraries. |
| 2690 | |
| 2691 | - Added 'currently' in italics to insist on transient situation. |
| 2692 | |
| 2693 | - Fix language |
| 2694 | |
| 2695 | - Daniel wants upcoming release to be 1.7.0 |
| 2696 | |
| 2697 | - Mention last changes |
| 2698 | |
| 2699 | - - Removed from external interface preprocessor symbol definition for |
| 2700 | CARES_HAVE_ARES_FREE_DATA. Current functionality of ares_free_data() |
| 2701 | makes it unnecessary. |
| 2702 | |
| 2703 | - Added README.msvc |
| 2704 | |
| 2705 | - Changed c-ares naming conventions when using MSVC as described in README.msvc |
| 2706 | |
| 2707 | - - Mention other recent changes |
| 2708 | |
| 2709 | - - Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and |
| 2710 | ares_addr6ttl in order to prevent name space pollution, along with |
| 2711 | necessary changes to code base and man pages.This change does not break |
| 2712 | ABI, there is no need to recompile existing applications. But existing |
| 2713 | applications using these structs with the old name will need source code |
| 2714 | adjustments when recompiled using c-ares 1.6.1. |
| 2715 | |
| 2716 | - - Jakub Hrozek fixed more function prototypes in man pages to sync them |
| 2717 | with the ones declared in ares.h |
| 2718 | |
| 2719 | - Make configure remove the ares_build.h file included in distribution tarballs. |
| 2720 | |
| 2721 | - Fix macro redefinition. |
| 2722 | |
| 2723 | - Fix name space pollution. |
| 2724 | |
| 2725 | - Allow using different extra import libraries for debug and release builds. |
| 2726 | |
| 2727 | - Add manifest stuff to msvc makefile |
| 2728 | |
| 2729 | - Sync man page with reality |
| 2730 | |
| 2731 | - Add missing external API decoration for ares_set_socket_callback() |
| 2732 | |
| 2733 | - Add ares_free_data() man page. |
| 2734 | |
| 2735 | - - Provide in external interface preprocessor symbol definitions for |
| 2736 | CARES_HAVE_ARES_FREE_DATA as an indication of function availability. |
| 2737 | |
| 2738 | - Remove typecast |
| 2739 | |
| 2740 | - Fix comment |
| 2741 | |
| 2742 | - Add ares_data.c and ares_data.h |
| 2743 | |
| 2744 | - Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API |
| 2745 | to return a linked lists of results. These were also modified to internally |
| 2746 | use the ares_data memory struct and as such its result must be free'ed with |
| 2747 | ares_free_data(). |
| 2748 | |
| 2749 | - Initial support for the generic ares_free_data() function that will allow |
| 2750 | applications to free memory allocated and returned by some c-ares funtions. |
| 2751 | |
| 2752 | - Make usage of calloc()'s arguments consistent with rest of code base |
| 2753 | |
| 2754 | - workaround icc 9.1 optimizer issue |
| 2755 | |
| 2756 | - Add icc fvisibility bug test |
| 2757 | |
| 2758 | - Fix icc 9.0 compiler warning: external definition with no prior declaration |
| 2759 | |
| 2760 | - Fix three var names |
| 2761 | |
| 2762 | - Add check for assert.h header file |
| 2763 | |
| 2764 | - getaddrinfo is fully thread safe on solaris versions which |
| 2765 | implement the function even when h_errno is not a macro. |
| 2766 | |
| 2767 | The h_errno macro test now only done on systems for which there |
| 2768 | is no hard coded knowledge about getaddrinfo's thread safeness. |
| 2769 | |
| 2770 | - Remove files generated on previous buildconf/configure run |
| 2771 | |
| 2772 | - Remove enable-thread / disable-thread configure option. These were only placebo |
| 2773 | options. The library is always built as thread safe as possible on every system. |
| 2774 | |
| 2775 | - Refactor how preprocessor symbol _THREAD_SAFE definition is done. |
| 2776 | |
| 2777 | - Assume that getaddrinfo is thread safe, unless hard coded |
| 2778 | knowledge says the contrary or h_errno is not defined. |
| 2779 | |
| 2780 | - Related with the threadsafe capability of getaddrinfo: |
| 2781 | |
| 2782 | - Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2 |
| 2783 | and newer have a threadsafe getaddrinfo. |
| 2784 | |
| 2785 | - Fix Dragonfly BSD triplet detection. |
| 2786 | |
| 2787 | - In case the hard-coded knowledge says that getaddrinfo is threadsafe, |
| 2788 | an additional check is done to verify that h_errno is also defined. |
| 2789 | If h_errno isn't defined, we finally assume that it isn't threadsafe. |
| 2790 | Jamie Lokier provided the inspiration for this extra check. |
| 2791 | |
| 2792 | - AIX 5.2 and newer have threadsafe getaddrinfo. |
| 2793 | |
| 2794 | Add some comments to better understand what the regex's pretend to achieve. |
| 2795 | |
| 2796 | - HP-UX 11.11 and later have threadsafe getaddrinfo |
| 2797 | |
| 2798 | - Check if getaddrinfo is threadsafe when function check allows it to be used |
| 2799 | |
| 2800 | - Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library |
| 2801 | |
| 2802 | - Add kernel32.lib |
| 2803 | |
| 2804 | - Mention last changes |
| 2805 | |
| 2806 | - Reinstate copyright symbol lost in previous commit |
| 2807 | |
| 2808 | - Make some strings different in resource file for debug or release builds |
| 2809 | |
| 2810 | - Ignore more subdirs |
| 2811 | |
| 2812 | - Fix compiler warning: conditional expression is constant |
| 2813 | |
| 2814 | - Sync linker and resource compiler options with Makefile.msvc |
| 2815 | |
| 2816 | - Follow Makefile.msvc subdirectory naming scheme, and sync compiler options |
| 2817 | |
| 2818 | - Updated MSVC makefile that allows building dynamic and static |
| 2819 | c-ares libraries in debug and release flavours. |
| 2820 | |
| 2821 | Additionally each of the three sample programs is built against |
| 2822 | each of the four possible c-ares libraries, generating all this |
| 2823 | a total number of 12 executables and 4 libraries. |
| 2824 | |
| 2825 | - Test for USE_WINSOCK since it is more restrictive than WIN32 |
| 2826 | |
| 2827 | - Make header inclusion depend on HAVE_*_H definition |
| 2828 | |
| 2829 | - Remove unneeded preprocessor directives |
| 2830 | |
| 2831 | - Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds |
| 2832 | |
| 2833 | - source files used by sample programs |
| 2834 | |
| 2835 | - Renamed c-ares setup.h to ares_setup.h |
| 2836 | |
| 2837 | - Adjust include paths to take in account that currently: |
| 2838 | |
| 2839 | c-ares with --enable-curldebug uses memdebug.h from libcurl's lib subdirectory. |
| 2840 | |
| 2841 | memdebug.h needs access to libcurl's setup.h from libcurl's lib subdirectory |
| 2842 | and also needs access to libcurl's generated curl_config.h |
| 2843 | |
| 2844 | - Undo old temporary change once used for testing purposes |
| 2845 | |
| 2846 | - Mention many changes |
| 2847 | |
| 2848 | - Mention --enable-symbol-hiding configure option |
| 2849 | |
| 2850 | - Symbol hiding configure options renamed to the hopefully less ambiguous |
| 2851 | --enable-symbol-hiding and --disable-symbol-hiding as well as related |
| 2852 | macro names and some internal variables used for them. |
| 2853 | |
| 2854 | Related configuration file preprocessor symbols named to |
| 2855 | CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN. |
| 2856 | |
| 2857 | - Header inclusion depending on HAVE_* symbol. |
| 2858 | Fix two typos. |
| 2859 | |
| 2860 | - Comparison of the Initial revision of this file with ares_parse_a_reply.c |
| 2861 | shows that this one is actually a modified copy of ares_parse_a_reply.c. |
| 2862 | |
| 2863 | In order to comply with ares_parse_a_reply.c's M.I.T. license, the old |
| 2864 | 1998 M.I.T. copyright notice is now also preserved in this file the same |
| 2865 | as it is done in other ares_parse_*.c files. |
| 2866 | |
| 2867 | - Add CVS Id tag. |
| 2868 | Fix identation of some license lines. |
| 2869 | |
| 2870 | - Add CVS Id tag. |
| 2871 | |
| 2872 | - Fix comment |
| 2873 | |
| 2874 | - In no particular order, changed/fixed all of the following in |
| 2875 | ares_parse_txt_reply() current version: |
| 2876 | |
| 2877 | - Fixed a couple of potential double free's. |
| 2878 | |
| 2879 | - Fixed memory leaks upon out of memory condition. |
| 2880 | |
| 2881 | - Fixed pointer arithmetic. |
| 2882 | |
| 2883 | - Setting ntxtreply to zero upon entry for all failure cases. |
| 2884 | |
| 2885 | - Changed data type to size_t for variables substr_len, str_len and |
| 2886 | the length member of ares_txt_reply struct. |
| 2887 | |
| 2888 | - Avoided a couple of memcpy() calls. |
| 2889 | |
| 2890 | - Changed i data type to unsigned int to prevent compiler warnings. |
| 2891 | |
| 2892 | - Adjusted a comment. |
| 2893 | |
| 2894 | - Use ARES_SUCCESS literal for successfull completion. |
| 2895 | |
| 2896 | - Added CVS Id tag. |
| 2897 | |
| 2898 | - Add c-ares DLL resource file to distribution archive |
| 2899 | |
| 2900 | - ignore files |
| 2901 | |
| 2902 | - Empty subdir |
| 2903 | |
| 2904 | - Updated MSVC 6.0 workspace and project files that allows building |
| 2905 | dynamic and static c-ares libraries in debug and release flavours. |
| 2906 | |
| 2907 | Additionally each of the three sample programs is built against |
| 2908 | each of the four possible c-ares libraries, generating all this |
| 2909 | a total number of 12 executables and 4 libraries. |
| 2910 | |
| 2911 | Daniel Stenberg (29 Oct 2009) |
| 2912 | - no need to check for NULL pointers before dereferencing, as the pointers |
| 2913 | MUST be valid and they are dereferenced further down in the function |
| 2914 | unconditionally! |
| 2915 | |
| 2916 | - shorten the descriptions somewhat |
| 2917 | |
| 2918 | - update to the new struct name |
| 2919 | |
| 2920 | - Jakub Hrozek added ares_parse_txt_reply() for TXT parsing |
| 2921 | |
| 2922 | - use 'ares_srv_reply' for proper name-spacing |
| 2923 | |
| 2924 | Yang Tse (29 Oct 2009) |
| 2925 | - Add reference for ares_parse_srv_reply.pdf |
| 2926 | |
| 2927 | - Add reference for ares_parse_srv_reply docs |
| 2928 | |
| 2929 | - External API function linkage decoration adjustment |
| 2930 | |
| 2931 | - External API function linkage decoration adjustment |
| 2932 | |
| 2933 | - Initial step towards the ability to reduce c-ares exported symbols |
| 2934 | based on the 'visibility' attribute for GNUC and __global for Sun |
| 2935 | compilers, taking also in account __declspec function decoration |
| 2936 | for Win32 and Symbian DLL's. |
| 2937 | |
| 2938 | Introducing configure options --enable-hidden-symbols and |
| 2939 | --disable-hidden-symbols following libcurl's naming. |
| 2940 | |
| 2941 | - Fix comment |
| 2942 | |
| 2943 | - Fix spelling |
| 2944 | |
| 2945 | - Fix Pelles C Win32 target compilation issues |
| 2946 | |
| 2947 | - John Engelhart noticed an unreleased problem relative to a duplicate |
| 2948 | ARES_ECANCELLED error code value and missing error code description. |
| 2949 | |
| 2950 | - Fix compiler warning: local variable may be used without having been initialized |
| 2951 | |
| 2952 | - Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR |
| 2953 | is only expanded and included once in the configure script. |
| 2954 | |
| 2955 | - Our _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd |
| 2956 | due to autoconf 2.64 m4_require'ing it in _AS_SHELL_SANITIZE indirectly through |
| 2957 | _AS_PATH_WALK. |
| 2958 | |
| 2959 | - Fix compiler warning: argument is incompatible with corresponding format string conversion |
| 2960 | |
| 2961 | - Fix potential out-of-bounds read |
| 2962 | |
| 2963 | - Fix compiler warning: loop without body |
| 2964 | |
| 2965 | - Fix compiler warning |
| 2966 | |
| 2967 | - Fix compiler warning |
| 2968 | |
| 2969 | - Fix compiler warning |
| 2970 | |
| 2971 | - Fix compiler warning: addition result could be truncated before cast to bigger sized type |
| 2972 | |
| 2973 | - Overhauled ares__get_hostent() |
| 2974 | |
| 2975 | - Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file. |
| 2976 | - Improving parsing of /etc/hosts file. |
| 2977 | - Validating requested address family. |
| 2978 | - Ensuring that failures always return a NULL pointer. |
| 2979 | - Adjusting header inclusions. |
| 2980 | |
| 2981 | - Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak |
| 2982 | |
| 2983 | - more files to ignore |
| 2984 | |
| 2985 | - Check if _REENTRANT definition is required to |
| 2986 | make errno available as a preprocessor macro. |
| 2987 | |
| 2988 | - Attempt to silence bogus compiler warning: "Potential null pointer dereference" |
| 2989 | |
| 2990 | - ignore more files |
| 2991 | |
| 2992 | Gisle Vanem (7 Sep 2009) |
| 2993 | - Suppress warnings about unused prototypes in Watt32 and Win32 programs. |
| 2994 | |
| 2995 | - Update email address. |
| 2996 | |
| 2997 | - Update my email address. Add ares_config.h as dependency for 'make depend'. |
| 2998 | |
| 2999 | Yang Tse (6 Sep 2009) |
| 3000 | - T_SRV portability check |
| 3001 | |
| 3002 | Gunter Knauf (5 Sep 2009) |
| 3003 | - changed includes to match style how we do with all other *.c files. |
| 3004 | |
| 3005 | - changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used; |
| 3006 | also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here. |
| 3007 | |
| 3008 | Gisle Vanem (5 Sep 2009) |
| 3009 | - Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h. |
| 3010 | |
| 3011 | - Added 'ares_parse_srv_reply.obj'. Added definition of 'u_int16_t'. This is I don't like; we should not depend on such non-universal types in a public header. But this is just a quick fix. |
| 3012 | |
| 3013 | Daniel Stenberg (4 Sep 2009) |
| 3014 | - - Jakub Hrozek added ares_parse_srv_reply() for SRV parsing |
| 3015 | |
| 3016 | Steinar H. Gunderson (27 Aug 2009) |
| 3017 | - Support lookup of IPv4 literals in ares_gethostbyname(), even when the address family is set to AF_INET6. |
| 3018 | |
| 3019 | Gisle Vanem (3 Aug 2009) |
| 3020 | - Remove call to LoadLibrary(). (leftover from debugging). |
| 3021 | |
| 3022 | - Fix bad sentence. |
| 3023 | |
| 3024 | Daniel Stenberg (3 Aug 2009) |
| 3025 | - - Timo Teras changed the reason code used in the resolve callback done when |
| 3026 | ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to |
| 3027 | better allow the callback to know what's happening. |
| 3028 | |
| 3029 | - - Joshua Kwan fixed the init routine to fill in the defaults for stuff that |
| 3030 | fails to get inited by other means. This fixes a case of when the c-ares |
| 3031 | init fails when internet access is fone. |
| 3032 | |
| 3033 | Gunter Knauf (16 Jul 2009) |
| 3034 | - test if adding ../lib to includes can fix the current break ... |
| 3035 | |
| 3036 | - renamed generated config.h to ares_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h. |
| 3037 | |
| 3038 | Yang Tse (21 Jun 2009) |
| 3039 | - Refactor how libraries are checked for connect() function, follow-up. |
| 3040 | |
| 3041 | - Refactor how libraries are checked for connect() function, |
| 3042 | and check for connect() as it is done for other functions. |
| 3043 | |
| 3044 | Gisle Vanem (20 Jun 2009) |
| 3045 | - Remove unneeded defines. |
| 3046 | |
| 3047 | - Use select_s() and not select(). |
| 3048 | |
| 3049 | Yang Tse (19 Jun 2009) |
| 3050 | - sclose() function-like macro definition used to close a socket, |
| 3051 | now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL |
| 3052 | config file preprocessor definitions. |
| 3053 | |
| 3054 | - add CloseSocket camel case function check |
| 3055 | |
| 3056 | - check for socket() and closesocket() as it is done for other functions |
| 3057 | |
| 3058 | - Remove HAVE_CONFIG_H definition from here, |
| 3059 | CFLAGS from common.dj already defines it. |
| 3060 | |
| 3061 | - initial step towards decoupling c-ares from libcurl for DOS |
| 3062 | |
| 3063 | - don't ignore these subdirs, they must be removed first |
| 3064 | |
| 3065 | - Remove DEBUGBUILD symbol definition, is not required for programs using the library. |
| 3066 | |
| 3067 | - DEBUGBUILD symbol definition for debug builds |
| 3068 | |
| 3069 | - ignore some subdirs |
| 3070 | |
| 3071 | - fix comment |
| 3072 | |
| 3073 | - Try to make more clear that --enable-curldebug has nothing to do with --enable-debug for this library. |
| 3074 | |
| 3075 | - Revert last change, it is inappropriate. |
| 3076 | |
| 3077 | Gisle Vanem (12 Jun 2009) |
| 3078 | - Replace CURLDEBUG with DEBUGBUILD. |
| 3079 | |
| 3080 | Yang Tse (11 Jun 2009) |
| 3081 | - when running automake copy missing files instead of symlinking them |
| 3082 | |
| 3083 | - Adjusted to take in account that... |
| 3084 | |
| 3085 | With the curl memory tracking feature decoupled from the debug build feature, |
| 3086 | CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows: |
| 3087 | |
| 3088 | CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug) |
| 3089 | |
| 3090 | DEBUGBUILD used for debug enabled specific code (--enable-debug) |
| 3091 | |
| 3092 | - c-ares' --enable-debug --enable-curldebug decoupling follow-up |
| 3093 | |
| 3094 | - mention last changes |
| 3095 | |
| 3096 | - Remove buildconf.bat from release and daily snapshot archives. |
| 3097 | |
| 3098 | buildconf.bat is only for CVS tree builds. |
| 3099 | |
| 3100 | - Ensure that buildconf.bat does nothing unless it is used with a CVS checkout. |
| 3101 | |
| 3102 | - CVS-INFO file only present in CVS tree, never in release nor daily snapshot |
| 3103 | archives. Used as a sentinel file in buildconf.bat to differentiate CVS builds. |
| 3104 | |
| 3105 | Gisle Vanem (8 Jun 2009) |
| 3106 | - Update comment about "ML". Removed "-D_USE_32BIT_TIME_T" (not a requirement). |
| 3107 | |
| 3108 | Yang Tse (8 Jun 2009) |
| 3109 | - just comment it out |
| 3110 | |
| 3111 | - For debugging purposes... |
| 3112 | |
| 3113 | Disable the '-export-symbols-regex' to discard this as the origin |
| 3114 | of link failures related with shared libraries and non-GNU linkers. |
| 3115 | |
| 3116 | - c-ares Makefile.am back to using $(top_builddir) for *_LDADD |
| 3117 | |
| 3118 | - c-ares' -no-undefined and --enable-curldebug adjustments |
| 3119 | |
| 3120 | - Use relative path to built c-ares tree libtool library |
| 3121 | |
| 3122 | - John E. Malmberg noticed that the configure script was failing to detect the |
| 3123 | timeval struct on VMS when building with _XOPEN_SOURCE_EXTENDED undefined due |
| 3124 | to definition taking place in socket.h instead of time.h |
| 3125 | |
| 3126 | - Fix compiler warning: out of bound access |
| 3127 | |
| 3128 | - fix compilation on AIX |
| 3129 | |
| 3130 | - c-ares' --enable-curldebug adjustments |
| 3131 | |
| 3132 | - Remove temporarily introduced memory leak. |
| 3133 | |
| 3134 | - Temporarily introduce a memory leak to verify curl debug memory tracking works. |
| 3135 | |
| 3136 | - Allow curl debug memory tracking when building a shared library on |
| 3137 | systems which support external, undefined, symbols in shared libraries. |
| 3138 | |
| 3139 | Daniel Stenberg (26 May 2009) |
| 3140 | - language fix |
| 3141 | |
| 3142 | Yang Tse (26 May 2009) |
| 3143 | - Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED |
| 3144 | if library initialization has not been performed calling ares_library_init(). |
| 3145 | |
| 3146 | - c-ares's --enable-curldebug configure option decoupled from c-ares's --enable-debug |
| 3147 | |
| 3148 | - Prevent copying 'sourced' manpages for build targets that don't use them. |
| 3149 | |
| 3150 | Daniel Stenberg (23 May 2009) |
| 3151 | - minor edits |
| 3152 | |
| 3153 | Yang Tse (21 May 2009) |
| 3154 | - Include .pdf versions of c-ares man pages in distribution tarball. |
| 3155 | |
| 3156 | - Allow generation of .html and .pdf versions of c-ares man pages. |
| 3157 | |
| 3158 | Gisle Vanem (21 May 2009) |
| 3159 | - $(OBJ_DIR)/ares_getopt.o must be cleaned explicitly. |
| 3160 | |
| 3161 | Yang Tse (20 May 2009) |
| 3162 | - Mention last changes |
| 3163 | |
| 3164 | - Initial ares_library_cleanup(3) man page |
| 3165 | |
| 3166 | - Update man page |
| 3167 | |
| 3168 | - Update man page |
| 3169 | |
| 3170 | - Initial ares_library_init(3) man page attempt |
| 3171 | |
| 3172 | - Force revision update, to force CVS to update the $Id date string format |
| 3173 | |
| 3174 | - Add same copyright notice as other c-ares files |
| 3175 | |
| 3176 | - Fix case |
| 3177 | |
| 3178 | - Remove run-time requirement for advapi32.dll since |
| 3179 | c-ares can work even with no advapi32.dll at all. |
| 3180 | |
| 3181 | - Intentionally avoid checking if the address of SystemFunction036, a.k.a. |
| 3182 | RtlGenRandom, has been located or not. This function is only available on |
| 3183 | WinXP and later. When unavailable c-ares uses portable rand() function. |
| 3184 | |
| 3185 | - - Provide in external interface preprocessor symbol definitions for |
| 3186 | CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP |
| 3187 | to ease the use of new capabilities. |
| 3188 | |
| 3189 | - Move ares_version() prototype to ares.h |
| 3190 | |
| 3191 | - Introduction of ares_library_init() and ares_library_cleanup() |
| 3192 | |
| 3193 | - Introduction of ares_library_init() and ares_library_cleanup() |
| 3194 | |
| 3195 | - remove outdated comment |
| 3196 | |
| 3197 | - Fix preprocessor conditional expression |
| 3198 | |
| 3199 | - fiX *__SOCKLEN_T definitions for remaining targets |
| 3200 | |
| 3201 | - *__SOCKLEN_T definitions for OS400 already fixed |
| 3202 | |
| 3203 | - fIX *__SOCKLEN_T definitions for SYMBIAN32 and VMS targets |
| 3204 | |
| 3205 | Daniel Stenberg (11 May 2009) |
| 3206 | - - Gregor Jasny made c-ares link with libtool 's -export-symbols-regex option to |
| 3207 | only expose functions starting with ares_. |
| 3208 | |
| 3209 | Yang Tse (11 May 2009) |
| 3210 | - Remove experimental check. Currently there's no need for it. |
| 3211 | |
| 3212 | - Fix an m4 overquoting triggering a spurious 'AS_TR_CPP' symbol definition |
| 3213 | attempt in generated config.h |
| 3214 | |
| 3215 | - Proper naming for the experimental compiler test and moved to *-compilers.m4 |
| 3216 | |
| 3217 | - Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_* |
| 3218 | |
| 3219 | - fIX *__SOCKLEN_T definitions for OS400 and generic GCC targets |
| 3220 | |
| 3221 | - fIX *__SOCKLEN_T definitions for MVS and 370 targets |
| 3222 | |
| 3223 | - fIX *__SOCKLEN_T definitions for several Windows target tool-chains |
| 3224 | |
| 3225 | - HP-UX's X/Open network library requirement check follow-up |
| 3226 | |
| 3227 | - HP-UX's X/Open network library requirement check follow-up |
| 3228 | |
| 3229 | - Use build-time configured ares_socklen_t instead of socklen_t |
| 3230 | |
| 3231 | - David McCreedy's "TPF-platform specific changes to various files" patch follow-up |
| 3232 | |
| 3233 | Daniel Stenberg (1 May 2009) |
| 3234 | - s/libcurl/c-ares |
| 3235 | |
| 3236 | - version number typo fix |
| 3237 | |
| 3238 | Yang Tse (1 May 2009) |
| 3239 | - David McCreedy's "TPF-platform specific changes to various files" patch |
| 3240 | |
| 3241 | - Check definition of _XOPEN_SOURCE_EXTENDED with the compiler |
| 3242 | |
| 3243 | - Check if X/Open network library is required |
| 3244 | |
| 3245 | - cope with ares_build.h and ares_rules.h follow-up |
| 3246 | |
| 3247 | - Added some notes regarding ares_build.h |
| 3248 | |
| 3249 | - fix EOL |
| 3250 | |
| 3251 | - fix EOL |
| 3252 | |
| 3253 | - cope with ares_build.h and ares_rules.h |
| 3254 | |
| 3255 | - buildconf.bat for CVS-tree c-ares |
| 3256 | |
| 3257 | - Use 'unsigned int' instead of size_t attempting to avoid header inclusion |
| 3258 | |
| 3259 | - NetWare LibC's getpeername() third argument data type is size_t |
| 3260 | |
| 3261 | - Remove temporary debug tracing for ares_socklen_t Windows targets |
| 3262 | |
| 3263 | - ares_socklen_t follow-up |
| 3264 | |
| 3265 | - ares_build.h Windows follow-up |
| 3266 | |
| 3267 | - Add temporary debug tracing for ares_socklen_t Windows targets |
| 3268 | |
| 3269 | - ares_build.h NetWare follow-up |
| 3270 | |
| 3271 | - ares_build.h NetWare attempt |
| 3272 | |
| 3273 | - Initial step towards a configure time ares_socklen_t definition |
| 3274 | |
| 3275 | - ignore stamp-h* |
| 3276 | |
| 3277 | - Added CARES_INCLUDES_SYS_TYPES |
| 3278 | |
| 3279 | - Initial step towards a configure time curl_socklen_t definition |
| 3280 | |
| 3281 | - avoid use of alloca() |
| 3282 | |
| 3283 | - Moved potential inclusion of system's malloc.h and memory.h header files to |
| 3284 | setup_once.h. Inclusion of each header file is based on the definition of |
| 3285 | NEED_MALLOC_H and NEED_MEMORY_H respectively. |
| 3286 | |
| 3287 | - ignore |
| 3288 | |
| 3289 | Gisle Vanem (18 Apr 2009) |
| 3290 | - Added '-DHAVE_LIMITS_H'. |
| 3291 | |
| 3292 | Yang Tse (17 Apr 2009) |
| 3293 | - remove compiler options used while debugging the icc 9.1 optimizer issue |
| 3294 | |
| 3295 | - moved HAVE_LIMITS_H to common defines |
| 3296 | |
| 3297 | - Set HP-UX compiler warning level back to the one that exposes |
| 3298 | the socklen_t issue on this platform. |
| 3299 | |
| 3300 | - HAVE_LIMITS_H definition for NetWare CLIB |
| 3301 | |
| 3302 | - use HAVE_LIMITS_H symbol to protect limits.h inclusion |
| 3303 | |
| 3304 | - fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value |
| 3305 | |
| 3306 | - s/u_long/unsigned long/ |
| 3307 | |
| 3308 | - Do not halt compilation when using VS2008 to build a Windows 2000 target |
| 3309 | |
| 3310 | - ignore |
| 3311 | |
| 3312 | Phil Blundell (3 Feb 2009) |
| 3313 | - * February 3 2009 (Phil Blundell) |
| 3314 | - If the server returns garbage or nothing at all in response to an AAAA query, |
| 3315 | go on and ask for A records anyway. |
| 3316 | |
| 3317 | Daniel Stenberg (31 Jan 2009) |
| 3318 | - - ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolving |
| 3319 | either AF_INET6 or AF_INET. It works by accepting any of the looksups in the |
| 3320 | hosts file, and it resolves the AAAA field with a fallback to A. |
| 3321 | |
| 3322 | Gisle Vanem (18 Jan 2009) |
| 3323 | - fopen() returns error in 'errno' even on Windows. |
| 3324 | So don't use ERRNO (GetLastError()). Trimmed trailing |
| 3325 | blanks. |
| 3326 | |
| 3327 | - Constified some arguments in local functions. |
| 3328 | |
| 3329 | Daniel Stenberg (14 Jan 2009) |
| 3330 | - - ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it |
| 3331 | now declares the private struct ares_in6_addr for all systems instead of |
| 3332 | relying on one possibly not present in the system. |
| 3333 | |
| 3334 | Phil Blundell (13 Jan 2009) |
| 3335 | - - ares__send_query() now varies the retry timeout pseudo-randomly to avoid |
| 3336 | packet storms when several queries were started at the same time. |
| 3337 | |
| 3338 | Daniel Stenberg (11 Jan 2009) |
| 3339 | - - Phil Blundell added the internal function ares__expand_name_for_response() |
| 3340 | that is now used by the ares_parse_*_reply() functions instead of the |
| 3341 | ares_expand_name() simply to easier return ARES_EBADRESP for the cases where |
| 3342 | the name expansion fails as in responses that really isn't expected. |
| 3343 | |
| 3344 | Gunter Knauf (30 Dec 2008) |
| 3345 | - added HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID to ares Makefile.netware and sync'd with other Makefile.netware. |
| 3346 | |
| 3347 | Daniel Stenberg (9 Dec 2008) |
| 3348 | - use the new URL |
| 3349 | |
| 3350 | - start over on the 1.6.1 release... |
| 3351 | |
| 3352 | Version 1.6.0 (9 Dec 2008) |
| 3353 | |
| 3354 | Daniel Stenberg (9 Dec 2008) |
| 3355 | - add space |
| 3356 | |
| 3357 | Gisle Vanem (9 Dec 2008) |
| 3358 | - Fix for Win32 targets using Watt-32. |
| 3359 | |
| 3360 | Dan Fandrich (9 Dec 2008) |
| 3361 | - C89 compilers (like Minix' ACK) only need to handle 31 functions arguments |
| 3362 | so split a long sprintf into two calls to get below that number. |
| 3363 | |
| 3364 | Gisle Vanem (8 Dec 2008) |
| 3365 | - Added needed defines for Watt-32 on Windows. |
| 3366 | |
| 3367 | - Undefine 'optarg', 'optind' and 'opterr' when using Watt-32 |
| 3368 | (to get correct linkage on Windows). |
| 3369 | |
| 3370 | - ares_writev() shall not be exported when using Watt-32 (has writev). |
| 3371 | Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to |
| 3372 | VC-2008+ only. |
| 3373 | |
| 3374 | - Removed unneeded defines HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T, |
| 3375 | RETSIGTYPE and HAVE_PROCESS_H. |
| 3376 | |
| 3377 | Daniel Stenberg (4 Dec 2008) |
| 3378 | - the initial version of the ares_set_socket_callback man page |
| 3379 | |
| 3380 | - Gregor Jasny provided the patch that introduces ares_set_socket_callback(), |
| 3381 | and I edited it to also get duped by ares_dup(). |
| 3382 | |
| 3383 | Dan Fandrich (4 Dec 2008) |
| 3384 | - Bring the sys/include.h include test in line with curl's. |
| 3385 | |
| 3386 | Daniel Stenberg (3 Dec 2008) |
| 3387 | - Let's not call ares_save_options() deprecated just yet |
| 3388 | |
| 3389 | - Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards. |
| 3390 | Also discussed on the ml. |
| 3391 | |
| 3392 | Dan Fandrich (2 Dec 2008) |
| 3393 | - Make sure sys/socket.h is included before netinet/in.h (required by |
| 3394 | OpenWatcom C, and condoned by SUS) |
| 3395 | |
| 3396 | Daniel Stenberg (1 Dec 2008) |
| 3397 | - minor indent fix |
| 3398 | |
| 3399 | - Convert the public config struct to the same binary size/construct as in the |
| 3400 | latest releases to remain ABI compatible. |
| 3401 | |
| 3402 | Gisle Vanem (29 Nov 2008) |
| 3403 | - Added '-DHAVE_GETHOSTNAME'. |
| 3404 | |
| 3405 | Dan Fandrich (29 Nov 2008) |
| 3406 | - Make sure sys/socket.h is included before netinet/in.h (required by |
| 3407 | OpenWatcom C) |
| 3408 | |
| 3409 | - Netware has gethostname() |
| 3410 | |
| 3411 | - Fixed a couple of typos |
| 3412 | |
| 3413 | - Don't tweak the HAVE_* macros when using autoconf |
| 3414 | |
| 3415 | - Make use of gethostname() conditional on it being available |
| 3416 | |
| 3417 | - Only set TCP_NODELAY when it exists |
| 3418 | |
| 3419 | Daniel Stenberg (28 Nov 2008) |
| 3420 | - updated with changes, preparing for a release soon |
| 3421 | |
| 3422 | Yang Tse (26 Nov 2008) |
| 3423 | - Gerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a |
| 3424 | buffer to shrink instead of expand if a reply contained 8 or more records. |
| 3425 | |
| 3426 | - Brad Spencer provided changes to allow buildconf to work on OS X. |
| 3427 | |
| 3428 | - In preparation for the upcomming IPv6 nameservers patch, the internal |
| 3429 | ares_addr union is now changed into an internal struct which also holds |
| 3430 | the address family. |
| 3431 | |
| 3432 | Dan Fandrich (20 Nov 2008) |
| 3433 | - Make checking for struct ifreq a prerequisite for setting |
| 3434 | HAVE_IOCTL_SIOCGIFADDR since it's needed to use SIOCGIFADDR and Watcom C |
| 3435 | doesn't currently define it. |
| 3436 | |
| 3437 | Daniel Stenberg (20 Nov 2008) |
| 3438 | - use unsigned short better intead of mixing with ints to prevent compiler |
| 3439 | warnings |
| 3440 | |
| 3441 | - please the picky compilers by staying with short as the data we get is short |
| 3442 | only |
| 3443 | |
| 3444 | - - Brad Spencer brought the new function ares_gethostbyname_file() which simply |
| 3445 | resolves a host name from the given file, using the regular hosts syntax. |
| 3446 | |
| 3447 | Yang Tse (19 Nov 2008) |
| 3448 | - user provided PATH_SEPARATOR always overrides auto-detected one |
| 3449 | |
| 3450 | - attempting to keep lines below 80 chars |
| 3451 | |
| 3452 | - provide a common PATH_SEPARATOR check method which is required by |
| 3453 | upcomming work to support the broadest range of Autoconf versions |
| 3454 | |
| 3455 | - check for gethostbyaddr and gethostbyname as it is done for other functions |
| 3456 | |
| 3457 | - Make configure script check if ioctl with the SIOCGIFADDR command can be |
| 3458 | used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate. |
| 3459 | |
| 3460 | - fix leftover from previous commit |
| 3461 | |
| 3462 | - fix inet_pton() runtime configure check |
| 3463 | |
| 3464 | - trim down configure script size |
| 3465 | |
| 3466 | Daniel Stenberg (15 Nov 2008) |
| 3467 | - Fixed an OOM condition reported by Jim Meyering |
| 3468 | |
| 3469 | Yang Tse (14 Nov 2008) |
| 3470 | - fix typo affecting inclusion of <arpa/inet.h> in configure |
| 3471 | checks for inet_ntoa_r() inet_ntop() and inet_pton() |
| 3472 | |
| 3473 | - #include <string.h> in the getaddrinfo() runtime check for the memset() prototype |
| 3474 | |
| 3475 | - fix symbol definition check for fcntl.h inclusion |
| 3476 | |
| 3477 | - Refactor configure script detection of functions used to set sockets into |
| 3478 | non-blocking mode, and decouple function detection from function capability. |
| 3479 | |
| 3480 | Daniel Stenberg (1 Nov 2008) |
| 3481 | - Added a TODO file to list things we want changed, added or fixed. |
| 3482 | |
| 3483 | - - Carlo Contavalli added support for the glibc "rotate" option, as documented |
| 3484 | in man resolv.conf: |
| 3485 | |
| 3486 | causes round robin selection of nameservers from among those listed. This |
| 3487 | has the effect of spreading the query load among all listed servers, rather |
| 3488 | than having all clients try the first listed server first every time. |
| 3489 | |
| 3490 | You can enable it with ARES_OPT_ROTATE |
| 3491 | |
| 3492 | Yang Tse (1 Nov 2008) |
| 3493 | - Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability |
| 3494 | |
| 3495 | - WIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite |
| 3496 | convoluted, compiler dependant and in some cases even build target dependat. |
| 3497 | |
| 3498 | - check for freeaddrinfo() at configuration phase |
| 3499 | |
| 3500 | - update aclocal file serial number |
| 3501 | |
| 3502 | - remove verification of the freeability of the addrinfo struct pointer members |
| 3503 | |
| 3504 | - fix comment |
| 3505 | |
| 3506 | - make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR |
| 3507 | and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME |
| 3508 | internal to CHECK_FUNC_GETADDRINFO |
| 3509 | |
| 3510 | - fix leftover |
| 3511 | |
| 3512 | - Initial attempt to detect at configuration time if the getaddrinfo() |
| 3513 | function returns an addrinfo with an unfreeable ai_canonname member ptr. |
| 3514 | |
| 3515 | - Initial attempt to detect at configuration time if the getaddrinfo() |
| 3516 | function returns an addrinfo with an unfreeable ai_addr member ptr. |
| 3517 | |
| 3518 | - icc adjustments: |
| 3519 | |
| 3520 | Select ANSI C89 dialect plus GNU extensions, again. |
| 3521 | |
| 3522 | - some more temporary magic for the icc seg-fault issue |
| 3523 | |
| 3524 | - icc permanent adjustment: |
| 3525 | |
| 3526 | Select precise floating-point model, otherwise doubles are less than 64-bit wide |
| 3527 | |
| 3528 | icc test adjustment: |
| 3529 | |
| 3530 | Select c89 dialect |
| 3531 | |
| 3532 | - icc adjustments: |
| 3533 | |
| 3534 | Enable more icc warnings. |
| 3535 | |
| 3536 | Optimization disabling options used only for icc 9.1 |
| 3537 | |
| 3538 | - #include <stdlib.h> for exit() prototype |
| 3539 | |
| 3540 | - some more temporary magic for the icc seg-fault issue |
| 3541 | |
| 3542 | - remove from configure.ac temporary magic for the icc seg-fault issue |
| 3543 | |
| 3544 | - some more temporary magic for the icc seg-fault issue |
| 3545 | |
| 3546 | - Charles Hardin patch: |
| 3547 | |
| 3548 | - handles the EINPROGRESS for UDP connects |
| 3549 | - uses closesocket instead of close on some paths that were noticed |
| 3550 | |
| 3551 | - some more temporary magic for the icc seg-fault issue |
| 3552 | |
| 3553 | - messages initially intended only for debug purposes, now become permanent |
| 3554 | since these are extremely useful when compiler rejects a set of options. |
| 3555 | |
| 3556 | - fix compiler warning |
| 3557 | |
| 3558 | - fix missing double-quotes |
| 3559 | |
| 3560 | Daniel Stenberg (17 Oct 2008) |
| 3561 | - Charles Hardin made adig support a regular numerical dotted IP address for the |
| 3562 | -s option as well. |
| 3563 | |
| 3564 | Yang Tse (16 Oct 2008) |
| 3565 | - some more temporary magic for the icc seg-fault issue |
| 3566 | |
| 3567 | - Ensure that shell variable contents which have active meaning |
| 3568 | to the shell echo command are not interpreted when trying to |
| 3569 | remove extra whitespace from shell variable content. |
| 3570 | |
| 3571 | - Adjust Watcom C warnings: |
| 3572 | |
| 3573 | Disable warnings on structure members padding. |
| 3574 | |
| 3575 | - With this change Solaris target builds will now be done with _REENTRANT defined. |
| 3576 | |
| 3577 | - Adjust Tiny C basic options: |
| 3578 | |
| 3579 | Remove -b from debug-enabled configuration, as Tiny C might have |
| 3580 | been built without the memory and bounds checker support. |
| 3581 | |
| 3582 | - Adjust GCC warnings: |
| 3583 | |
| 3584 | Better disable following warnings when cross-compiling with a gcc older |
| 3585 | than 3.0, to avoid warnings from third party system headers: |
| 3586 | |
| 3587 | -Wmissing-declarations |
| 3588 | -Wmissing-prototypes |
| 3589 | -Wunused |
| 3590 | -Wshadow |
| 3591 | |
| 3592 | - fix syntax error |
| 3593 | |
| 3594 | - Initial attempt to detect Watcom C compiler |
| 3595 | |
| 3596 | - make naming scheme more consistent across whole file |
| 3597 | |
| 3598 | - Adjust GCC warnings: |
| 3599 | |
| 3600 | Disable following warnings when cross-compiling with a gcc older |
| 3601 | than 3.0, to avoid warnings from third party system headers: |
| 3602 | |
| 3603 | -Wmissing-prototypes |
| 3604 | -Wunused |
| 3605 | -Wshadow |
| 3606 | |
| 3607 | - Adjust GCC --enable-warnings: |
| 3608 | |
| 3609 | Do not enable -pedantic when cross-compiling with a gcc older |
| 3610 | than 3.0, to avoid warnings from third party system headers. |
| 3611 | |
| 3612 | - adjust SGI MIPSpro C detection |
| 3613 | |
| 3614 | - LCC compiler adjustments: |
| 3615 | |
| 3616 | Highest warning level is double -A, next is single -A. |
| 3617 | Due to the big number of warnings these trigger on third |
| 3618 | party header files it is impratical for us to use any of |
| 3619 | them here. If you want them simply define it in CPPFLAGS. |
| 3620 | |
| 3621 | - remove extra space |
| 3622 | |
| 3623 | - split SGI compiler check. One for MIPS C and another for MIPSpro C |
| 3624 | |
| 3625 | - LCC compiler adjustments: |
| 3626 | |
| 3627 | Warning level reduced from double -A to single -A |
| 3628 | |
| 3629 | - Initial attempt to detect Tiny C compiler |
| 3630 | |
| 3631 | - Initial attempt to detect LCC compiler |
| 3632 | |
| 3633 | - 1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM |
| 3634 | |
| 3635 | 2) Disable SGI remark: controlling expression is constant |
| 3636 | |
| 3637 | - simplify SGI C compiler check |
| 3638 | |
| 3639 | - HP C adjustments: |
| 3640 | |
| 3641 | Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level. |
| 3642 | It generates more than 1100 warnings on socklen_t related statements. |
| 3643 | |
| 3644 | Until the issue is somehow fixed we will just use the +w2 warning level. |
| 3645 | |
| 3646 | - Add debug tracing for COMPILER_WORKS_IFELSE |
| 3647 | |
| 3648 | - configure will also warn on 'strict compiler warning' rejected options |
| 3649 | |
| 3650 | - convert rejected compiler options messages into a warnings |
| 3651 | |
| 3652 | - remove extra whitespace from string in SGI C check |
| 3653 | |
| 3654 | - oops |
| 3655 | |
| 3656 | - Initial attempt to detect SGI C compiler |
| 3657 | |
| 3658 | - HP C adjustments: |
| 3659 | |
| 3660 | Disallow run-time dereferencing of null pointers. |
| 3661 | |
| 3662 | Disable some remarks: |
| 3663 | |
| 3664 | #4227: padding struct with n bytes to align member. |
| 3665 | |
| 3666 | #4255: padding size of struct with n bytes to alignment boundary. |
| 3667 | |
| 3668 | - improve presentation of accepted/rejected debug/optimizer options |
| 3669 | |
| 3670 | - refactoring of COMPILER_BASIC_OPTS |
| 3671 | |
| 3672 | - Initial attempt to detect SUN C compiler |
| 3673 | |
| 3674 | - Initial attempt to detect HP C compiler |
| 3675 | |
| 3676 | - fix compiler warning: 'dot_4' may be used uninitialized in this function |
| 3677 | |
| 3678 | - adjust ICC_windows settings |
| 3679 | |
| 3680 | - fix VAR_STRIP |
| 3681 | |
| 3682 | - Sync up with reality |
| 3683 | |
| 3684 | - Initial attempt to support configure's --(dis|en)able-optimize |
| 3685 | option to specify dis(activation) of compiler optimizations. |
| 3686 | |
| 3687 | If option is specified, it will be honored independant of the |
| 3688 | --(dis|en)able-debug option. |
| 3689 | |
| 3690 | - fix comment |
| 3691 | |
| 3692 | - Initial attempt to support configure's --(dis|en)able-warnings |
| 3693 | option to specify dis(activation) of picky compiler warnings. |
| 3694 | |
| 3695 | If option is specified, it will be honored independant of the |
| 3696 | --(dis|en)able-debug option. |
| 3697 | |
| 3698 | If option is not specified, it will follow --(dis|en)able-debug |
| 3699 | setting, whose default is disabled if not specified. |
| 3700 | |
| 3701 | - fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules |
| 3702 | |
| 3703 | - now compiler warnings are activated for all gcc builds, not only debug ones. |
| 3704 | |
| 3705 | - Use CFLAGS for icc linker options instead of LDFLAGS, |
| 3706 | otherwise gethostbyname() is not detected. |
| 3707 | |
| 3708 | - use ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number |
| 3709 | |
| 3710 | - Temporary icc adjustment: |
| 3711 | |
| 3712 | Disable floating point optimizations |
| 3713 | |
| 3714 | - HAVE_INET_PTON will only be defined when an IPv6 capable working |
| 3715 | inet_pton function is available. |
| 3716 | |
| 3717 | - HAVE_INET_NTOP will only be defined when an IPv6 capable working |
| 3718 | inet_ntop function is available. |
| 3719 | |
| 3720 | - ntoa() and inet_ntoa_r() no longer used |
| 3721 | |
| 3722 | - icc adjustments for icc 9.0 and prior versions: |
| 3723 | |
| 3724 | Disable remark #279: controlling expression is constant |
| 3725 | |
| 3726 | Remark triggered mostly on va_arg() and FD_ZERO() macros. |
| 3727 | |
| 3728 | - attempt to make work the gethostname function |
| 3729 | check for winsock build target configurations |
| 3730 | |
| 3731 | Gisle Vanem (21 Sep 2008) |
| 3732 | - Added HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP |
| 3733 | and HAVE_STRNCASECMP. |
| 3734 | |
| 3735 | Yang Tse (19 Sep 2008) |
| 3736 | - icc adjustments: |
| 3737 | |
| 3738 | Disable remark #981: operands are evaluated in unspecified order |
| 3739 | |
| 3740 | Function calls which are triggering this remark, today, do not depend |
| 3741 | on the order of evaluation of its arguments. |
| 3742 | |
| 3743 | Disable remark #1469: "cc" clobber ignored |
| 3744 | |
| 3745 | Remark triggered on htons() and ntohs() due to glibc header files. |
| 3746 | |
| 3747 | - icc adjustments |
| 3748 | |
| 3749 | - fix netdb.h prerequisite inclusion |
| 3750 | |
| 3751 | - improve detection of getservbyport_r() |
| 3752 | |
| 3753 | - On Linux Intel's icc uses gcc's header files, so |
| 3754 | we select ANSI C89 dialect plus GNU extensions. |
| 3755 | |
| 3756 | - improve detection of gethostname() |
| 3757 | |
| 3758 | - NetWare builds include "nameser.h" from the c-ares subdir |
| 3759 | |
| 3760 | - include <strings.h> |
| 3761 | |
| 3762 | - Sync up with reality |
| 3763 | |
| 3764 | - adjust inclusion of "nameser.h" |
| 3765 | |
| 3766 | - reorder some lines in file |
| 3767 | |
| 3768 | - code cleanup |
| 3769 | |
| 3770 | - NetWare seems to have writev() |
| 3771 | |
| 3772 | - rearrange to allow internal/private use of ares_writev to any system |
| 3773 | that lacks the writev function. |
| 3774 | |
| 3775 | - NetWare CLIB target has stricmp() and strnicmp() |
| 3776 | |
| 3777 | - include header file only when available |
| 3778 | |
| 3779 | - rearrange to allow internal/private use of ares_strcasecmp to any system that |
| 3780 | lacks the strcasecmp function. |
| 3781 | |
| 3782 | - improve detection of: |
| 3783 | strcasecmp() |
| 3784 | strcmpi() |
| 3785 | stricmp() |
| 3786 | strncasecmp() |
| 3787 | strncmpi() |
| 3788 | strnicmp() |
| 3789 | |
| 3790 | - *** empty log message *** |
| 3791 | |
| 3792 | Gisle Vanem (12 Sep 2008) |
| 3793 | - djgpp does have strdup(). |
| 3794 | |
| 3795 | Yang Tse (12 Sep 2008) |
| 3796 | - change CRLF into LF line endings |
| 3797 | |
| 3798 | - strdup() clone for systems/configurations which lack it |
| 3799 | |
| 3800 | - move inclusion of ares_private.h last |
| 3801 | |
| 3802 | - icc adjustments |
| 3803 | |
| 3804 | - icc adjustments |
| 3805 | |
| 3806 | - Select strict ANSI C89 conformance for icc |
| 3807 | |
| 3808 | - remove unnecessary typecasting of malloc() |
| 3809 | |
| 3810 | - remove unnecessary typecasting of realloc() |
| 3811 | |
| 3812 | Daniel Stenberg (29 Aug 2008) |
| 3813 | - we start over working towards 1.5.4 |
| 3814 | |
| 3815 | Version 1.5.3 (29 Aug 2008) |
| 3816 | |
| 3817 | Daniel Stenberg (29 Aug 2008) |
| 3818 | - Version 1.5.3 |
| 3819 | |
| 3820 | - added the three people from RELEASE-NOTES and sorted the list alphabetically |
| 3821 | |
| 3822 | Yang Tse (27 Aug 2008) |
| 3823 | - Don't abort configuration if recvfrom() is not available. |
| 3824 | |
| 3825 | - Functionality only possible if recvfrom() is available. |
| 3826 | |
| 3827 | - George Neill's fix acountry sample application compilation failure. |
| 3828 | |
| 3829 | - Brad House's validation that DNS response address matches the request address |
| 3830 | |
| 3831 | - fix the output name |
| 3832 | |
| 3833 | - Get rid of ENABLE_64BIT symbol definition and usage. |
| 3834 | |
| 3835 | Improve HAVE_LONGLONG symbol description. |
| 3836 | |
| 3837 | - Export 'ares_process_fd' too. |
| 3838 | |
| 3839 | Gisle Vanem (16 Aug 2008) |
| 3840 | - Ops, remove 'use_vc'. |
| 3841 | |
| 3842 | - Support Watt-32 under Win32. |
| 3843 | |
| 3844 | Yang Tse (10 Aug 2008) |
| 3845 | - Fix: Remove now this SIZEOF_CURL_OFF_T symbol definition. |
| 3846 | |
| 3847 | This should have been done with the initial 64-bit curl_off_t patch. |
| 3848 | |
| 3849 | - Improve CURL_CHECK_DEF |
| 3850 | |
| 3851 | - Fix IBM C and DEC/Compaq C compiler detection |
| 3852 | |
| 3853 | - Initial support of curlbuild.h and curlrules.h which allows |
| 3854 | to have a curl_off_t data type no longer gated to off_t. |
| 3855 | |
| 3856 | - The minimum autoconf version required for this file is 2.50 |
| 3857 | |
| 3858 | Avoid dot notation in aclocal serial file number, use a single number now. |
| 3859 | |
| 3860 | Daniel Stenberg (4 Aug 2008) |
| 3861 | - - Fix by Tofu Linden: |
| 3862 | |
| 3863 | The symptom: |
| 3864 | * Users (usually, but not always) on 2-Wire routers and the Comcast service |
| 3865 | and a wired connection to their router would find that the second and |
| 3866 | subsequent DNS lookups from fresh processes using c-ares to resolve the same |
| 3867 | address would cause the process to never see a reply (it keeps polling for |
| 3868 | around 1m15s before giving up). |
| 3869 | |
| 3870 | The repro: |
| 3871 | * On such a machine (and yeah, it took us a lot of QA to find the systems |
| 3872 | that reproduce such a specific problem!), do 'ahost www.secondlife.com', |
| 3873 | then do it again. The first process's lookup will work, subsequent lookups |
| 3874 | will time-out and fail. |
| 3875 | |
| 3876 | The cause: |
| 3877 | * init_id_key() was calling randomize_key() *before* it initialized |
| 3878 | key->state, meaning that the randomness generated by randomize_key() is |
| 3879 | immediately overwritten with deterministic values. (/dev/urandom was also |
| 3880 | being read incorrectly in the c-ares version we were using, but this was |
| 3881 | fixed in a later version.) |
| 3882 | * This makes the stream of generated query-IDs from any new c-ares process |
| 3883 | be an identical and predictable sequence of IDs. |
| 3884 | * This makes the 2-Wire's default built-in DNS server detect these queries |
| 3885 | as probable-duplicates and (erroneously) not respond at all. |
| 3886 | |
| 3887 | Yang Tse (4 Aug 2008) |
| 3888 | - Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use. |
| 3889 | Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But, |
| 3890 | autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four |
| 3891 | preprocessor symbols no matter if the system is AIX or not. To keep the |
| 3892 | traditional behaviour, as well as an uniform one, across autoconf versions |
| 3893 | AC_AIX is replaced with our own internal macro. |
| 3894 | |
| 3895 | - Adjust DEC/Compaq C compiler settings. |
| 3896 | |
| 3897 | - Another AC_TRY_LINK conversion to AC_LINK_IFELSE. |
| 3898 | Proper definition of HAVE_function if function is found deeper. |
| 3899 | |
| 3900 | - Sync up with reality |
| 3901 | |
| 3902 | - Rename reentrant.m4 to avoid filename clash. |
| 3903 | |
| 3904 | - Add file version serial number that might be used by 'aclocal' and others. |
| 3905 | |
| 3906 | Keep the '#' character as the first one on the line. |
| 3907 | |
| 3908 | - Update copyright year. |
| 3909 | |
| 3910 | - Sync comment with reality. |
| 3911 | |
| 3912 | - Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of |
| 3913 | including our local m4/reentrant.m4 file. This even takes care of including the |
| 3914 | file in the distribution tarball. |
| 3915 | |
| 3916 | - Add quoting for the AC_DEFINE arguments. |
| 3917 | |
| 3918 | - Also remove the whitespace. |
| 3919 | |
| 3920 | - Also remove the extra quoting. |
| 3921 | |
| 3922 | - Replace some '@%:@' quadigraphs by its actual representation '#'. |
| 3923 | |
| 3924 | This quadigraph used before a C preprocessor 'define' directive could |
| 3925 | be fooling M4, when processing this file, and make it think that the |
| 3926 | line contains a pure M4 'define' macro. |
| 3927 | |
| 3928 | - Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4 |
| 3929 | in top Makefile.am triggered a problem that prevented aclocal from running |
| 3930 | successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61 |
| 3931 | |
| 3932 | A tarball which reproduces mentioned problem is the one dated July-28-2008 |
| 3933 | http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz |
| 3934 | |
| 3935 | We actually don't need all the bells and whistles that the above mechanism |
| 3936 | provides. We only need to include our m4/reentrant.m4 file in acinclude.m4 |
| 3937 | so here we go with this simpler mechanism. |
| 3938 | |
| 3939 | - for debugging purposes show ACLOCAL_FLAGS |
| 3940 | |
| 3941 | - These lines were unintentionally removed in previous commit |
| 3942 | |
| 3943 | - Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf. |
| 3944 | |
| 3945 | - Assert that SED and GREP are set |
| 3946 | |
| 3947 | - Require autoconf 2.57 or newer |
| 3948 | |
| 3949 | - When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours. |
| 3950 | |
| 3951 | - move ACLOCAL_AMFLAGS after AUTOMAKE_OPTIONS |
| 3952 | |
| 3953 | - setup.h handles definition of _REENTRANT based on NEED_REENTRANT |
| 3954 | definition which might be defined in config.h or config-*.h files |
| 3955 | |
| 3956 | - Remove explicit inclusion of our m4 files first. It was interesting as a test, |
| 3957 | but it breaks aclocal execution on some systems, with the following error: |
| 3958 | |
| 3959 | Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256. |
| 3960 | |
| 3961 | - Another step towards detecting if _REENTRANT is already defined or actually |
| 3962 | needed, and being able to define it if appropriate for further configure tests |
| 3963 | as well as for the generated config file. |
| 3964 | |
| 3965 | - Explicitly include our m4 files first. This might minimize the impact |
| 3966 | that other package's underquoted m4 function definitions have on ours. |
| 3967 | |
| 3968 | - Add a 3 argument check for getprotobyname_r |