Guenter Knauf [Mon, 2 Aug 2010 03:51:17 +0000 (05:51 +0200)]
Removed ugly dependency lists since wmake knows the .autodepend directive.
Guenter Knauf [Mon, 2 Aug 2010 02:53:17 +0000 (04:53 +0200)]
Use suffix search path for sources in lib folder.
Guenter Knauf [Mon, 2 Aug 2010 00:01:56 +0000 (02:01 +0200)]
Changed src/Makefile.Watcom to use CURL_SOURCES from src/Makefile.inc.
Guenter Knauf [Sun, 1 Aug 2010 23:50:53 +0000 (01:50 +0200)]
Renamed curl_SOURCES to CURL_ALLFILES to overcome wmake's case-insensitivity.
Guenter Knauf [Sun, 1 Aug 2010 23:30:37 +0000 (01:30 +0200)]
Removed wlink from DLL loader list because it doesnt work with Watcom < 1.8.
Guenter Knauf [Sun, 1 Aug 2010 23:24:04 +0000 (01:24 +0200)]
Moved the LDAP API defines from Makefile.Watcom to config-win32.h.
These defines are only needed for older Watcom versions (< 1280).
Daniel Stenberg [Sun, 1 Aug 2010 22:10:18 +0000 (00:10 +0200)]
retry: consider retrying even if -f is used
The --retry logic does retry HTTP when some specific response codes are
returned, but because the -f option sets the CURLOPT_FAILONERROR to
libcurl, the return codes are different for such situations and then the
curl tool failed to consider it for retrying.
Reported by: Mike Power
Bug: http://curl.haxx.se/bug/view.cgi?id=3037362
Daniel Stenberg [Sun, 1 Aug 2010 21:50:46 +0000 (23:50 +0200)]
multi: fix FTPS connecting the data connection with OpenSSL
Commit
496002ea1cd76af7f (released in 7.20.1) broke FTPS when using the
multi interface and OpenSSL was used. The condition for the non-blocking
connect was incorrect.
Reported by: Georg Lippitsch
Bug: http://curl.haxx.se/mail/lib-2010-07/0270.html
Guenter Knauf [Sun, 1 Aug 2010 02:48:29 +0000 (04:48 +0200)]
Fixed curlbuild.h rule.
Guenter Knauf [Sun, 1 Aug 2010 00:39:03 +0000 (02:39 +0200)]
Added rule to create curlbuild.h if not present (for builds from git).
Guenter Knauf [Sat, 31 Jul 2010 22:54:40 +0000 (00:54 +0200)]
Added dependend libs for curl static linking.
Guenter Knauf [Sat, 31 Jul 2010 09:52:05 +0000 (11:52 +0200)]
Fixed curl.exe static linking.
Daniel Stenberg [Fri, 30 Jul 2010 21:19:08 +0000 (23:19 +0200)]
warning: silence a win64 compiler warning
conversion from 'size_t' to 'curl_socklen_t', possible loss of data
Reported by: Adam Light
Daniel Stenberg [Fri, 30 Jul 2010 21:08:17 +0000 (23:08 +0200)]
KNOWN_BUG: The SOCKET type in Win64 is 64 bits
The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t
on that platform), and long is only 32 bits. It makes it impossible for
curl_easy_getinfo() to return a socket properly with the
CURLINFO_LASTSOCKET option as for all other operating systems.
Daniel Stenberg [Fri, 30 Jul 2010 20:36:31 +0000 (22:36 +0200)]
smtp_connect: always provide host name buffer
Previously the host name buffer was only used if gethostname() exists,
but since we converted that into a curl private function that function
always exists and will be used so the buffer needs to exist for all
cases/systems.
Daniel Stenberg [Fri, 30 Jul 2010 20:32:57 +0000 (22:32 +0200)]
sethostname: avoid including unistd.h to duck for warnings
Daniel Stenberg [Fri, 30 Jul 2010 20:26:19 +0000 (22:26 +0200)]
sethostname: ISO C does not allow extra `;' outside of a function
Kamil Dudka [Thu, 29 Jul 2010 22:47:49 +0000 (00:47 +0200)]
NTLM tests: boost coverage by forcing the hostname
A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM
test-cases to override the system implementation of gethostname(). It
makes it possible to test the NTLM authentication for exact match, and
this way test the implementation of MD4 and DES.
If LD_PRELOAD doesn't work, a debug build willl also workk as debug
builds are now made to prefer a specific environment variable and will
then return that content as host name instead of the actual one.
Kamil wrote the bulk of this, Daniel Stenberg polished it.
Guenter Knauf [Thu, 29 Jul 2010 07:06:55 +0000 (09:06 +0200)]
Added a comment with an alternate idea to avoid the backslash line contination character.
Guenter Knauf [Thu, 29 Jul 2010 03:33:04 +0000 (05:33 +0200)]
Changed comparison to match size_t var type.
Guenter Knauf [Thu, 29 Jul 2010 03:20:43 +0000 (05:20 +0200)]
Removed unused vars to avoid compiler warnings.
Guenter Knauf [Thu, 29 Jul 2010 01:50:09 +0000 (03:50 +0200)]
Make Watcom makefiles use Makefile.inc to reduce future maintainance.
lib/Makefile.Watcom works fine already, for src/Makefile.Watcom we
need first to tweak src/Makefile.inc a bit - therefore the handtweaked
list still exists for now.
Guenter Knauf [Thu, 29 Jul 2010 01:18:40 +0000 (03:18 +0200)]
Watcom makefiles overhaul.
- make both libcurl and curl makefiles use register calling convention
(previously libcurl had stack calling convention).
- added include paths to the Watcom headers so its no longer required
to set the environment vars for this.
- added -wcd=201 to supress compiler warning about unreachable code.
- use macros for all tools, and removed dependency on GNU tools like rm.
- make ipv6 and debug builds controlable via env vars and so make them
optional instead of default.
- commented WINLDAPAPI and WINBERAPI since they broke with OW 1.8, and
it seems they're not needed (anymore?).
- added rule for hugehelp.c.cvs so that it will be created when not
already exist - this is required for building from a release tarball
since there we have no hugehelp.c.cvs, thus compilation broke.
- removed C_ARG creation from lib/Makefile.Watcom and use CFLAGS
directly as done too in src/Makefile.Watcom - this has the benefit
that we will see all active cflags and defines during compile.
- added LINK-ARG to src/Makefile.Watcom in order to better control
linker input.
- a couple of other minor makefile tweaks here and there ...
- added largefile support for Watcom builds to config-win32.h. Not yet
tested if it really works, but should since Win32 supports it.
- added loaddll stuff to speed up builds if supported.
Guenter Knauf [Wed, 28 Jul 2010 06:05:00 +0000 (08:05 +0200)]
some cosmetic changes.
Dan Fandrich [Mon, 26 Jul 2010 23:41:27 +0000 (16:41 -0700)]
Added md4.c to the Watcom makefile
Dan Fandrich [Mon, 26 Jul 2010 23:38:29 +0000 (16:38 -0700)]
Added PolarSSL to the docs
Daniel Stenberg [Sun, 25 Jul 2010 15:48:07 +0000 (17:48 +0200)]
curl-config: --built-shared returns shared info
The curl-config now features a --built-shared command line option that
will output 'yes' or 'no' depending if the build process was asked to
build shared library/libraries or not.
It is primarily made to offer more details to the test suite to know
what kind of stunts it can expect to work.
Daniel Stenberg [Sat, 24 Jul 2010 20:52:35 +0000 (22:52 +0200)]
add_buffer_send: fix compiler warning
Win64's 32 bit long but 64 bit size_t caused a warning that we avoid
with a typecast. A small whitespace indent fix was also applied.
Reported by: Adam Light
Guenter Knauf [Thu, 22 Jul 2010 02:34:54 +0000 (04:34 +0200)]
Updated library versions.
Guenter Knauf [Thu, 22 Jul 2010 02:29:54 +0000 (04:29 +0200)]
Fixed script version which was still based on CVS Revision tag.
Dan Fandrich [Wed, 21 Jul 2010 22:15:07 +0000 (15:15 -0700)]
FAQ: Why doesn't cURL error out when the cable is unplugged?
This one was long overdue to be mentioned in the FAQ. Also, mention the
new ftp wildcard downloading feature.
Ben Greear [Mon, 19 Jul 2010 16:06:20 +0000 (18:06 +0200)]
ssh: Fix compile error on 64-bit systems.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Mon, 19 Jul 2010 16:07:09 +0000 (18:07 +0200)]
build: Enable configure --enable-werror
This passes -Werror to gcc when building curl and libcurl,
allowing easy dection of compile warnings.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Mon, 19 Jul 2010 16:07:50 +0000 (18:07 +0200)]
pingpong: Fix indentation (whitespace change only)
Signed-off-by: Ben Greear <greearb@candelatech.com>
Jan Van Boghout [Sun, 18 Jul 2010 18:23:08 +0000 (20:23 +0200)]
CUSTOMREQUEST: shouldn't be disabled when HTTP is disabled
... since FTP is using it as well, and potentially other protocols!
Also, an #endif CURL_DISABLE_HTTP was incorrectly marked, as it seems to
end the proxy block instead.
Jan Van Boghout [Sat, 17 Jul 2010 22:49:29 +0000 (00:49 +0200)]
pingpong: response_time is milliseconds
Fixed the comment/document for the response_time struct member.
Jan Van Boghout [Sat, 17 Jul 2010 22:44:25 +0000 (00:44 +0200)]
ftp: response timeout bug in "quote" sending
The FTP implementation was missing a timestamp reset point, making the
waiting for responses after sending a post-transfer "QUOTE" command not
working as supposedly. This bug was introduced in 7.20.0
Jeff Pohlmeyer [Sat, 17 Jul 2010 18:04:02 +0000 (20:04 +0200)]
remote-header-name: chop filename at next semicolon
The --remote-header-name option for the command-line tool assumes that
everything beyond the filename= field is part of the filename, but that
might not always be the case, for example:
Content-Disposition: attachment; filename=file.txt; modification-date=...
This fix chops the filename off at the next semicolon, if there is one.
Daniel Stenberg [Wed, 14 Jul 2010 21:50:01 +0000 (23:50 +0200)]
--retry: access violation with URL part sets continued
When getting multiple URLs, curl didn't properly reset the byte counter
after a successful transfer so if the subsequent transfer failed it
would wrongly use the previous byte counter and behave badly (segfault)
because of that. The code assumes that the byte counter and the 'stream'
pointer is well in synch.
Reported by: Jon Sargeant
Bug: http://curl.haxx.se/bug/view.cgi?id=3028241
Daniel Stenberg [Tue, 13 Jul 2010 22:40:20 +0000 (00:40 +0200)]
releasnote: synch up with commit
f3b77e5611d
Constantine Sapuntzakis [Tue, 13 Jul 2010 22:32:53 +0000 (00:32 +0200)]
examples: add curl_multi_timeout
Make the multi-interface using examples use curl_multi_timeout to
properly educate users how to do things.
Daniel Stenberg [Mon, 12 Jul 2010 21:40:16 +0000 (23:40 +0200)]
configure: document the STATICLIB variable
Constantine Sapuntzakis [Mon, 12 Jul 2010 17:19:31 +0000 (19:19 +0200)]
multi: fix condition that remove timers before trigger
curl_multi perform has two phases: run through every easy handle calling
multi_runsingle and remove expired timers (timer removal).
If a small timer (e.g. 1-10ms) is set during multi_runsingle, then it's
possible that the timer has passed by when the timer removal runs. The
timer which was just added is then removed. This will potentially cause
the timer list to be empty and cause the next call to curl_multi_timeout
to return -1. Ideally, curl_multi_timeout should return 0 in this case.
One way to fix this is to move the struct timeval now = Curl_tvnow(); to
the top of curl_multi_perform. The change does that.
Constantine Sapuntzakis [Mon, 12 Jul 2010 17:03:51 +0000 (19:03 +0200)]
threaded resolver: fix timeout issue
Reset old timer first so we can set a new one further in the future.
Daniel Stenberg [Mon, 12 Jul 2010 16:39:40 +0000 (18:39 +0200)]
configure: allow environments variable to override internals
configure checks for grep, egrep, sed and ar and set the variables GREP,
EGREP, SED and AR accordingly. We now let already set variables override
the internal choices to let users make decisions when they know the
right choice already. This is a regression as our configure script used
to allow this back before commit
0b57c475 (up to 7.18.2).
Reported by: "kdekker"
Bug: http://curl.haxx.se/bug/view.cgi?id=3028318
Dan Fandrich [Fri, 9 Jul 2010 23:11:36 +0000 (16:11 -0700)]
Improved the Android build instructions
Tor Arntsen [Wed, 7 Jul 2010 09:55:31 +0000 (11:55 +0200)]
upload: Avoid infinite loop when checking for auth bits
The test would loop forever if authtype bit 0 wasn't set.
Daniel Stenberg [Tue, 6 Jul 2010 21:25:32 +0000 (23:25 +0200)]
upload: warn users trying to upload from stdin with anyauth
Since uploading from stdin is very likely to not work with anyauth and
its multi-phase probing for what authentication to actually use, alert
the user about it. Multi-phase negotiate almost certainly will involve
sending data and thus libcurl will need to rewind the stream to send
again, and it cannot do that with stdin.
Daniel Stenberg [Tue, 6 Jul 2010 20:50:21 +0000 (22:50 +0200)]
http: don't enable chunked during authentication negotiations
As mentioned in bug report #2956968, the HTTP code wouldn't send the
first empty chunk during the auth negotiation phase of the HTTP request
sending, so the server would wait for data to come and libcurl would
wait for data to arrive... I've made the code not enable chunked
encoding until the auth negotiation is done and thus this scenario
doesn't occur anymore.
Reported by: Sidney San MartÃn
Bug: http://curl.haxx.se/bug/view.cgi?id=2956968
Daniel Stenberg [Tue, 6 Jul 2010 20:44:19 +0000 (22:44 +0200)]
--libcurl: list the tricky options instead of using [REMARK]
I think the [REMARK] and commented function calls cluttered the code a
bit too much and made the generated code ugly to read. Now we instead
track the remarks one specially and just lists them at the end of the
generated code more as additional information.
Daniel Stenberg [Tue, 6 Jul 2010 20:43:05 +0000 (22:43 +0200)]
curl: avoid setting libcurl options to its default
it makes the --libcurl output easier to follow.
Daniel Stenberg [Tue, 6 Jul 2010 20:13:22 +0000 (22:13 +0200)]
--libcurl: hide setopt() calls setting default options
And additionally, don't show function or object pointers actual value
since they make no sense to anyone. Show 'functionpointer' and
'objectpointer' instead.
Daniel Stenberg [Tue, 6 Jul 2010 17:19:52 +0000 (19:19 +0200)]
--libcurl: use *_LARGE options with typecasted constants
In the generated code --libcurl makes, all calls to curl_easy_setopt()
that use *_LARGE options now have the value typecasted to curl_off_t, so
that it works correctly for 32bit systems with 64bit curl_off_t type.
Daniel Stenberg [Thu, 1 Jul 2010 21:32:20 +0000 (23:32 +0200)]
multi: CURLINFO_LASTSOCKET doesn't work after remove_handle
When curl_multi_remove_handle() is called and an easy handle is returned
to the connection cache held in the multi handle, then we cannot allow
CURLINFO_LASTSOCKET to extract it since that will more or less encourage
that the user uses the socket while it can get used by libcurl again.
Without this fix, we'd get a segfault in Curl_getconnectinfo() trying to
dereference the NULL pointer in 'data->state.connc'.
Bug: http://curl.haxx.se/bug/view.cgi?id=3023840
Pierre Joye [Wed, 30 Jun 2010 17:40:40 +0000 (19:40 +0200)]
build: add enable IPV6 option for the VC makefiles
Daniel Stenberg [Wed, 30 Jun 2010 13:52:58 +0000 (15:52 +0200)]
FAQ: the threaded resolver works universally now
Kamil Dudka [Sun, 27 Jun 2010 01:38:01 +0000 (03:38 +0200)]
http_ntlm: add support for NSS
When configured with '--without-ssl --with-nss', NTLM authentication
now uses NSS crypto library for MD5 and DES. For MD4 we have a local
implementation in that case. More details are available at
https://bugzilla.redhat.com/603783
In order to get it working, curl_global_init() must be called with
CURL_GLOBAL_SSL or CURL_GLOBAL_ALL. That's necessary because NSS needs
to be initialized globally and we do so only when the NSS library is
actually required by protocol. The mentioned call of curl_global_init()
is responsible for creating of the initialization mutex.
There was also slightly changed the NSS initialization scenario, in
particular, loading of the NSS PEM module. It used to be loaded always
right after the NSS library was initialized. Now the library is
initialized as soon as any SSL or NTLM is required, while the PEM module
is prevented from being loaded until the SSL is actually required.
Daniel Stenberg [Mon, 28 Jun 2010 22:17:38 +0000 (00:17 +0200)]
glob: backslash escaping bug
curl didn't properly handle escaping characters in a URL with the use of
backslash. It did an attempt, but that failed as reported in bug
3022551. The described example was using the URL
"http://example.com?{AB,C\,D}".
I've now removed the special-handling of letters following the backslash
and I also removed the bad extra check that triggered this particular
bug.
Bug: http://curl.haxx.se/bug/view.cgi?id=3022551
Reported by: Jon Sargeant
Daniel Stenberg [Mon, 28 Jun 2010 22:13:04 +0000 (00:13 +0200)]
release-notes: sync up with recent commits
Daniel Stenberg [Sat, 26 Jun 2010 21:17:02 +0000 (23:17 +0200)]
CONTRIBUTE: the git commit message line length is 72 columns
Pavel Raiskup [Thu, 24 Jun 2010 14:11:55 +0000 (16:11 +0200)]
ftp wildcard: FTP LIST parser FIX
There was a problem when a UNIX-like server returned information
about directory size (total NNNNNN) at the first line of
response.
Pavel Raiskup [Thu, 24 Jun 2010 15:22:47 +0000 (17:22 +0200)]
examples: new FTP wildcard showcase
Daniel Stenberg [Thu, 24 Jun 2010 21:19:27 +0000 (23:19 +0200)]
multi_socket: re-use of same socket without notifying app
When a hostname resolves to multiple IP addresses and the first one
tried doesn't work, the socket for the second attempt may get dropped on
the floor, causing the request to eventually time out. The issue is that
when using kqueue (as on mac and bsd platforms) instead of select, the
kernel removes the first fd from kqueue when it is closed (in trynextip,
connect.c:503). Trynextip() then goes on to open a new socket, which
gets assigned the same number as the one it just closed. Later in
multi.c, socket_cb is not called because the fd is already in
multi->sockhash, so the new socket is never added to kqueue.
The correct fix is to ensure that socket_cb is called to remove the fd
when trynextip() closes the socket, and again to re-add it after
singleipsocket(). I'm not sure how to cleanly do that, but the attached
patch works around the problem in an admittedly kludgy way by delaying
the close to ensure that the newly-opened socket gets a different fd.
Daniel's added comment: I didn't spot a way to easily do a nicer fix so
I've proceeded with Ben's patch.
Bug: http://curl.haxx.se/bug/view.cgi?id=3017819
Patch by: Ben Darnell
Pavel Raiskup [Thu, 24 Jun 2010 08:10:29 +0000 (10:10 +0200)]
ftp-wildcard: avoid tight loop when used without any pattern
It was broken for URLs like "ftp://example.com/".
Daniel Stenberg [Mon, 21 Jun 2010 20:42:36 +0000 (22:42 +0200)]
maketgz: produce CHANGES automatically with the 1000 most recent commits
It passes the git log output through 'log2changes.pl' to produce
the lot.
Daniel Stenberg [Mon, 21 Jun 2010 20:42:11 +0000 (22:42 +0200)]
ignore: CHANGES.dist gets generated by maketgz
Daniel Stenberg [Mon, 21 Jun 2010 20:27:39 +0000 (22:27 +0200)]
CHANGES: move all contents from CHANGES to CHANGES.0
CHANGES is no longer used for manually edited content. It is to
be generated automatically by maketgz when we make release
tarballs.
Daniel Stenberg [Mon, 21 Jun 2010 20:21:25 +0000 (22:21 +0200)]
log2changes: correct command line, fix tag usage, change Version output
--decorate=full is needed with my git 1.7.1 to get the necessary
output so that the previous edit would work to extract the
Version stuff.
... but I had to edit how the refs/tags was extracted since it
had a little flaw that made it miss the 7.20.1 output.
Finally, I changed so that Version is outputted even more similar
to how CHANGES does it.
Dan Fandrich [Mon, 21 Jun 2010 19:24:27 +0000 (12:24 -0700)]
Make the output of log2changes.pl even more closely match CHANGES
Add the ASCII art header, and list version commits by decoding
the ref tag names, when available (using the git log --decorate
option).
Daniel Stenberg [Sat, 19 Jun 2010 21:08:34 +0000 (23:08 +0200)]
log2changes: first version of the git log to CHANGES conversion script
$ git log --pretty=fuller --no-color --date=short | ./log2changes.pl
Of course, limiting the log output with a range like with
"[tag]..HEAD" appended can be very useful too.
Daniel Stenberg [Fri, 18 Jun 2010 22:18:14 +0000 (00:18 +0200)]
sendrecv: treat all negative values from send/recv as errors
For example the libssh2 based functions return other negative
values than -1 to signal errors and it is important that we catch
them properly. Right before this, various failures from libssh2
were treated as negative download amounts which caused havoc.
Daniel Stenberg [Fri, 18 Jun 2010 21:46:09 +0000 (23:46 +0200)]
multi: prevent NULL pointer dereference
My additional call to Curl_pgrsUpdate() would sometimes get
called even though there's no connection (left) so a NULL pointer
would get passed, causing a segfault.
Daniel Stenberg [Fri, 18 Jun 2010 14:20:41 +0000 (16:20 +0200)]
smtp: fixed a few uses of size_t that seemed to believe it was signed
Reported-by: Steven M. Schweda
Dan Fandrich [Thu, 17 Jun 2010 17:56:25 +0000 (10:56 -0700)]
Fixed an OOM memory leak in the FTP wildcard code
Kamil Dudka [Thu, 17 Jun 2010 15:07:15 +0000 (17:07 +0200)]
test575: do not fail with threaded DNS resolver
Krister Johansen [Thu, 17 Jun 2010 13:46:27 +0000 (15:46 +0200)]
multi: unmark handle as used when no longer head of pipeline
Daniel Stenberg [Thu, 17 Jun 2010 13:19:30 +0000 (15:19 +0200)]
multi: call the progress function only once and allow abort
1) no need to call the progress function twice when in the
CURLM_STATE_TOOFAST state.
2) Make sure that the progress callback's return code is
acknowledged when used
Daniel Stenberg [Thu, 17 Jun 2010 13:08:55 +0000 (15:08 +0200)]
multi: call the progress callback in all states
As long as no error is reported, the progress function can get
called. This may be a little TOO often so we should keep an eye
on this and possibly make this conditional somehow.
Daniel Stenberg [Thu, 17 Jun 2010 13:07:05 +0000 (15:07 +0200)]
configure: spell --disable-threaded-resolver correctly
Previously we only accepted the option when named
--disable-threaded-resover, which wasn't quite intended.
Reported by: Helwing Lutz
Daniel Stenberg [Wed, 16 Jun 2010 12:29:16 +0000 (14:29 +0200)]
release: start on 7.21.1, bump contributor count
Daniel Stenberg [Wed, 16 Jun 2010 12:26:43 +0000 (14:26 +0200)]
version: start working on the 7.21.1-dev version
Daniel Stenberg [Wed, 16 Jun 2010 12:26:14 +0000 (14:26 +0200)]
THANKS: added contributors from the 7.21.0 release
Daniel Stenberg [Wed, 16 Jun 2010 11:48:27 +0000 (13:48 +0200)]
release: 7.21.0
Yang Tse [Thu, 10 Jun 2010 02:46:30 +0000 (04:46 +0200)]
remove unused 'tmpdata' and 'backup' ftp_parselist_data struct members
Yang Tse [Thu, 10 Jun 2010 00:33:45 +0000 (02:33 +0200)]
replace isprint() with ISPRINT()
Yang Tse [Thu, 10 Jun 2010 00:30:23 +0000 (02:30 +0200)]
ensure that Curl_wildcard_dtor() leaves WildcardData struct zero initialized
Patrick Monnerat [Wed, 9 Jun 2010 15:14:33 +0000 (17:14 +0200)]
ILE/RPG binding updated to current curl.h definitions.
Yang Tse [Wed, 9 Jun 2010 14:48:19 +0000 (16:48 +0200)]
code simplification
Yang Tse [Wed, 9 Jun 2010 13:45:46 +0000 (15:45 +0200)]
add Curl_ prefix to conform with cURL naming standards
Yang Tse [Tue, 8 Jun 2010 23:57:37 +0000 (01:57 +0200)]
Merge branch 'master' of git@github.com:bagder/curl
Yang Tse [Tue, 8 Jun 2010 23:51:46 +0000 (01:51 +0200)]
fix compiler warning using curl_socket_t to store socket descriptor
Daniel Stenberg [Tue, 8 Jun 2010 21:09:42 +0000 (23:09 +0200)]
inet_pton: warnings: use size_t to store pointer deltas
Yang Tse [Tue, 8 Jun 2010 17:29:20 +0000 (19:29 +0200)]
avoid redundant work when reusing same connection
Yang Tse [Tue, 8 Jun 2010 14:16:34 +0000 (16:16 +0200)]
fix function result checking
Daniel Stenberg [Tue, 8 Jun 2010 08:36:06 +0000 (10:36 +0200)]
transfer: warning: implicit conversion
There is an implicit conversion from "unsigned long" to "long";
rounding, sign extension, or loss of accuracy may result.
Fixed by an added typecast.
Daniel Stenberg [Tue, 8 Jun 2010 08:35:06 +0000 (10:35 +0200)]
TFTP: fix compiler warning
Curl_fillreadbuffer()'s second argument takes an int, so
typecasting to another is a bad idea.
Daniel Stenberg [Tue, 8 Jun 2010 08:19:39 +0000 (10:19 +0200)]
TFTP: fix warning for sendto() usage on non-POSIX systems
Older unixes want an 'int' instead of 'size_t' as the 3rd
argumment so before this change it would cause warnings such as:
There is an implicit conversion from "unsigned long" to "int";
rounding, sign extension, or loss of accuracy may result.
Dan Fandrich [Mon, 7 Jun 2010 21:00:16 +0000 (14:00 -0700)]
Include Makefile.inc to get the list of source files for Amiga
Signed-off-by: Diego Casorran <dcasorran@gmail.com>
Yang Tse [Mon, 7 Jun 2010 14:53:31 +0000 (16:53 +0200)]
Curl_updateconninfo() error handling fix
Constantine Sapuntzakis [Sat, 5 Jun 2010 21:41:58 +0000 (23:41 +0200)]
OpenSSL: fix spurious SSL connection aborts
Was seeing spurious SSL connection aborts using libcurl and
OpenSSL. I tracked it down to uncleared error state on the
OpenSSL error stack - patch attached deals with that.
Rough idea of problem:
Code that uses libcurl calls some library that uses OpenSSL but
don't clear the OpenSSL error stack after an error.
ssluse.c calls SSL_read which eventually gets an EWOULDBLOCK from
the OS. Returns -1 to indicate an error
ssluse.c calls SSL_get_error. First thing, SSL_get_error calls
ERR_get_error to check the OpenSSL error stack, finds an old
error and returns SSL_ERROR_SSL instead of SSL_ERROR_WANT_READ or
SSL_ERROR_WANT_WRITE.
ssluse.c returns an error and aborts the connection
Solution:
Clear the openssl error stack before calling SSL_* operation if
we're going to call SSL_get_error afterwards.
Notes:
This is much more likely to happen with multi because it's easier
to intersperse other calls to the OpenSSL library in the same
thread.