]> granicus.if.org Git - curl/log
curl
14 years agoaxTLS: mention it among the other SSL libs
Daniel Stenberg [Wed, 15 Dec 2010 15:08:45 +0000 (16:08 +0100)]
axTLS: mention it among the other SSL libs

14 years ago7.21.4: version bump
Daniel Stenberg [Wed, 15 Dec 2010 14:54:17 +0000 (15:54 +0100)]
7.21.4: version bump

14 years agoaxtls_connect: allow connect without peer verification
Daniel Stenberg [Wed, 15 Dec 2010 10:11:20 +0000 (11:11 +0100)]
axtls_connect: allow connect without peer verification

The SSL_SERVER_VERIFY_LATER bit in the ssl_ctx_new() call allows the
code to verify the peer certificate explicitly after the handshake and
then the "data->set.ssl.verifypeer" option works.

14 years agoaxTLS: allow "default" SSL version as well
Daniel Stenberg [Wed, 15 Dec 2010 09:23:19 +0000 (10:23 +0100)]
axTLS: allow "default" SSL version as well

When no explicit version is selected we should try to use whatever is
best for us, and in the axTLS case that means TLSv1.

14 years agoaxtls.c: cleanup
Daniel Stenberg [Fri, 10 Dec 2010 23:55:06 +0000 (00:55 +0100)]
axtls.c: cleanup

Removed trailing whitespace
Removed several compiler warnings
Removed odd backslashes at some line endings

14 years agourldate: undef hideous memory defines
Daniel Stenberg [Fri, 10 Dec 2010 23:53:37 +0000 (00:53 +0100)]
urldate: undef hideous memory defines

The public axTLS header (at least as of 1.2.7) redefines the memory
functions. We #undef those again immediately after the public header to
limit the damage. This should be fixed in axTLS.

14 years agoconfigure: make --with-axtls set prefix
Daniel Stenberg [Fri, 10 Dec 2010 23:52:34 +0000 (00:52 +0100)]
configure: make --with-axtls set prefix

In tradition with other options, have this point to the directory prefix
and not the lib directory. Otherwise we can't set the include path
reliably.

14 years agoMinor fixes to pass tests 301 and 306 with a patched axTLS.
Eric Hu [Fri, 10 Dec 2010 00:29:39 +0000 (16:29 -0800)]
Minor fixes to pass tests 301 and 306 with a patched axTLS.

14 years agoInitial axTLS integration. Connections can be made and some tests pass.
Eric Hu [Tue, 7 Dec 2010 00:18:35 +0000 (16:18 -0800)]
Initial axTLS integration. Connections can be made and some tests pass.

Failed HTTPS tests: 301, 306, 311, 312, 313, 560
311, 312 need more detailed error reporting from axTLS.
313 relates to CRL, which hasn't been implemented yet.

14 years agoSimple update to configure script to notify user of --with-axtls switch.
Eric Hu [Tue, 7 Dec 2010 22:28:06 +0000 (14:28 -0800)]
Simple update to configure script to notify user of --with-axtls switch.

14 years agoPreparing for axTLS. Actual SSL API functions are only stubbed.
Eric Hu [Fri, 3 Dec 2010 18:23:45 +0000 (10:23 -0800)]
Preparing for axTLS. Actual SSL API functions are only stubbed.

Added axTLS to autotool files and glue code to misc other files.
axtls.h maps SSL API functions, but may change.
axtls.c is just a stub file and will definitely change.

14 years agoTHANKS: added contributors from 7.21.3
Daniel Stenberg [Wed, 15 Dec 2010 14:50:40 +0000 (15:50 +0100)]
THANKS: added contributors from 7.21.3

14 years agoRELEASE-NOTES: synced with a865bd9fbaaa43e5c curl-7_21_3
Daniel Stenberg [Wed, 15 Dec 2010 14:06:12 +0000 (15:06 +0100)]
RELEASE-NOTES: synced with a865bd9fbaaa43e5c

14 years agoIsPipeliningPossible: only for HTTP
Daniel Stenberg [Mon, 13 Dec 2010 12:44:50 +0000 (13:44 +0100)]
IsPipeliningPossible: only for HTTP

