cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

Contents of /ares/CHANGES

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.169 - (show annotations) (download)
Thu Jan 28 22:03:48 2010 UTC (11 days, 14 hours ago) by bagder
Branch: MAIN
CVS Tags: curl-7_20_0, HEAD
Changes since 1.168: +5 -0 lines
- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
  check for broken connections like ares_process() did. Based on that, I
  merged the two functions into a single generic one with two front-ends.
1 Changelog for the c-ares project
2
3 * January 28, 2010 (Daniel Stenberg)
4 - Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
5 check for broken connections like ares_process() did. Based on that, I
6 merged the two functions into a single generic one with two front-ends.
7
8 * December 29, 2009 (Yang Tse)
9 - Laszlo Tamas Szabo adjusted Makefile.msvc compiler options so that where
10 run-time error checks enabling compiler option /GZ was used it is replaced
11 with equivalent /RTCsu for Visual Studio 2003 and newer versions. Option
12 /GX is replaced with equivalent /EHsc for all versions. Also fixed socket
13 data type for internal configure_socket function.
14
15 * December 21, 2009 (Yang Tse)
16 - Ingmar Runge noticed that Windows config-win32.h configuration file
17 did not include a definition for HAVE_CLOSESOCKET which resulted in
18 function close() being inappropriately used to close sockets.
19
20 Version 1.7.0 (Nov 30, 2009)
21
22 * November 26, 2009 (Yang Tse)
23 - Larry Lansing fixed ares_parse_srv_reply to properly parse replies
24 which might contain non-SRV answers, skipping over potential non-SRV
25 ones such as CNAMEs.
26
27 * November 23, 2009 (Yang Tse)
28 - Changed naming convention for c-ares libraries built with MSVC, details
29 and build instructions provided in README.msvc file.
30
31 * November 22, 2009 (Yang Tse)
32 - Jakub Hrozek fixed more function prototypes in man pages to sync them
33 with the ones declared in ares.h
34
35 - Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
36 ares_addr6ttl in order to prevent name space pollution, along with
37 necessary changes to code base and man pages.This change does not break
38 ABI, there is no need to recompile existing applications. But existing
39 applications using these structs with the old name will need source code
40 adjustments when recompiled using c-ares 1.7.0.
41
42 * November 21, 2009 (Yang Tse)
43 - Added manifest stuff to Makefile.msvc.
44
45 * November 20, 2009 (Yang Tse)
46 - Fixed several function prototypes in man pages that were out of sync
47 with the ones declared in ares.h. Added ares_free_data() along with
48 man page. Updated ares_parse_srv_reply() and ares_parse_txt_reply()
49 with changes from Jakub Hrozek making these now return linked lists
50 instead of arrays, and merging the ares_free_data() adjustments.
51
52 * November 10, 2009 (Yang Tse)
53 - Updated MSVC 6.0 project files to match settings from Makefile.msvc.
54
55 * November 9, 2009 (Yang Tse)
56 - Makefile.msvc is now the reference method to build c-ares and sample
57 programs with any MSVC compiler or MS Visual Studio version. If no
58 option or target are specified it builds dynamic and static c-ares
59 libraries in debug and release flavours and also builds all sample
60 programs using each of the different c-ares libraries.
61
62 * November 2, 2009 (Yang Tse)
63 - Renamed c-ares setup.h to ares_setup.h
64
65 * October 31, 2009 (Yang Tse)
66 - Symbol hiding configure options are named now --enable-symbol-hiding
67 and --disable-symbol-hiding in an attempt to make them less ambiguous.
68
69 * October 30, 2009 (Yang Tse)
70 - Many fixes for ares_parse_txt_reply()
71
72 * October 29, 2009 (Daniel Stenberg)
73 - Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
74
75 * October 29, 2009 (Yang Tse)
76 - Updated MSVC 6.0 workspace and project files that allows building
77 dynamic and static c-ares libraries in debug and release flavours.
78 Additionally each of the three sample programs is built against
79 each of the four possible c-ares libraries, generating all this
80 a total number of 12 executables and 4 libraries.
81
82 * October 28, 2009 (Yang Tse)
83 - Initial step towards the ability to reduce c-ares exported symbols
84 when built as a shared library based on the 'visibility' attribute
85 for GNUC and Intel compilers and based on __global for Sun compilers,
86 taking also in account __declspec function decoration for Win32 and
87 Symbian DLL's.
88
89 * October 27, 2009 (Yang Tse)
90 - Fixed Pelles C Win32 target compilation issues.
91
92 * October 23, 2009 (Yang Tse)
93 - John Engelhart noticed an unreleased problem relative to a duplicate
94 ARES_ECANCELLED error code value and missing error code description.
95
96 * October 7, 2009 (Yang Tse)
97 - Overhauled ares__get_hostent() Fixing out of bounds memory overwrite
98 triggered with malformed /etc/hosts file. Improving parsing of /etc/hosts
99 file. Validating requested address family. Ensuring that failures always
100 return a NULL pointer. Adjusting header inclusions.
101
102 * October 6, 2009 (Yang Tse)
103 - Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak.
104
105 * September 29, 2009 (Yang Tse)
106 - Make configure script also check if _REENTRANT definition is required to
107 make errno available as a preprocessor macro.
108
109 * September 7, 2009 (Yang Tse)
110 - Add T_SRV portability check to ares_parse_srv_reply.c
111
112 * 4 Sep 2009 (Daniel Stenberg)
113 - Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
114
115 * 3 Aug 2009 (Daniel Stenberg)
116 - Joshua Kwan fixed the init routine to fill in the defaults for stuff that
117 fails to get inited by other means. This fixes a case of when the c-ares
118 init fails when internet access is fone.
119
120 - Timo Teras changed the reason code used in the resolve callback done when
121 ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
122 better allow the callback to know what's happening.
123
124 * 14 Jul 2009 (Guenter Knauf)
125 - renamed generated config.h to ares_config.h to avoid any future clashes
126 with config.h from other projects.
127
128 * June 20 2009 (Yang Tse)
129 - Refactor how libraries are checked for connect() function in configure
130 script and check for connect() as it is done for other functions.
131
132 * June 19 2009 (Yang Tse)
133 - Make sclose() function-like macro definition used to close a socket,
134 now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
135 config file preprocessor definitions
136
137 * June 18 2009 (Yang Tse)
138 - Add CloseSocket camel case function check for configure script.
139
140 * June 17 2009 (Yang Tse)
141 - Check for socket() and closesocket() as it is done for other functions
142 in configure script.
143
144 * June 11 2009 (Yang Tse)
145 - Modified buildconf so that when automake runs it copies missing files
146 instead of symlinking them.
147
148 * June 8 2009 (Yang Tse)
149 - Removed buildconf.bat from release and daily snapshot archives. This
150 file is only for CVS tree checkout builds.
151
152 * May 26 2009 (Yang Tse)
153 - Added --enable-curldebug configure option to enable and disable building
154 with the low-level curl debug memory tracking 'feature' to allow decoupled
155 setting from --enable-debug, allowing again to build c-ares independently
156 out of the CVS tree.
157
158 For the c-ares library option --enable-debug enables debug build features
159 which are _not_ related with memory tracking. For the c-ares library when
160 --enable-debug is given it does not enable the memory tracking feature. If
161 you wish to enable the curl debug memory tracking you must use configure
162 option --enable-curldebug explicitily to do so.
163
164 Internally, definition of preprocessor symbol DEBUGBUILD restricts code
165 which is only compiled for debug enabled builds. And symbol CURLDEBUG is
166 used to differentiate code which is _only_ used for memory tracking.
167
168 Make ares_init(), ares_dup() and ares_init_options() fail returning
169 ARES_ENOTINITIALIZED if library initialization has not been performed
170 calling ares_library_init().
171
172 * May 20 2009 (Yang Tse)
173 - Added ares_library_init() and ares_library_cleanup() man pages.
174
175 * May 19 2009 (Yang Tse)
176 - Introduced ares_library_init() and ares_library_cleanup() functions.
177
178 This is an API and ABI break for Win32/64 systems. Non-Win32/64 build targets
179 using c-ares 1.7.0 can still survive without calling these functions. Read all
180 the details on ares_library_init(3) and ares_library_cleanup(3) man pages that
181 are included.
182
183 curl/libcurl 7.19.5 is fully compatible with c-ares 1.7.0 on all systems.
184
185 In order to use c-ares 1.7.0 with curl/libcurl on Win32/64 systems it is
186 required that curl/libcurl is 7.19.5 or newer. In other words, it is not
187 possible on Win32/64 to use c-ares 1.7.0 with a curl/libcurl version less
188 than 7.19.5
189
190 * May 11 2009 (Daniel Stenberg)
191 - Gregor Jasny made c-ares link with libtool 's -export-symbols-regex option to
192 only expose functions starting with ares_.
193
194 * May 7 2009 (Yang Tse)
195 - Fix an m4 overquoting triggering a spurious 'AS_TR_CPP' symbol definition
196 attempt in generated config.h
197
198 * May 2 2009 (Yang Tse)
199 - Use a build-time configured ares_socklen_t data type instead of socklen_t.
200
201 * April 21 2009 (Yang Tse)
202 - Moved potential inclusion of system's malloc.h and memory.h header files to
203 setup_once.h. Inclusion of each header file is based on the definition of
204 NEED_MALLOC_H and NEED_MEMORY_H respectively.
205
206 * March 11 2009 (Yang Tse)
207 - Japheth Cleaver fixed acountry.c replacing u_long with unsigned long.
208
209 * February 20 2009 (Yang Tse)
210 - Do not halt compilation when using VS2008 to build a Windows 2000 target.
211
212 * February 3 2009 (Phil Blundell)
213 - If the server returns garbage or nothing at all in response to an AAAA query,
214 go on and ask for A records anyway.
215
216 * January 31 2009 (Daniel Stenberg)
217 - ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolving
218 either AF_INET6 or AF_INET. It works by accepting any of the looksups in the
219 hosts file, and it resolves the AAAA field with a fallback to A.
220
221 * January 14 2009 (Daniel Stenberg)
222 - ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it
223 now declares the private struct ares_in6_addr for all systems instead of
224 relying on one possibly not present in the system.
225
226 * January 13 2009 (Phil Blundell)
227 - ares__send_query() now varies the retry timeout pseudo-randomly to avoid
228 packet storms when several queries were started at the same time.
229
230 * January 11 2009 (Daniel Stenberg)
231 - Phil Blundell added the internal function ares__expand_name_for_response()
232 that is now used by the ares_parse_*_reply() functions instead of the
233 ares_expand_name() simply to easier return ARES_EBADRESP for the cases where
234 the name expansion fails as in responses that really isn't expected.
235
236 Version 1.6.0 (Dec 9, 2008)
237
238 * December 9 2008 (Gisle Vanem)
239
240 Fixes for Win32 targets using the Watt-32 tcp/ip stack.
241
242 * Dec 4 2008 (Daniel Stenberg)
243
244 Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
245 and I edited it to also get duped by ares_dup().
246
247 * Dec 3 2008 (Daniel Stenberg)
248
249 API changes:
250
251 I made sure the public ares_config struct looks like before and yet it
252 supports the ROTATE option thanks to c-ares now storing the "optmask"
253 internally. Thus we should be ABI compatible with the past release(s)
254 now. My efforts mentioned below should not break backwards ABI compliance.
255
256 Here's how I suggest we proceed with the API:
257
258 ares_init() will be primary "channel creator" function.
259
260 ares_init_options() will continue to work exactly like now and before. For
261 starters, it will be the (only) way to set the existing options.
262
263 ares_save_options() will continue to work like today, but will ONLY save
264 options that you can set today (including ARES_OPT_ROTATE actually) but new
265 options that we add may not be saved with this.
266
267 Instead we introduce:
268
269 ares_dup() that instead can make a new channel and clone the config used
270 from an existing channel. It will then clone all config options, including
271 future new things we add.
272
273 ares_set_*() style functions that set (new) config options. As a start we
274 simply add these for new functionality, but over time we can also introduce
275 them for existing "struct ares_options" so that we can eventually deprecate
276 the two ares_*_options() functions.
277
278 ares_get_*() style functions for extracting info from a channel handle that
279 should be used instead of ares_save_options().
280
281 * Nov 26 2008 (Yang Tse)
282 - Brad Spencer provided changes to allow buildconf to work on OS X.
283
284 - Gerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a
285 buffer to shrink instead of expand if a reply contained 8 or more records.
286
287 * Nov 25 2008 (Yang Tse)
288 - In preparation for the upcomming IPv6 nameservers patch, the internal
289 ares_addr union is now changed into an internal struct which also holds
290 the address family.
291
292 * Nov 19 2008 (Daniel Stenberg)
293 - Brad Spencer brought the new function ares_gethostbyname_file() which simply
294 resolves a host name from the given file, using the regular hosts syntax.
295
296 * Nov 1 2008 (Daniel Stenberg)
297 - Carlo Contavalli added support for the glibc "rotate" option, as documented
298 in man resolv.conf:
299
300 causes round robin selection of nameservers from among those listed. This
301 has the effect of spreading the query load among all listed servers, rather
302 than having all clients try the first listed server first every time.
303
304 You can enable it with ARES_OPT_ROTATE
305
306 * Oct 21 2008 (Yang Tse)
307 Charles Hardin added handling of EINPROGRESS for UDP connects.
308
309 * Oct 18 2008 (Daniel Stenberg)
310 Charles Hardin made adig support a regular numerical dotted IP address for the
311 -s option as well.
312
313 * Oct 7 2008 (Yang Tse)
314 - Added --enable-optimize configure option to enable and disable compiler
315 optimizations to allow decoupled setting from --enable-debug.
316
317 * Oct 2 2008 (Yang Tse)
318 - Added --enable-warnings configure option to enable and disable strict
319 compiler warnings to allow decoupled setting from --enable-debug.
320
321 * Sep 17 2008 (Yang Tse)
322 - Code reorganization to allow internal/private use of "nameser.h" to any
323 system that lacks arpa/nameser.h or arpa/nameser_compat.h header files.
324
325 * Sep 16 2008 (Yang Tse)
326 - Code reorganization to allow internal/private use of ares_writev to any
327 system that lacks the writev function.
328
329 * Sep 15 2008 (Yang Tse)
330 - Code reorganization to allow internal/private use of ares_strcasecmp to any
331 system that lacks the strcasecmp function.
332
333 - Improve configure detection of some string functions.
334
335 * Sep 11 2008 (Yang Tse)
336 - Code reorganization to allow internal/private use of ares_strdup to any
337 system that lacks the strdup function.
338
339 Version 1.5.3 (Aug 29, 2008)
340
341 * Aug 25 2008 (Yang Tse)
342 - Improvement by Brad House:
343
344 This patch addresses an issue in which a response could be sent back to the
345 source port of a client from a different address than the request was made to.
346 This is one form of a DNS cache poisoning attack.
347
348 The patch simply uses recvfrom() rather than recv() and validates that the
349 address returned from recvfrom() matches the address of the server we have
350 connected to. Only necessary on UDP sockets as they are connection-less, TCP
351 is unaffected.
352
353 - Fix by George Neill:
354 Fixed compilation of acountry sample application failure on some systems.
355
356 * Aug 4 2008 (Daniel Stenberg)
357 - Fix by Tofu Linden:
358
359 The symptom:
360 * Users (usually, but not always) on 2-Wire routers and the Comcast service
361 and a wired connection to their router would find that the second and
362 subsequent DNS lookups from fresh processes using c-ares to resolve the same
363 address would cause the process to never see a reply (it keeps polling for
364 around 1m15s before giving up).
365
366 The repro:
367 * On such a machine (and yeah, it took us a lot of QA to find the systems
368 that reproduce such a specific problem!), do 'ahost www.secondlife.com',
369 then do it again. The first process's lookup will work, subsequent lookups
370 will time-out and fail.
371
372 The cause:
373 * init_id_key() was calling randomize_key() *before* it initialized
374 key->state, meaning that the randomness generated by randomize_key() is
375 immediately overwritten with deterministic values. (/dev/urandom was also
376 being read incorrectly in the c-ares version we were using, but this was
377 fixed in a later version.)
378 * This makes the stream of generated query-IDs from any new c-ares process
379 be an identical and predictable sequence of IDs.
380 * This makes the 2-Wire's default built-in DNS server detect these queries
381 as probable-duplicates and (erroneously) not respond at all.
382
383
384 * Aug 4 2008 (Yang Tse)
385 - Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
386 Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. 2.62
387 version of AC_AIX defines _ALL_SOURCE and other four preprocessor symbols
388 no matter if the system is AIX or not. To keep the traditional behaviour,
389 and an uniform one across autoconf versions AC_AIX is replaced with our
390 own internal macro CARES_CHECK_AIX_ALL_SOURCE.
391
392 * Aug 1 2008 (Yang Tse)
393 - Configure process now checks if the preprocessor _REENTRANT symbol is already
394 defined. If it isn't currently defined a set of checks are performed to test
395 if its definition is required to make visible to the compiler a set of *_r
396 functions. Finally, if _REENTRANT is already defined or needed it takes care
397 of making adjustments necessary to ensure that it is defined equally for the
398 configure process tests and generated config file.
399
400 * Jul 20 2008 (Yang Tse)
401 - When recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
402 now cause the definition, as appropriate, of RECVFROM_TYPE_ARG2_IS_VOID,
403 RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID.
404
405 * Jul 17 2008 (Yang Tse)
406 - RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
407 to the data type pointed by its respective argument and not the pointer type.
408
409 * Jul 16 2008 (Yang Tse)
410 - Improved configure detection of number of arguments for getservbyport_r.
411 Detection is now based on compilation checks instead of linker ones.
412
413 - Configure process now checks availability of recvfrom() socket function and
414 finds out its return type and the types of its arguments. Added definitions
415 for non-configure systems config files, and introduced macro sreadfrom which
416 will be used on udp sockets as a recvfrom() wrapper in the future.
417
418 * Jul 15 2008 (Yang Tse)
419 - Introduce definition of _REENTRANT symbol in setup.h to improve library
420 usability. Previously the configure process only used the AC_SYS_LARGEFILE
421 macro for debug builds, now it is also used for non-debug ones enabling the
422 use of configure options --enable-largefile and --disable-largefile which
423 might be needed for library compatibility. Remove checking the size of
424 curl_off_t, it is no longer needed.
425
426 * Jul 3 2008 (Daniel Stenberg)
427 - Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
428 the target host has only A records, it automatically falls back to an
429 AF_INET lookup and gives you the A results. However, if the target host has
430 a CNAME record, this behaviour is defeated since the original query does
431 return some data even though ares_parse_aaa_reply() doesn't consider it
432 relevant. Here's a small patch to make it behave the same with and without
433 the CNAME.
434
435 * Jul 2 2008 (Yang Tse)
436 - Fallback to gettimeofday when monotonic clock is unavailable at run-time.
437
438 * Jun 30 2008 (Daniel Stenberg)
439
440 - As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
441 not posix or anything and thus c-ares failed to build on hurd (and possibly
442 elsewhere). The define was also somewhat artificially used in the windows
443 port. Now, I instead rewrote the use of gethostbyname to enlarge the host
444 name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
445 define. I thus also removed the defien from the namser.h file where it was
446 once added for the windows build.
447
448 I also fixed init_by_defaults() function to not leak memory in case if
449 error.
450
451 * Jun 9 2008 (Yang Tse)
452
453 - Make libcares.pc generated file for pkg-config include information relative
454 to the libraries needed for the static linking of c-ares.
455
456 * May 30 2008 (Yang Tse)
457
458 - Brad House fixed a missing header file inclusion in adig sample program.
459
460 Version 1.5.2 (May 29, 2008)
461
462 * May 13 2008 (Daniel Stenberg)
463
464 - Introducing millisecond resolution support for the timeout option. See
465 ares_init_options()'s ARES_OPT_TIMEOUTMS.
466
467 * May 9 2008 (Yang Tse)
468
469 - Use monotonic time source if available, for private function ares__tvnow()
470
471 * May 7 2008 (Daniel Stenberg)
472
473 - Sebastian made c-ares able to return all PTR-records when doing reverse
474 lookups. It is not common practice to have multiple PTR-Records for a single
475 IP, but its perfectly legal and some sites have those.
476
477 - Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
478 autoconf 2.57 usage (which is the version you have specified as the minimum
479 version). It's a minor change but it does clean up some warnings with newer
480 autoconf (specifically 2.62).
481
482 * May 5 2008 (Yang Tse)
483
484 - Improved parsing of resolver configuration files.
485
486 * April 4 2008 (Daniel Stenberg)
487
488 - Eino Tuominen improved the code when a file is used to seed the randomizer.
489
490 - Alexey Simak made adig support NAPTR records
491
492 - Alexey Simak fixed the VC dsp file by adding the missing source file
493 ares_expand_string.c
494
495 * December 11 2007 (Gisle Vanem)
496
497 - Added another sample application; acountry.c which converts an
498 IPv4-address(es) and/or host-name(s) to country-name and country-code.
499 This uses the service of the DNSBL at countries.nerd.dk.
500
501 * December 3 2007 (Daniel Stenberg)
502
503 - Brad Spencer fixed the configure script to assume that there's no
504 /dev/urandom when built cross-compiled as then the script cannot check for
505 it.
506
507 - Erik Kline cleaned up ares_gethostbyaddr.c:next_lookup() somewhat
508
509 Version 1.5.1 (Nov 21, 2007)
510
511 * November 21 2007 (Daniel Stenberg)
512
513 - Robin Cornelius pointed out that ares_llist.h was missing in the release
514 archive for 1.5.0
515
516 Version 1.5.0 (Nov 21, 2007)
517
518 * October 2 2007 (Daniel Stenberg)
519
520 - ares_strerror() segfaulted if the input error number was out of the currently
521 supported range.
522
523 - Yang Tse: Avoid a segfault when generating a DNS "Transaction ID" in
524 internal function init_id_key() under low memory conditions.
525
526 * September 28 2007 (Daniel Stenberg)
527
528 - Bumped version to 1.5.0 for next release and soname bumped to 2 due to ABI
529 and API changes in the progress callback (and possibly more coming up from
530 Steinar)
531
532 * September 28 2007 (Steinar H. Gunderson)
533
534 - Don't skip a server if it's the only one. (Bugfix from the Google tree.)
535
536 - Made the query callbacks receive the number of timeouts that happened during
537 the execution of a query, and updated documentation accordingly. (Patch from
538 the Google tree.)
539
540 - Support a few more socket options: ARES_OPT_SOCK_SNDBUF and
541 ARES_OPT_SOCK_RCVBUF
542
543 - Always register for TCP events even if there are no outstanding queries, as
544 the other side could always close the connection, which is a valid event
545 which should be responded to.
546
547 * September 22 2007 (Daniel Stenberg)
548
549 - Steinar H. Gunderson fixed: Correctly clear sockets from the fd_set on in
550 several functions (write_tcp_data, read_tcp_data, read_udp_packets) so that
551 if it fails and the socket is closed the following code doesn't try to use
552 the file descriptor.
553
554 - Steinar H. Gunderson modified c-ares to now also do to DNS retries even when
555 TCP is used since there are several edge cases where it still makes sense.
556
557 - Brad House provided a fix for ares_save_options():
558
559 Apparently I overlooked something with the ares_save_options() where it
560 would try to do a malloc(0) when no options of that type needed to be saved.
561 On most platforms, this was fine because malloc(0) doesn't actually return
562 NULL, but on AIX it does, so ares_save_options would return ARES_ENOMEM.
563
564 * July 14 2007 (Daniel Stenberg)
565
566 - Vlad Dinulescu fixed two outstanding valgrind reports:
567
568 1. In ares_query.c , in find_query_by_id we compare q->qid (which is a short
569 int variable) with qid, which is declared as an int variable. Moreover,
570 DNS_HEADER_SET_QID is used to set the value of qid, but DNS_HEADER_SET_QID
571 sets only the first two bytes of qid. I think that qid should be declared as
572 "unsigned short" in this function.
573
574 2. The same problem occurs in ares_process.c, process_answer() . query->qid
575 (an unsigned short integer variable) is compared with id, which is an
576 integer variable. Moreover, id is initialized from DNS_HEADER_QID which sets
577 only the first two bytes of id. I think that the id variable should be
578 declared as "unsigned short" in this function.
579
580 Even after declaring these variables as "unsigned short", the valgrind
581 errors are still there. Which brings us to the third problem.
582
583 3. The third problem is that Valgrind assumes that query->qid is not
584 initialised correctly. And it does that because query->qid is set from
585 DNS_HEADER_QID(qbuf); Valgrind says that qbuf has unitialised bytes. And
586 qbuf has uninitialised bytes because of channel->next_id . And next_id is
587 set by ares_init.c:ares__generate_new_id() . I found that putting short r=0
588 in this function (instead of short r) makes all Valgrind warnings go away.
589 I have studied ares__rc4() too, and this is the offending line:
590
591 buffer_ptr[counter] ^= state[xorIndex]; (ares_query.c:62)
592
593 This is what triggers Valgrind.. buffer_ptr is unitialised in this function,
594 and by applying ^= on it, it remains unitialised.
595
596 Version 1.4.0 (June 8, 2007)
597
598 * June 4 2007 (Daniel Stenberg)
599
600 - James Bursa reported a major memory problem when resolving multi-IP names
601 and I found and fixed the problem. It was added by Ashish Sharma's patch
602 two days ago.
603
604 When I then tried to verify multiple entries in /etc/hosts after my fix, I
605 got another segfault and decided this code was not ripe for inclusion and I
606 reverted the patch.
607
608 * June 2 2007
609
610 - Brad Spencer found and fixed three flaws in the code, found with the new
611 gcc 4.2.0 warning: -Waddress
612
613 - Brad House fixed VS2005 compiler warnings due to time_t being 64bit.
614 He also made recent Microsoft compilers use _strdup() instead of strdup().
615
616 - Brad House's man pages for ares_save_options() and ares_destroy_options()
617 were added.
618
619 - Ashish Sharma provided a patch for supporting multiple entries in the
620 /etc/hosts file. Patch edited for coding style and functionality by me
621 (Daniel).
622
623 * May 30 2007
624
625 - Shmulik Regev brought cryptographically secure transaction IDs:
626
627 The c-ares library implementation uses a DNS "Transaction ID" field that is
628 seeded with a pseudo random number (based on gettimeofday) which is
629 incremented (++) between consecutive calls and is therefore rather
630 predictable. In general, predictability of DNS Transaction ID is a well
631 known security problem (e.g.
632 http://bak.spc.org/dms/archive/dns_id_attack.txt) and makes a c-ares based
633 implementation vulnerable to DNS poisoning. Credit goes to Amit Klein
634 (Trusteer) for identifying this problem.
635
636 The patch I wrote changes the implementation to use a more secure way of
637 generating unique IDs. It starts by obtaining a key with reasonable entropy
638 which is used with an RC4 stream to generate the cryptographically secure
639 transaction IDs.
640
641 Note that the key generation code (in ares_init:randomize_key) has two
642 versions, the Windows specific one uses a cryptographically safe function
643 provided (but undocumented :) by the operating system (described at
644 http://blogs.msdn.com/michael_howard/archive/2005/01/14/353379.aspx). The
645 default implementation is a bit naive and uses the standard 'rand'
646 function. Surely a better way to generate random keys exists for other
647 platforms.
648
649 The patch can be tested by using the adig utility and using the '-s' option.
650
651 - Brad House added ares_save_options() and ares_destroy_options() that can be
652 used to keep options for later re-usal when ares_init_options() is used.
653
654 Problem: Calling ares_init() for each lookup can be unnecessarily resource
655 intensive. On windows, it must LoadLibrary() or search the registry
656 on each call to ares_init(). On unix, it must read and parse
657 multiple files to obtain the necessary configuration information. In
658 a single-threaded environment, it would make sense to only
659 ares_init() once, but in a heavily multi-threaded environment, it is
660 undesirable to ares_init() and ares_destroy() for each thread created
661 and track that.
662
663 Solution: Create ares_save_options() and ares_destroy_options() functions to
664 retrieve and free options obtained from an initialized channel. The
665 options populated can be used to pass back into ares_init_options(),
666 it should populate all needed fields and not retrieve any information
667 from the system. Probably wise to destroy the cache every minute or
668 so to prevent the data from becoming stale.
669
670 - Daniel S added ares_process_fd() to allow applications to ask for processing
671 on specific sockets and thus avoiding select() and associated
672 functions/macros. This function will be used by upcoming libcurl releases
673 for this very reason. It also made me export the ares_socket_t type in the
674 public ares.h header file, since ares_process_fd() uses that type for two of
675 the arguments.
676
677 * May 25 2007
678
679 - Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows
680 that could cause it to return a bad return code.
681
682 * April 16 2007
683
684 - Yang Tse: Provide ares_getopt() command-line parser function as a source
685 code helper function, not belonging to the actual c-ares library.
686
687 * February 19 2007
688
689 - Vlad Dinulescu added ares_parse_ns_reply().
690
691 * February 13 2007
692
693 - Yang Tse: Fix failure to get the search sequence of /etc/hosts and
694 DNS from /etc/nsswitch.conf, /etc/host.conf or /etc/svc.conf when
695 /etc/resolv.conf did not exist or was unable to read it.
696
697 * November 22 2006
698
699 - Install ares_dns.h too
700
701 - Michael Wallner fixed this problem: When I set domains in the options
702 struct, and there are domain/search entries in /etc/resolv.conf, the domains
703 of the options struct will be overridden.
704
705 * November 6 2006
706
707 - Yang Tse removed a couple of potential zero size memory allocations.
708
709 - Andreas Rieke fixed the line endings in the areslib.dsp file that I (Daniel)
710 broke in the 1.3.2 release. We should switch to a system where that file is
711 auto-generated. We could rip some code for that from curl...
712
713 Version 1.3.2 (November 3, 2006)
714
715 * October 12 2006
716
717 - Prevent ares_getsock() to overflow if more than 16 sockets are used.
718
719 * September 11 2006
720
721 - Guilherme Balena Versiani: I noted a strange BUG in Win32 port
722 (ares_init.c/get_iphlpapi_dns_info() function): when I disable the network
723 by hand or disconnect the network cable in Windows 2000 or Windows XP, my
724 application gets 127.0.0.1 as the only name server. The problem comes from
725 'GetNetworkParams' function, that returns the empty string "" as the only
726 name server in that case. Moreover, the Windows implementation of
727 inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.
728
729 * August 29 2006
730
731 - Brad Spencer did
732
733 o made ares_version.h use extern "C" for c++ compilers
734 o fixed compiler warnings in ares_getnameinfo.c
735 o fixed a buffer position init for TCP reads
736
737 * August 3 2006
738
739 - Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
740 not always zero!
741
742 Version 1.3.1 (June 24, 2006)
743
744 * July 23, 2006
745
746 - Gisle Vanem added getopt() to the ahost program. Currently accepts
747 only [-t {a|aaaa}] to specify address family in ares_gethostbyname().
748
749 * June 19, 2006
750
751 - (wahern) Removed "big endian" DNS section and RR data integer parser
752 macros from ares_dns.h, which break c-ares on my Sparc64. Bit-wise
753 operations in C operate on logical values. And in any event the octets are
754 already in big-endian (aka network) byte order so they're being reversed
755 (thus the source of the breakage).
756
757 * June 18, 2006
758
759 - William Ahern handles EAGAIN/EWOULDBLOCK errors in most of the I/O calls
760 from area_process.c.
761
762 TODO: Handle one last EAGAIN for a UDP socket send(2) in
763 ares__send_query().
764
765 * May 10, 2006
766
767 - Bram Matthys brought my attention to a libtool peculiarity where detecting
768 things such as C++ compiler actually is a bad thing and since we don't need
769 that detection I added a work-around, much inspired by a previous patch by
770 Paolo Bonzini. This also shortens the configure script quite a lot.
771
772 * May 3, 2006
773
774 - Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
775 c-ares call a callback on socket state changes. A better way than the
776 ares_getsock() to get full control over the socket state.
777
778 * January 9, 2006
779
780 - Alexander Lazic improved the getservbyport_r() configure check.
781
782 * January 6, 2006
783
784 - Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
785 variable for easier controlling what it does and how it runs.
786
787 * January 5, 2006
788
789 - James Bursa fixed c-ares to find the hosts file on RISC OS, and made it
790 build with newer gcc versions that no longer defines "riscos".
791
792 * December 22
793
794 - Daniel Stenberg added ares_getsock() that extracts the set of sockets to
795 wait for action on. Similar to ares_fds() but not restricted to using
796 select() for the waiting.
797
798 * November 25
799
800 - Yang Tse fixed some send() / recv() compiler warnings
801
802 * September 18
803
804 - Added constants that will be used by ares_getaddrinfo
805
806 - Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it
807 is available to ensure it works properly in a threaded environment.
808
809 * September 10
810
811 - configure fix for detecting a member in the sockaddr_in6 struct which failed
812 on ipv6-enabled HP-UX 11.00
813
814 Version 1.3.0 (August 29, 2005)
815
816 * August 21
817
818 - Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
819 when getting the DNS server etc.
820
821 * June 19
822
823 - Added some checks for the addrinfo structure.
824
825 * June 2
826
827 - William Ahern:
828
829 Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
830 read event can come back from poll() on a valid SOCK_DGRAM socket but
831 recv(2) will still block. This patch doesn't ignore EAGAIN in
832 read_udp_packets(), though maybe it should. (This patch was edited by Daniel
833 Stenberg and a new configure test was added (imported from curl's configure)
834 to properly detect what non-blocking socket approach to use.)
835
836 I'm not quite sure how this was happening, but I've been seeing PTR queries
837 which seem to return empty responses. At least, they were empty when calling
838 ares_expand_name() on the record. Here's a patch which guarantees to
839 NUL-terminate the expanded name. The old behavior failed to NUL-terminate if
840 len was 0, and this was causing strlen() to run past the end of the buffer
841 after calling ares_expand_name() and getting ARES_SUCCESS as the return
842 value. If q is not greater than *s then it's equal and *s is always
843 allocated with at least one byte.
844
845 * May 16
846
847 - Added ares_getnameinfo which mimics the getnameinfo API (another feature
848 that could use testing).
849
850 * May 14
851
852 - Added an inet_ntop function from BIND for systems that do not have it.
853
854 * April 9
855
856 - Made sortlist support IPv6 (this can probably use some testing).
857
858 - Made sortlist support CIDR matching for IPv4.
859
860 * April 8
861
862 - Added preliminary IPv6 support to ares_gethostbyname. Currently, sortlist
863 does not work with IPv6. Also provided an implementation of bitncmp from
864 BIND for systems that do not supply this function. This will be used to add
865 IPv6 support to sortlist.
866
867 - Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family.
868 The function can lookup IPv6 addresses both from files (/etc/hosts) and
869 DNS lookups.
870
871 * April 7
872
873 - Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac
874 OS X.
875
876 * April 5
877
878 - Dominick Meglio: Provided implementations of inet_net_pton and inet_pton
879 from BIND for systems that do not include these functions.
880
881 * March 11, 2005
882
883 - Dominick Meglio added ares_parse_aaaa_reply.c and did various
884 adjustments. The first little steps towards IPv6 support!
885
886 * November 7
887
888 - Fixed the VC project and makefile to use ares_cancel and ares_version
889
890 * October 24
891
892 - The released ares_version.h from 1.2.1 says 1.2.0 due to a maketgz flaw.
893 This is now fixed.
894
895 Version 1.2.1 (October 20, 2004)
896
897 * September 29
898
899 - Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
900 when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
901 other OSes. He made c-ares check for and understand it if present.
902
903 - Now c-ares will use local host name lookup _before_ DNS resolving by default
904 if nothing else is told.
905
906 * September 26
907
908 - Henrik Stoerner: found out that c-ares does not look at the /etc/host.conf
909 file to determine the sequence in which to search /etc/hosts and DNS. So on
910 systems where this order is defined by /etc/host.conf instead of a "lookup"
911 entry in /etc/resolv.conf, c-ares will always default to looking in DNS
912 first, and /etc/hosts second.
913
914 c-ares now looks at
915
916 1) resolv.conf (for the "lookup" line);
917 2) nsswitch.fon (for the "hosts:" line);
918 3) host.conf (for the "order" line).
919
920 First match wins.
921
922 - Dominick Meglio patched: C-ares on Windows assumed that the HOSTS file is
923 located in a static location. It assumed
924 C:\Windows\System32\Drivers\Etc. This is a poor assumption to make. In fact,
925 the location of the HOSTS file can be changed via a registry setting.
926
927 There is a key called DatabasePath which specifies the path to the HOSTS
928 file:
929 http://www.microsoft.com/technet/itsolutions/network/deploy/depovg/tcpip2k.mspx
930
931 The patch will make c-ares correctly consult the registry for the location
932 of this file.
933
934 * August 29
935
936 - Gisle Vanem fixed the MSVC build files.
937
938 * August 20
939
940 - Gisle Vanem made c-ares build and work with his Watt-32 TCP/IP stack.
941
942 * August 13
943
944 - Harshal Pradhan made a minor syntax change in ares_init.c to make it build
945 fine with MSVC 7.1
946
947 * July 24
948
949 - Made the lib get built static only if --enable-debug is used.
950
951 - Gisle Vanem fixed:
952
953 Basically in loops like handle_errors(), 'query->next' was assigned a local
954 variable and then query was referenced after the memory was freed by
955 next_server(). I've changed that so next_server() and end_query() returns
956 the next query. So callers should use this ret-value.
957
958 The next problem was that 'server->tcp_buffer_pos' had a random value at
959 entry to 1st recv() (luckily causing Winsock to return ENOBUFS).
960
961 I've also added a ares_writev() for Windows to streamline the code a bit
962 more.
963
964 * July 20
965 - Fixed a few variable return types for some system calls. Made configure
966 check for ssize_t to make it possible to use that when receiving the send()
967 error code. This is necessary to prevent compiler warnings on some systems.
968
969 - Made configure create config.h, and all source files now include setup.h that
970 might include the proper config.h (or a handicrafted alternative).
971
972 - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
973 use 'int' for that.
974
975 - automake-ified and libool-ified c-ares. Now it builds libcares as a shared
976 lib on most platforms if wanted. (This bloated the size of the release
977 archive with another 200K!)
978
979 - Makefile.am now uses Makefile.inc for the c sources, h headers and man
980 pages, to make it easier for other makefiles to use the exact same set of
981 files.
982
983 - Adjusted 'maketgz' to use the new automake magic when building distribution
984 archives.
985
986 - Anyone desires HTML and/or PDF versions of the man pages in the release
987 archives?
988
989 * July 3
990 - Günter Knauf made c-ares build and run on Novell Netware.
991
992 * July 1
993 - Gisle Vanem provided Makefile.dj to build with djgpp, added a few more djgpp
994 fixes and made ares not use 'errno' to provide further info on Windows.
995
996 * June 30
997 - Gisle Vanem made it build with djgpp and run fine with the Watt-32 stack.
998
999 * June 10
1000 - Gisle Vanem's init patch for Windows:
1001
1002 The init_by_resolv_conf() function fetches the DNS-server(s)
1003 from a series of registry branches.
1004
1005 This can be wrong in the case where DHCP has assigned nameservers, but the
1006 user has overridden these servers with other prefered settings. Then it's
1007 wrong to use the DHCPNAMESERVER setting in registry.
1008
1009 In the case of no global DHCP-assigned or fixed servers, but DNS server(s)
1010 per adapter, one has to query the adapter branches. But how can c-ares know
1011 which adapter is valid for use? AFAICS it can't. There could be one adapter
1012 that is down (e.g. a VPN adapter).
1013
1014 So it's better to leave this to the IP Helper API (iphlapi) available in
1015 Win-98/2000 and later. My patch falls-back to the old way if not available.
1016
1017 * June 8
1018 - James Bursa fixed an init issue for RISC OS.
1019
1020 * May 11
1021 - Nico Stappenbelt reported that when processing domain and search lines in
1022 the resolv.conf file, the first entry encountered is processed and used as
1023 the search list. According to the manual pages for both Linux, Solaris and
1024 Tru64, the last entry of either a domain or a search field is used.
1025
1026 This is now adjusted in the code
1027
1028 Version 1.2.0 (April 13, 2004)
1029
1030 * April 2, 2004
1031 - Updated various man pages to look nicer when converted to HTML on the web
1032 site.
1033
1034 * April 1, 2004
1035 - Dirk Manske provided a new function that is now named ares_cancel(). It is
1036 used to cancel/cleanup a resolve/request made using ares functions on the
1037 given ares channel. It does not destroy/kill the ares channel itself.
1038
1039 - Dominick Meglio cleaned up the formatting in several man pages.
1040
1041 * March 30, 2004
1042 - Dominick Meglio's new ares_expand_string. A helper function when decoding
1043 incoming DNS packages.
1044
1045 - Daniel Stenberg modified the Makefile.in to use a for loop for the man page
1046 installation to improve overview and make it easier to add man pages.
1047
1048 Version 1.1.0 (March 11, 2004)
1049
1050 * March 9, 2004
1051 - Gisle Vanem improved build on Windows.
1052
1053 * February 25, 2004
1054 - Dan Fandrich found a flaw in the Feb 22 fix.
1055
1056 - Added better configure --enable-debug logic (taken from the curl configure
1057 script). Added acinclude.m4 to the tarball.
1058
1059 * February 23, 2004
1060 - Removed ares_free_errmem(), the function, the file and the man page. It was
1061 not used and it did nothing.
1062
1063 - Fixed a lot of code that wasn't "64bit clean" and thus caused a lot of
1064 compiler warnings on picky compilers.
1065
1066 * February 22, 2004
1067 - Dominick Meglio made ares init support multiple name servers in the
1068 NameServer key on Windows.
1069
1070 * February 16, 2004
1071 - Modified ares_private.h to include libcurl's memory debug header if
1072 CURLDEBUG is set. This makes all the ares-functions supervised properly by
1073 the curl test suite. This also forced me to add inclusion of the
1074 ares_private.h header in a few more files that are using some kind of
1075 memory-related resources.
1076
1077 - Made the makefile only build ahost and adig if 'make demos' is used.
1078
1079 * February 10, 2004
1080 - Dirk Manske made ares_version.h installed with 'make install'
1081
1082 * February 4, 2004
1083 - ares_free_errmem() is subject for removal, it is simply present for future
1084 purposes, and since we removed the extra parameter in strerror() it won't
1085 be used by c-ares!
1086 - configure --enable-debug now enables picky compiler options if gcc is used
1087 - fixed several compiler warnings --enable-debug showed and Joerg Mueller-Tolk
1088 reported
1089
1090 Version 1.0.0 (February 3, 2004)
1091
1092 * February 3, 2004
1093 - now we produce the libcares.a library instead of the previous libares.a
1094 since we are no longer compatible
1095
1096 * February 2, 2004
1097
1098 - ares_strerror() has one argument less. This is the first official
1099 modification of the existing provided ares API.
1100
1101 * January 29, 2004
1102
1103 - Dirk Manske fixed how the socket is set non-blocking.
1104
1105 * January 4, 2004
1106
1107 - Dominick Meglio made the private gettimeofday() become ares_gettimeofday()
1108 instead in order to not pollute the name space and risk colliding with
1109 other libraries' versions of this function.
1110
1111 * October 24, 2003. Daniel Stenberg
1112
1113 Added ares_version().
1114
1115 Version 1.0-pre1 (8 October 2003)
1116
1117 - James Bursa made it run on RISC OS
1118
1119 - Dominick Meglio made it run fine on NT4
1120
1121 - Duncan Wilcox made it work fine on Mac OS X
1122
1123 - Daniel Stenberg adjusted the windows port
1124
1125 - liren at vivisimo.com made the initial windows port
1126
1127 * Imported the sources from ares 1.1.1

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET