Daniel Stenberg
d5c3a696fc
just to clarify that c-ares actually have some ipv6 support
2008-07-03 11:41:11 +00:00
Daniel Stenberg
5e74e48177
ares_gethostbyname() fallback from AAA to A records with CNAME present
2008-07-03 11:34:34 +00:00
Daniel Stenberg
93e7573628
- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
...
the target host has only A records, it automatically falls back to an
AF_INET lookup and gives you the A results. However, if the target host has
a CNAME record, this behaviour is defeated since the original query does
return some data even though ares_parse_aaa_reply() doesn't consider it
relevant. Here's a small patch to make it behave the same with and without
the CNAME.
2008-07-03 11:32:35 +00:00
Daniel Stenberg
705c749aa1
- As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
...
not posix or anything and thus c-ares failed to build on hurd (and possibly
elsewhere). The define was also somewhat artificially used in the windows
port. Now, I instead rewrote the use of gethostbyname to enlarge the host
name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
define. I thus also removed the defien from the namser.h file where it was
once added for the windows build.
I also fixed init_by_defaults() function to not leak memory in case if
error.
2008-06-30 12:48:25 +00:00
Daniel Stenberg
41f303a6bd
start working on 1.5.3
2008-05-29 20:39:18 +00:00
Daniel Stenberg
2d09f0bf7c
1.5.2
2008-05-29 20:10:40 +00:00
Daniel Stenberg
9fae0a48b1
list all local sources the (demo) tools need, add a few missing scripts to
...
the dist tarball and remove a two duplicate file names from EXTRA_DIST
(most of it pointed out by Yang Tse)
2008-05-23 21:52:56 +00:00
Daniel Stenberg
f0d0df9e9b
this is not used (anymore)
2008-05-23 21:46:29 +00:00
Daniel Stenberg
d7c4f9ad16
make sure the configure.ac file with the correct version number is shipped
...
in the tarball
2008-05-22 17:41:29 +00:00
Daniel Stenberg
46dbd9461a
- Introducing millisecond resolution support for the timeout option. See
...
ares_init_options()'s ARES_OPT_TIMEOUTMS.
2008-05-13 20:48:48 +00:00
Daniel Stenberg
fd5fdecf30
Removed AC_PROG_CC_STDC again. It enforces C99/gnu99 stdandard which is too
...
liberal for me. Also, autoconf 2.61 and earlier doesn't work with icc 10.1
for this macro. (2.62 confirmed to work though). See discusson on the mailing
list starting here:
http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2008-05/0001.shtml
2008-05-09 13:10:34 +00:00
Daniel Stenberg
d4d2f9dc22
include strings.h (if available) for the strcasecmp() proto
2008-05-08 22:14:17 +00:00
Daniel Stenberg
7829b79768
check for strings.h in configure and use it for the strcasecmp() proto
2008-05-08 22:11:38 +00:00
Daniel Stenberg
7a68a3342b
adjusted to work with the updated configure.ac
2008-05-07 21:27:35 +00:00
Daniel Stenberg
0645b841d0
- Sebastian made c-ares able to return all PTR-records when doing reverse
...
lookups. It is not common practice to have multiple PTR-Records for a single
IP, but its perfectly legal and some sites have those.
2008-05-07 21:20:45 +00:00
Daniel Stenberg
3994a0be7f
- Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
...
autoconf 2.57 usage (which is the version you have specified as the minimum
version). It's a minor change but it does clean up some warnings with newer
autoconf (specifically 2.62).
2008-05-07 21:16:06 +00:00
Daniel Stenberg
2b31a21d91
- Alexey Simak fixed the VC dsp file by adding the missing source file
...
ares_expand_string.c
2008-04-04 20:26:06 +00:00
Daniel Stenberg
b1c3cc0cfe
Alexey Simak made adig support NAPTR records
2008-04-04 20:24:41 +00:00
Daniel Stenberg
cb4a169f75
Eino Tuominen improved the code when a file is used to seed the randomizer
2008-04-04 20:05:23 +00:00
Daniel Stenberg
ad10862b8d
build acountry too
2007-12-11 19:34:31 +00:00
Daniel Stenberg
6d913add78
grrr, the previous commit was meant to properly make sure that we don't
...
link any executables when doing debug builds since they kind of assume
symbols provided by libcurl, but it also wrongly included acountry.c
2007-12-10 22:20:26 +00:00
Daniel Stenberg
03431e22b2
when building
2007-12-10 22:19:06 +00:00
Daniel Stenberg
80dbaf63be
build ahost and adig by default but don't install them
2007-12-10 21:42:04 +00:00
Daniel Stenberg
aae96300a4
Erik Kline cleaned up ares_gethostbyaddr.c:next_lookup() somewhat
2007-12-03 10:25:05 +00:00
Daniel Stenberg
dc0e93d89e
Brad Spencer fixed the configure script to assume that there's no
...
/dev/urandom when built cross-compiled as then the script cannot check for
it.
2007-12-03 10:22:29 +00:00
Daniel Stenberg
9c143e4444
the gethostbyname fix applied here as well
2007-11-28 15:18:27 +00:00
Daniel Stenberg
ba5bd647f9
fix next_lookup() to continue searching even if c-ares failed to load the
...
/etc/hosts file, pointed out by Erik Kline:
http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2007-11/0027.shtml
2007-11-28 10:46:40 +00:00
Daniel Stenberg
e13018f437
Remove the check for libdl since that isn't actually used and it causes
...
warnings. Pointed out by Robin Cornelius.
2007-11-27 22:41:53 +00:00
Daniel Stenberg
d0afd9586d
pkgconfig fix by Andreas Schuldei
2007-11-27 22:38:11 +00:00
Daniel Stenberg
2b76b1ad08
spellfix
2007-11-27 22:37:55 +00:00
Daniel Stenberg
2e31cc0be4
and we start on 1.5.2!
2007-11-21 10:16:44 +00:00
Daniel Stenberg
73b3390b83
change
2007-11-21 10:12:20 +00:00
Daniel Stenberg
f4be2e0cbb
oops
2007-11-21 10:12:06 +00:00
Daniel Stenberg
72a245668f
start working on 1.5.1 now
2007-11-21 09:31:56 +00:00
Daniel Stenberg
178f8b401f
this is what 1.5.0 is
2007-11-21 09:24:03 +00:00
Daniel Stenberg
346e989760
fill in missing copyrights
2007-11-19 15:47:01 +00:00
Daniel Stenberg
338d59bd0b
Fixed the problem where next_lookup would use 'status' uninitialized. Now
...
it gets passed the initial value as an argument.
2007-10-02 08:12:30 +00:00
Daniel Stenberg
e4eb2d0e1d
ares_strerror() segfaulted if the input error number was out of the currently
...
supported range.
2007-10-01 22:52:31 +00:00
Daniel Stenberg
250e7c4020
Prevent ares_strerror() from segfaulting if an invalid error code is passed
...
in as argument!
2007-10-01 22:51:38 +00:00
Daniel Stenberg
c577d2455e
today's modifications by Steinar and me
2007-09-28 20:28:20 +00:00
Daniel Stenberg
e64b103303
Bumped version to 1.5.0 for next release and soname bumped to 2 due to ABI
...
and API changes in the progress callback (and possibly more coming up from
Steinar)
2007-09-28 20:28:06 +00:00
Daniel Stenberg
c97d91e349
wrong, revert the previous "fix" and instead check that the fd_set pointer
...
is non-NULL before we FD_CLR
2007-09-27 12:04:56 +00:00
Daniel Stenberg
99f15b20e8
eek, fix the conditions to return on either problem instead of requiring
...
both to occur
2007-09-27 12:02:15 +00:00
Daniel Stenberg
b17bb1bb67
Steinar H. Gunderson fixed: Correctly clear sockets from the fd_set on in
...
several functions (write_tcp_data, read_tcp_data, read_udp_packets) so that
if it fails and the socket is closed the following code doesn't try to use
the file descriptor.
2007-09-22 21:23:10 +00:00
Daniel Stenberg
eee17fc854
Steinar H. Gunderson modified c-ares to now also do to DNS retries even when
...
TCP is used since there are several edge cases where it still makes sense.
2007-09-22 21:04:16 +00:00
Daniel Stenberg
2b43edc964
Brad House provided a fix for ares_save_options(): Apparently I overlooked
...
something with the ares_save_options() where it would try to do a malloc(0)
when no options of that type needed to be saved. On most platforms, this was
fine because malloc(0) doesn't actually return NULL, but on AIX it does, so
ares_save_options would return ARES_ENOMEM.
2007-09-22 20:45:50 +00:00
Daniel Stenberg
bebef9e940
added initial pkg-config file (attempt)
2007-07-26 21:56:47 +00:00
Daniel Stenberg
8af9486408
added another SEE ALSO
2007-07-14 23:01:49 +00:00
Daniel Stenberg
ad734e7b2d
Brad House's fix to hish a win32 compiler warning
2007-07-14 13:14:58 +00:00
Daniel Stenberg
278e8f3926
added Vlad's entire description of his valgrind fix
2007-07-14 13:11:36 +00:00
Daniel Stenberg
403b315a3b
Vlad Dinulescu fixed two outstanding valgrind reports
2007-07-14 13:08:50 +00:00
Daniel Stenberg
6295b70a7d
start working on 1.4.1
2007-06-08 09:01:33 +00:00
Daniel Stenberg
93bb7ef1ea
1.4.0 preps
2007-06-08 08:46:28 +00:00
Daniel Stenberg
5b992f99dc
the revert
2007-06-05 13:53:10 +00:00
Daniel Stenberg
9089e0c26c
Revered Ashish Sharma's multiple entries patch, as it caused memory madness
2007-06-04 21:33:02 +00:00
Daniel Stenberg
30294b0a67
minor edit since getting an ID seems pointless when failure happens
2007-06-04 21:26:30 +00:00
Daniel Stenberg
3ea04a6435
fix the bad bad bad mess this caused on name resolves returning more than
...
one name... Reported by James Bursa
2007-06-04 21:04:14 +00:00
Daniel Stenberg
fc5a460e0e
Brad Spencer found and fixed three flaws in the code, found with the new
...
gcc 4.2.0 warning: -Waddress
2007-06-02 20:09:23 +00:00
Daniel Stenberg
efa231bec5
Brad House fixed VS2005 compiler warnings due to time_t being 64bit.
...
He also made recent Microsoft compilers use _strdup() instead of strdup().
2007-06-02 19:48:29 +00:00
Daniel Stenberg
4e27354b82
Ashish Sharma provided a patch for supporting multiple entries in the
...
/etc/hosts file. Patch edited for coding style and functionality by me
(Daniel).
2007-06-02 19:42:25 +00:00
Daniel Stenberg
1ea96cf8dd
ares_destroy_options() and ares_save_options() man pages by Brad House
2007-06-02 19:32:30 +00:00
Daniel Stenberg
e5929805f5
make next version 1.4.0
2007-05-30 21:45:56 +00:00
Daniel Stenberg
49fdeb1de4
first take at detecting a random device and seeding the random key using data
...
from it in randomize_key()
2007-05-30 21:37:17 +00:00
Daniel Stenberg
7a77f24d26
Shmulik Regev brought cryptographically secure transaction IDs
2007-05-30 21:11:10 +00:00
Daniel Stenberg
f1440b2405
Brad House added ares_save_options() and ares_destroy_options() that can be
...
used to keep options for later re-usal when ares_init_options() is used.
2007-05-30 20:49:14 +00:00
Daniel Stenberg
8c35c65fc7
added ares_process_fd() to allow applications to ask for processing on
...
specific sockets and thus avoiding select() and associated functions/macros.
This function will be used by upcoming libcurl releases for this very
reason. It also made me export the ares_socket_t type in the public ares.h
header file, since ares_process_fd() uses that type for two of the arguments.
2007-05-30 12:58:47 +00:00
Daniel Stenberg
557aad7b02
Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows
...
that could cause it to return a bad return code.
2007-05-25 21:11:28 +00:00
Daniel Stenberg
c1bc4c19be
Vlad Dinulescu added ares_parse_ns_reply()
2007-02-19 14:06:11 +00:00
Daniel Stenberg
6a59182e81
Michael Wallner fixed this problem: When I set domains in the options
...
struct, and there are domain/search entries in /etc/resolv.conf, the domains
of the options struct will be overridden.
2006-11-22 22:54:41 +00:00
Daniel Stenberg
bc76d02bc3
Install ares_dns.h too
2006-11-22 22:51:01 +00:00
Daniel Stenberg
4a23aef23c
we did 1.3.2 and are now on the 1.3.3 track!
2006-11-11 22:23:48 +00:00
Daniel Stenberg
fadf4bfa08
mention the areslib.dsp fix
2006-11-05 23:11:22 +00:00
Daniel Stenberg
5617c371e7
add the recent crowd of contributors
2006-11-05 23:11:07 +00:00
Daniel Stenberg
776108dc80
Andreas Rieke fixed back the correct line endings!
2006-11-05 23:08:11 +00:00
Daniel Stenberg
a39a54189b
stand clear for release 1.3.2
2006-11-03 10:47:35 +00:00
Daniel Stenberg
7ea2bc0db7
Andreas Rieke added missing file and changed line endings
2006-11-03 10:41:33 +00:00
Daniel Stenberg
5d9bf10232
Tor's spell fixes
2006-10-18 12:59:02 +00:00
Daniel Stenberg
8df5b67ab0
Prevent ares_getsock() to overflow if more than 16 sockets are used.
2006-10-13 21:25:11 +00:00
Daniel Stenberg
04cb824483
avoid an overflow if an excessive amount of servers are used
2006-10-12 16:47:50 +00:00
Daniel Stenberg
d3439e3332
- Guilherme Balena Versiani: I noted a strange BUG in Win32 port
...
(ares_init.c/get_iphlpapi_dns_info() function): when I disable the network
by hand or disconnect the network cable in Windows 2000 or Windows XP, my
application gets 127.0.0.1 as the only name server. The problem comes from
'GetNetworkParams' function, that returns the empty string "" as the only
name server in that case. Moreover, the Windows implementation of
inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.
2006-09-11 20:25:13 +00:00
Daniel Stenberg
1bec3073dc
Brad Spencer did
...
o made ares_version.h use extern "C" for c++ compilers
o fixed compiler warnings in ares_getnameinfo.c
o fixed a buffer position init for TCP reads
2006-08-29 15:17:47 +00:00
Daniel Stenberg
70a27de3c5
add missing man page
2006-08-14 07:21:33 +00:00
Daniel Stenberg
19fb255f9e
Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
...
not always zero!
2006-08-03 18:20:45 +00:00
Daniel Stenberg
ca324db453
include config-win32.h in release archives
2006-06-26 08:56:04 +00:00
Daniel Stenberg
0e07499e96
1.3.1
2006-06-24 18:29:18 +00:00
Daniel Stenberg
2fc66d7b01
Copied the NO_UNDEFINED magic from libcurl to make this build fine again with
...
libtool cross-compiled on linux with mingw32
2006-05-24 23:02:51 +00:00
Daniel Stenberg
e75c876ac5
Bram Matthys brought my attention to a libtool peculiarity where detecting
...
things such as C++ compiler actually is a bad thing and since we don't need
that detection I added a work-around, much inspired by a previous patch by
Paolo Bonzini. This also shortens the configure script quite a lot.
2006-05-10 08:03:54 +00:00
Daniel Stenberg
c8878fb584
two more contributors
2006-05-05 21:08:09 +00:00
Daniel Stenberg
f4f25e3282
moved the curl_off_t check to within the --enable-debug block where it belongs since it is a somewhat ugly hack
2006-05-03 22:39:49 +00:00
Daniel Stenberg
22e34b53e4
Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
...
c-ares call a callback on socket state changes. A better way than the
ares_getsock() to get full control over the socket state.
2006-05-03 06:11:44 +00:00
Daniel Stenberg
de713cb37d
Alexander Lazic improved the getservbyport_r() configure check.
2006-01-09 08:31:48 +00:00
Daniel Stenberg
7a03bdaf34
buildconf fixes
2006-01-06 22:59:34 +00:00
Daniel Stenberg
acf6edf7e9
Use $ACLOCAL_FLAGS too, pointed out by Alexander Lazic
2006-01-06 22:07:51 +00:00
Daniel Stenberg
d07656e76d
James Bursa fixes: find the hosts file on RISC OS, and made it build with
...
newer gcc versions that no longer defines "riscos".
2006-01-05 07:57:32 +00:00
Daniel Stenberg
dccda3c237
Yang Tse has been helping out
2006-01-05 07:56:43 +00:00
Daniel Stenberg
dc59499966
we're working on 1.3.1 (or more)
2006-01-02 09:13:56 +00:00
Daniel Stenberg
ab18b895e8
This function was added in c-ares [version]
2005-12-22 15:31:32 +00:00
Daniel Stenberg
7b650b80c1
added ares_getsock()
2005-12-22 15:29:12 +00:00
Daniel Stenberg
8d63eb75a9
Added ares_getsock() to extract sockets to wait for action on, without being
...
limited to select().
2005-12-22 15:27:41 +00:00
Daniel Stenberg
05c21d8684
fix closing parentheses
2005-12-20 08:51:48 +00:00