The function that checks if pipelining is possible now requires the HTTP
bit to be set so that it doesn't mistakenly tries to do it for other
protocols.

Bug: http://curl.haxx.se/mail/lib-2010-12/0152.html
Reported by: Dmitri Shubin

14 years agomulti_runsingle: don't timeout completed handles
Daniel Stenberg [Mon, 13 Dec 2010 11:51:48 +0000 (12:51 +0100)]
multi_runsingle: don't timeout completed handles

The generic timeout code must not check easy handles that are already
completed. Going to completed (again) within there risked decreasing the
number of alive handles again and thus it could go negative.

This regression bug was added in 7.21.2 in commit ca10e28f06f1

14 years agosymbols-in-versions: CURLOPT_KEYPASSWD fixed
Daniel Stenberg [Thu, 9 Dec 2010 12:07:00 +0000 (13:07 +0100)]
symbols-in-versions: CURLOPT_KEYPASSWD fixed

It was added in 7.17.0 and is not deprecated

14 years agoRELEASE-NOTES: synced with c28443c551825
Daniel Stenberg [Thu, 9 Dec 2010 10:23:33 +0000 (11:23 +0100)]
RELEASE-NOTES: synced with c28443c551825

14 years agoMention that using other libraries can affect app licensing
Dan Fandrich [Wed, 8 Dec 2010 18:16:25 +0000 (10:16 -0800)]
Mention that using other libraries can affect app licensing

14 years agoeasy: fix compiler warning: end-of-loop code not reached
Yang Tse [Tue, 7 Dec 2010 02:27:59 +0000 (03:27 +0100)]
easy: fix compiler warning: end-of-loop code not reached

14 years agodisconnect: pass on the dead_connection argument
Daniel Stenberg [Mon, 6 Dec 2010 14:33:38 +0000 (15:33 +0100)]
disconnect: pass on the dead_connection argument

Cleanup fix after Kamil's commit 5c7c9a768d0093

14 years agosws: fix compier warning: external definition with no prior declaration
Yang Tse [Mon, 6 Dec 2010 13:45:34 +0000 (14:45 +0100)]
sws: fix compier warning: external definition with no prior declaration

14 years agoossl_connect_common: detect connection re-use
Heinrich Ko [Thu, 18 Nov 2010 22:07:57 +0000 (14:07 -0800)]
ossl_connect_common: detect connection re-use

ossl_connect_common() now checks whether or not 'struct
connectdata->state' is equal 'ssl_connection_complete' and if so, will
return CURLE_OK with 'done' set to 'TRUE'. This check prevents
ossl_connect_common() from creating a new ssl connection on an existing
ssl session which causes openssl to fail when it tries to parse an
encrypted TLS packet since the cipher data was effectively thrown away
when the new ssl connection was created.

Bug: http://curl.haxx.se/mail/lib-2010-11/0169.html

14 years agourl: provide dead_connection flag in Curl_handler::disconnect
Kamil Dudka [Fri, 19 Nov 2010 12:43:20 +0000 (13:43 +0100)]
url: provide dead_connection flag in Curl_handler::disconnect

It helps to prevent a hangup with some FTP servers in case idle session
timeout has exceeded.  But it may be useful also for other protocols
that send any quit message on disconnect.  Currently used by FTP, POP3,
IMAP and SMTP.

14 years agossh: fix a download resume point calculation
Yang Tse [Mon, 6 Dec 2010 04:20:05 +0000 (05:20 +0100)]
ssh: fix a download resume point calculation

14 years agoCurl_wait_for_resolv: correct timeout
Daniel Stenberg [Sun, 5 Dec 2010 22:39:41 +0000 (23:39 +0100)]
Curl_wait_for_resolv: correct timeout

When looping in this function and checking for the timeout being
expired, it was not updating the reference time when calculating the
timediff since previous round which made it think each subsequent loop
to have taken longer than it actually did.

I also modified the function to use the generic Curl_timeleft() function
instead of the custom logic.

Bug: http://curl.haxx.se/bug/view.cgi?id=3112579

14 years agoCurl_send/recv_plain: return errno on failure
Daniel Stenberg [Sun, 5 Dec 2010 21:59:56 +0000 (22:59 +0100)]
Curl_send/recv_plain: return errno on failure

When send() and recv() fail, we now store the errno value to allow the
app to access it.

Bug: http://curl.haxx.se/bug/view.cgi?id=3128121
Reported by: Yuri

14 years agoUpdated OpenSSL version.
Guenter Knauf [Sun, 5 Dec 2010 09:59:58 +0000 (10:59 +0100)]
Updated OpenSSL version.

14 years agofix compiler warning: conversion may lose significant bits
Yang Tse [Sat, 4 Dec 2010 04:53:07 +0000 (05:53 +0100)]
fix compiler warning: conversion may lose significant bits

14 years agofix compiler warning: assignment within conditional expression
Yang Tse [Fri, 3 Dec 2010 15:53:11 +0000 (16:53 +0100)]
fix compiler warning: assignment within conditional expression

14 years agofix getinfo CURLINFO_LOCAL* for reused connections (take 2) follow-up
Yang Tse [Fri, 3 Dec 2010 13:29:06 +0000 (14:29 +0100)]
fix getinfo CURLINFO_LOCAL* for reused connections (take 2) follow-up

- Show address string from proper buffer in case of connection failure.

- Try next address when inet_ntop() fails.

14 years agoversion-check: added brief documentation
Daniel Stenberg [Fri, 3 Dec 2010 13:10:04 +0000 (14:10 +0100)]
version-check: added brief documentation

and the traditional source header

14 years agobuild: provide SIZEOF_SIZE_T DOS definition
Yang Tse [Fri, 3 Dec 2010 03:15:39 +0000 (04:15 +0100)]
build: provide SIZEOF_SIZE_T DOS definition

14 years agobuild: lib/config.dos renamed to lib/config-dos.h
Yang Tse [Fri, 3 Dec 2010 03:13:33 +0000 (04:13 +0100)]
build: lib/config.dos renamed to lib/config-dos.h

14 years agobuild: provide SIZEOF_SIZE_T VMS definition
Yang Tse [Fri, 3 Dec 2010 02:40:16 +0000 (03:40 +0100)]
build: provide SIZEOF_SIZE_T VMS definition

14 years agobuild: move config-vms.h from subdir 'packages/vms' into 'lib'
Yang Tse [Fri, 3 Dec 2010 01:36:22 +0000 (02:36 +0100)]
build: move config-vms.h from subdir 'packages/vms' into 'lib'

14 years agobuild: provide SIZEOF_SIZE_T definition for non-configure builds
Yang Tse [Thu, 2 Dec 2010 20:41:23 +0000 (21:41 +0100)]
build: provide SIZEOF_SIZE_T definition for non-configure builds

14 years agobuild: provide SIZEOF_SIZE_T netware definition
Yang Tse [Thu, 2 Dec 2010 19:53:42 +0000 (20:53 +0100)]
build: provide SIZEOF_SIZE_T netware definition

14 years agoconfigure: undo using autobuilds to temporarily verify strict aliasing warnings.
Yang Tse [Thu, 2 Dec 2010 18:09:15 +0000 (19:09 +0100)]
configure: undo using autobuilds to temporarily verify strict aliasing warnings.

14 years agofix compiler warning: rounding, sign extension, or loss of accuracy may result
Yang Tse [Thu, 2 Dec 2010 17:46:13 +0000 (18:46 +0100)]
fix compiler warning: rounding, sign extension, or loss of accuracy may result

14 years agofix compiler warning: statement is not reachable
Yang Tse [Thu, 2 Dec 2010 15:35:02 +0000 (16:35 +0100)]
fix compiler warning: statement is not reachable

14 years agofix compiler warning: conversion may lose significant bits
Yang Tse [Wed, 1 Dec 2010 22:33:43 +0000 (23:33 +0100)]
fix compiler warning: conversion may lose significant bits

14 years agoconnect: fix compiler warning: unused variable
Yang Tse [Wed, 1 Dec 2010 16:30:52 +0000 (17:30 +0100)]
connect: fix compiler warning: unused variable

14 years agofix getinfo CURLINFO_LOCAL* for reused connections (take 2)
Yang Tse [Tue, 30 Nov 2010 21:14:37 +0000 (22:14 +0100)]
fix getinfo CURLINFO_LOCAL* for reused connections (take 2)

14 years agofix getinfo CURLINFO_LOCAL* for reused connections follow-up
Yang Tse [Tue, 30 Nov 2010 12:42:02 +0000 (13:42 +0100)]
fix getinfo CURLINFO_LOCAL* for reused connections follow-up

Reinstate IPV6 build variable that got removed.

14 years agofix getinfo CURLINFO_LOCAL* for reused connections
Yang Tse [Tue, 30 Nov 2010 12:31:25 +0000 (13:31 +0100)]
fix getinfo CURLINFO_LOCAL* for reused connections

Failed to commit this file changes along with the others.

14 years agofix getinfo CURLINFO_LOCAL* for reused connections
Yang Tse [Tue, 30 Nov 2010 05:20:54 +0000 (06:20 +0100)]
fix getinfo CURLINFO_LOCAL* for reused connections

14 years agoatoi: remove atoi usage
Yang Tse [Sun, 28 Nov 2010 22:11:14 +0000 (23:11 +0100)]
atoi: remove atoi usage

14 years agomulti: fix compiler warning: conversion may lose significant bits follow-up
Yang Tse [Sun, 28 Nov 2010 19:49:40 +0000 (20:49 +0100)]
multi: fix compiler warning: conversion may lose significant bits follow-up

14 years agoftp: fix 'bool' data type implementation dependant usage
Yang Tse [Fri, 26 Nov 2010 19:19:45 +0000 (20:19 +0100)]
ftp: fix 'bool' data type implementation dependant usage

14 years agomulti: fix compiler warning: conversion may lose significant bits
Yang Tse [Fri, 26 Nov 2010 18:57:27 +0000 (19:57 +0100)]
multi: fix compiler warning: conversion may lose significant bits

14 years agomulti: fix compiler warning: enumerated type mixed with another type
Yang Tse [Fri, 26 Nov 2010 18:34:10 +0000 (19:34 +0100)]
multi: fix compiler warning: enumerated type mixed with another type

14 years agohostip: edit comment
Yang Tse [Fri, 26 Nov 2010 17:18:26 +0000 (18:18 +0100)]
hostip: edit comment

14 years agoxattr: fix compiler warning: enumerated type mixed with another type
Yang Tse [Fri, 26 Nov 2010 16:35:48 +0000 (17:35 +0100)]
xattr: fix compiler warning: enumerated type mixed with another type

14 years agos/isspace/ISSPACE
Yang Tse [Fri, 26 Nov 2010 12:59:01 +0000 (13:59 +0100)]
s/isspace/ISSPACE

14 years agosymbol-scan: use configure script knowledge about how to run the C preprocessor
Yang Tse [Thu, 25 Nov 2010 20:05:20 +0000 (21:05 +0100)]
symbol-scan: use configure script knowledge about how to run the C preprocessor

14 years agoignore file generated by configure
Yang Tse [Thu, 25 Nov 2010 12:34:47 +0000 (13:34 +0100)]
ignore file generated by configure

14 years agocurl_multi_info_read: fix compiler warning: conversion may lose significant bits
Yang Tse [Thu, 25 Nov 2010 01:58:59 +0000 (02:58 +0100)]
curl_multi_info_read: fix compiler warning: conversion may lose significant bits

14 years agoinet_pton: fix compiler warning
Yang Tse [Thu, 25 Nov 2010 01:20:14 +0000 (02:20 +0100)]
inet_pton: fix compiler warning

warning C4146: unary minus operator applied to unsigned type, result still unsigned

14 years agoCurl_getaddrinfo_ex: sanitize function results follow-up.
Yang Tse [Wed, 24 Nov 2010 03:36:57 +0000 (04:36 +0100)]
Curl_getaddrinfo_ex: sanitize function results follow-up.

14 years agoCurl_getaddrinfo_ex: sanitize function results.
Yang Tse [Tue, 23 Nov 2010 20:38:20 +0000 (21:38 +0100)]
Curl_getaddrinfo_ex: sanitize function results.

Ensure that spurious results from system's getaddrinfo() ares not propagated
by Curl_getaddrinfo_ex() into the library.

Also ensure that the ai_addrlen member of Curl_getaddrinfo_ex()'s output linked
list of Curl_addrinfo structures has appropriate family-specific address size.

14 years agoopenldap: use remote port in URL passed to ldap_init_fd()
Kamil Dudka [Mon, 22 Nov 2010 22:59:59 +0000 (23:59 +0100)]
openldap: use remote port in URL passed to ldap_init_fd()

... not the proxy port.  It makes no difference unless a proxy is used.

14 years agogtls: define and use gtls_EAGAIN, gtls_EINTR and gtls_EIO.
Yang Tse [Sat, 20 Nov 2010 04:00:12 +0000 (05:00 +0100)]
gtls: define and use gtls_EAGAIN, gtls_EINTR and gtls_EIO.

Winsock builds clobber some errno.h defines in setup_once.

14 years agoAdded a couple examples that were missing from the tar ball
Dan Fandrich [Sat, 20 Nov 2010 01:09:15 +0000 (17:09 -0800)]
Added a couple examples that were missing from the tar ball

14 years agoCheck for errors while preprocessing curl.h in test 1119
Dan Fandrich [Fri, 19 Nov 2010 23:54:21 +0000 (15:54 -0800)]
Check for errors while preprocessing curl.h in test 1119

This showed a problem when running the test out-of-tree, so
an include path is now being added to pick up the generated
curlbuild.h file.

14 years agoUse the 3-argument open for compatibility with older perls
Dan Fandrich [Fri, 19 Nov 2010 23:27:28 +0000 (15:27 -0800)]
Use the 3-argument open for compatibility with older perls

14 years agoDetect socket errors in GnuTLS on Windows
Matthias Bolte [Fri, 19 Nov 2010 21:31:34 +0000 (13:31 -0800)]
Detect socket errors in GnuTLS on Windows

On Windows, translate WSAGetLastError() to errno values as GNU
TLS does it internally, too. This is necessary because send() and
recv() on Windows don't set errno when they fail but GNU TLS
expects a proper errno value.

Bug: http://curl.haxx.se/bug/view.cgi?id=3110991

14 years agotest servers: fix strict aliasing compiler warnings
Yang Tse [Fri, 19 Nov 2010 18:20:38 +0000 (19:20 +0100)]
test servers: fix strict aliasing compiler warnings

14 years agoconfigure: use autobuilds to temporarily verify strict aliasing warnings.
Yang Tse [Thu, 18 Nov 2010 16:12:15 +0000 (17:12 +0100)]
configure: use autobuilds to temporarily verify strict aliasing warnings.

Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
rules and warnings. Given that cross-compiled targets autobuilds do not run the

14 years agoconfigure: Prevent link errors with --librtmp.
Julien Chaffraix [Thu, 18 Nov 2010 05:13:49 +0000 (21:13 -0800)]
configure: Prevent link errors with --librtmp.

If --librtmp was specified but pkg-config could not find the librtmp
file, we would have undefined symbols when linking curl.

We prevent this error by disabling this case as suggested on the mailing
list.

14 years agoRELEASE-NOTES: synced with cbf4961bf3e4
Daniel Stenberg [Sun, 14 Nov 2010 23:07:55 +0000 (00:07 +0100)]
RELEASE-NOTES: synced with cbf4961bf3e4

14 years agognutls->handshake: improved timeout handling
Daniel Stenberg [Sun, 14 Nov 2010 11:42:29 +0000 (12:42 +0100)]
gnutls->handshake: improved timeout handling

When no timeout is set, we call the socket_ready function with a timeout
value of 0 during handshake, which makes it loop too much/fast in this
function. It also made this function return CURLE_OPERATION_TIMEDOUT
wrongly on a slow handshake.

However, the particular bug report that highlighted this problem is not
solved by this fix, as this fix only makes the more proper error get
reported instead.

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594150
Reported by: Johannes Ernst

14 years agourldata: Capitalize enum protect_level values.
Julien Chaffraix [Sat, 13 Nov 2010 22:42:34 +0000 (14:42 -0800)]
urldata: Capitalize enum protect_level values.

This makes it easier to spot the enum values from the variables.
Removed some unneeded DEBUGASSERT added in the previous commit.

14 years agosecurity: tighten enum protection_level usage.
Julien Chaffraix [Sat, 13 Nov 2010 20:01:33 +0000 (12:01 -0800)]
security: tighten enum protection_level usage.

While changing Curl_sec_read_msg to accept an enum protection_level
instead of an int, I went ahead and fixed the usage of the associated
fields.

Some code was assuming that prot_clear == 0. Fixed those to use the
proper value. Added assertions prior to any code that would set the
protection level.

14 years agoconfigure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
Yang Tse [Sat, 13 Nov 2010 03:15:48 +0000 (04:15 +0100)]
configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body

14 years agocurl.1: "a file", not an
Daniel Stenberg [Fri, 12 Nov 2010 22:56:09 +0000 (23:56 +0100)]
curl.1: "a file", not an

14 years agoversion-check.pl: display version number for symbols
Daniel Stenberg [Fri, 12 Nov 2010 22:26:57 +0000 (23:26 +0100)]
version-check.pl: display version number for symbols

This script is the start of a helper tool that scans a source code and
outputs the most recent libcurl version it finds symbols for. Meaning
that if there's no conditions in the code, that's the earliest libcurl
version the scanned code requires.

It is not added to the Makefile.am yet as it is still a bit crude, but
I'm committing it to keep it and allow us to work on it.

14 years agoMakefile.vc6: fixed the xattr.c compile
Adam Light [Fri, 12 Nov 2010 19:19:56 +0000 (20:19 +0100)]
Makefile.vc6: fixed the xattr.c compile

14 years agokrb5: Use GSS_ERROR to check for error.
Julien Chaffraix [Fri, 12 Nov 2010 16:20:50 +0000 (08:20 -0800)]
krb5: Use GSS_ERROR to check for error.

This is the advised way of checking for errors in the GSS-API RFC.
Also added some '\n' to the error message so that they are not mixed
with other outputs.

14 years agosecurity: Pass the right parameter to init.
Julien Chaffraix [Fri, 12 Nov 2010 16:15:01 +0000 (08:15 -0800)]
security: Pass the right parameter to init.

init is expecting app_data. Passing it the struct connecdata would make
us crash later.

14 years agoHTTP Auth: Add CURLAUTH_ONLY
Daniel Stenberg [Thu, 11 Nov 2010 15:41:59 +0000 (16:41 +0100)]
HTTP Auth: Add CURLAUTH_ONLY

This is a meta symbol. OR this value together with a single specific
auth value to force libcurl to probe for un-restricted auth and if not,
only that single auth algorithm is acceptable.

For example you can use CURLAUTH_DIGEST|CURLAUTH_ONLY to make libcurl
first probe for what method to use, but yet only consider Digest to be
acceptable.

Using _only_ CURLAUTH_DIGEST without the CURLAUTH_ONLY field, will make
libcurl explicitly use Digest right away and not do any probing.

14 years agoip_version: moved to connection struct
Daniel Stenberg [Thu, 11 Nov 2010 13:51:39 +0000 (14:51 +0100)]
ip_version: moved to connection struct

The IP version choice was previously only in the UserDefined struct
within the SessionHandle, but since we sometimes alter that option
during a request we need to have it on a per-connection basis.

I also moved more "init conn" code into the allocate_conn() function
which is designed for that purpose more or less.

14 years agobuildconf: MAC OS X requires libtool version 1.5.26 or newer
Yang Tse [Thu, 11 Nov 2010 11:32:06 +0000 (12:32 +0100)]
buildconf: MAC OS X requires libtool version 1.5.26 or newer

MAC OS X requires libtool version 1.5.26 or newer, otherwise
configure will mishandle *.dSYM directories when it runs.

14 years agoconfigure: remove temporary autobuilds exercising of xattr function tests
Yang Tse [Thu, 11 Nov 2010 11:11:19 +0000 (12:11 +0100)]
configure: remove temporary autobuilds exercising of xattr function tests

14 years agoconfigure: use autobuilds to temporarily exercise xattr function tests
Yang Tse [Wed, 10 Nov 2010 18:05:18 +0000 (19:05 +0100)]
configure: use autobuilds to temporarily exercise xattr function tests

14 years agoxattr: portability fix
Yang Tse [Wed, 10 Nov 2010 17:39:44 +0000 (18:39 +0100)]
xattr: portability fix

14 years agocurl-functions: provide xattr function tests that also check number of arguments
Yang Tse [Wed, 10 Nov 2010 17:26:21 +0000 (18:26 +0100)]
curl-functions: provide xattr function tests that also check number of arguments

14 years agotest1120: verify FTP response 421
Daniel Stenberg [Wed, 10 Nov 2010 14:36:42 +0000 (15:36 +0100)]
test1120: verify FTP response 421

curl mustn't try to use the control connection after the 421 is received

14 years agoftpserver.pl: spellfix comment
Daniel Stenberg [Wed, 10 Nov 2010 14:36:28 +0000 (15:36 +0100)]
ftpserver.pl: spellfix comment

14 years agoTFTP: resend the correct data
Rutger Hofman [Wed, 10 Nov 2010 14:08:18 +0000 (15:08 +0100)]
TFTP: resend the correct data

I found a bug in tftp_tx() in tftp.c. If a data resend is done after
reception of an ACK/OACK, the call to sendto is wrong.

14 years agowrite extended attributes by using fsetxattr
Stefan Tomanek [Sun, 7 Nov 2010 15:54:49 +0000 (16:54 +0100)]
write extended attributes by using fsetxattr

Instead of reopening the downloaded file, fsetxattr uses the (already
open) file descriptor to attach extended attributes. This makes the
procedure more robust against errors caused by moved or deleted files.

14 years agoCheck for getinfo errors before setting attributes
Dan Fandrich [Wed, 10 Nov 2010 02:47:16 +0000 (18:47 -0800)]
Check for getinfo errors before setting attributes

14 years agoftp: treat server's response 421 as CURLE_OPERATION_TIMEDOUT
Kamil Dudka [Tue, 9 Nov 2010 16:04:04 +0000 (17:04 +0100)]
ftp: treat server's response 421 as CURLE_OPERATION_TIMEDOUT

Bug: https://bugzilla.redhat.com/650255
Reported by: Simon H.

14 years agosymbols-in-version: add CURL_SOCKET_BAD
Daniel Stenberg [Tue, 9 Nov 2010 13:20:23 +0000 (14:20 +0100)]
symbols-in-version: add CURL_SOCKET_BAD

I also documented the filtering logic in the symbol-scan.pl function to
clarify why not all CURL_* symbols are included.

14 years agoserial number bump
Yang Tse [Tue, 9 Nov 2010 00:40:25 +0000 (01:40 +0100)]
serial number bump

14 years agoftp: close connection as soon as ABOR has been sent
Kamil Dudka [Thu, 4 Nov 2010 20:44:02 +0000 (21:44 +0100)]
ftp: close connection as soon as ABOR has been sent

... and do not send ABOR unless really necessary.

Bug: https://bugzilla.redhat.com/649347
Reported by: Simon H.

14 years agoRELEASE-NOTES: synced with fc6c4c10f9faab08
Daniel Stenberg [Mon, 8 Nov 2010 10:20:39 +0000 (11:20 +0100)]
RELEASE-NOTES: synced with fc6c4c10f9faab08

I also recounted and updated the command line and libcurl options.

14 years agohelp: indent the --xattr option like the others
Daniel Stenberg [Mon, 8 Nov 2010 10:20:17 +0000 (11:20 +0100)]
help: indent the --xattr option like the others

14 years agocurl.1: --resolve documented
Daniel Stenberg [Mon, 8 Nov 2010 09:56:03 +0000 (10:56 +0100)]
curl.1: --resolve documented

14 years agoCURLOPT_RESOLVE: documented
Daniel Stenberg [Mon, 8 Nov 2010 08:53:35 +0000 (09:53 +0100)]
CURLOPT_RESOLVE: documented

14 years agoCURLOPT_USE_SSL: move from FTP options to connection options
Daniel Stenberg [Mon, 8 Nov 2010 08:46:48 +0000 (09:46 +0100)]
CURLOPT_USE_SSL: move from FTP options to connection options