platform/upstream/curl.git
13 years agoSSH: move knownhost logic to separate function
Daniel Stenberg [Wed, 20 Apr 2011 20:43:41 +0000 (22:43 +0200)]
SSH: move knownhost logic to separate function

13 years agosource cleanup: unify look, style and indent levels
Daniel Stenberg [Wed, 20 Apr 2011 13:17:42 +0000 (15:17 +0200)]
source cleanup: unify look, style and indent levels

By the use of a the new lib/checksrc.pl script that checks that our
basic source style rules are followed.

13 years agoWindows native IDN fixes.
Guenter Knauf [Wed, 27 Apr 2011 01:45:18 +0000 (03:45 +0200)]
Windows native IDN fixes.

For now provide prototypes instead of including the
non-standard normalisation.h which is only available in the
"Internationalized Domain Names Mitigation APIs" download.

13 years agoFixed compiler warning in Windows SSPI case
Dan Fandrich [Tue, 26 Apr 2011 04:58:37 +0000 (21:58 -0700)]
Fixed compiler warning in Windows SSPI case

13 years agoFixed compilation when the synchronous resolver is used
Dan Fandrich [Tue, 26 Apr 2011 02:01:40 +0000 (19:01 -0700)]
Fixed compilation when the synchronous resolver is used

13 years agoAdded new resolver sources to Symbian and VC6 build files
Dan Fandrich [Tue, 26 Apr 2011 01:07:32 +0000 (18:07 -0700)]
Added new resolver sources to Symbian and VC6 build files

13 years agohostip: comment fixed to state current situation
Daniel Stenberg [Mon, 25 Apr 2011 17:50:56 +0000 (19:50 +0200)]
hostip: comment fixed to state current situation

13 years agoasync resolvers: further cleanups
Daniel Stenberg [Sun, 30 Jan 2011 23:10:35 +0000 (00:10 +0100)]
async resolvers: further cleanups

asyn-ares.c and asyn-thread.c are two separate backends that implement
the same (internal) async resolver API for libcurl to use. Backend is
specified at build time.

The internal resolver API is defined in asyn.h for asynch resolvers.

13 years agoasynch resolvers: cleanup
Daniel Stenberg [Sun, 30 Jan 2011 00:00:52 +0000 (01:00 +0100)]
asynch resolvers: cleanup

Fixed indents, coding conventions and white space edits.

Modified the c-ares completion callback function to again NOT read the
conn data when the ares handle is being taken down as then it may have
been freed already.

13 years agoasynch resolvers: unified
Vsevolod Novikov [Sat, 29 Jan 2011 19:12:10 +0000 (20:12 +0100)]
asynch resolvers: unified

Introducing an internal API for handling of different async resolver
backends.

13 years agoEnabled OpenWatcom native Windows IDN build.
Guenter Knauf [Sun, 24 Apr 2011 16:58:07 +0000 (18:58 +0200)]
Enabled OpenWatcom native Windows IDN build.

For now we directly import the Idn* symbols with the linker;
an upcoming release of OWC will have these added to the import
lib normaliz.lib, and prototypes are added to winnnls.h.

13 years agoNTLM: work with unicode
Daniel Stenberg [Wed, 20 Apr 2011 14:08:28 +0000 (16:08 +0200)]
NTLM: work with unicode

Rewritten code from a patch brought by Matteo Rocco.

13 years agobump version: work towards 7.21.7
Daniel Stenberg [Fri, 22 Apr 2011 20:02:55 +0000 (22:02 +0200)]
bump version: work towards 7.21.7

13 years agoTHANKS: contributors from 7.21.6
Daniel Stenberg [Fri, 22 Apr 2011 20:02:33 +0000 (22:02 +0200)]
THANKS: contributors from 7.21.6

13 years agoRELEASE-NOTES: two more contributors
Daniel Stenberg [Fri, 22 Apr 2011 17:17:26 +0000 (19:17 +0200)]
RELEASE-NOTES: two more contributors

13 years agoFixed test 1023 when using daily snapshots
Dan Fandrich [Thu, 21 Apr 2011 21:47:35 +0000 (14:47 -0700)]
Fixed test 1023 when using daily snapshots

13 years agoInclude unistd.h to declare close()
Dan Fandrich [Thu, 21 Apr 2011 21:47:07 +0000 (14:47 -0700)]
Include unistd.h to declare close()

13 years agoIn lib/, change 'wanna' to 'want to'.
Fabian Keil [Tue, 19 Apr 2011 13:55:37 +0000 (15:55 +0200)]
In lib/, change 'wanna' to 'want to'.

Found with codespell.

13 years agoFix spelling errors in buildconf
Fabian Keil [Tue, 19 Apr 2011 14:08:24 +0000 (16:08 +0200)]
Fix spelling errors in buildconf

Found with codespell.

13 years agoFix spelling errors in src/
Fabian Keil [Tue, 19 Apr 2011 14:06:47 +0000 (16:06 +0200)]
Fix spelling errors in src/

Found with codespell.

13 years agoFix spelling errors in include/
Fabian Keil [Tue, 19 Apr 2011 14:05:17 +0000 (16:05 +0200)]
Fix spelling errors in include/

13 years agoFix a couple of spelling errors in lib/
Fabian Keil [Tue, 19 Apr 2011 13:54:13 +0000 (15:54 +0200)]
Fix a couple of spelling errors in lib/

Found with codespell.

13 years agotransfer.c: Fixed indentation in readwrite_data.
Julien Chaffraix [Thu, 14 Apr 2011 14:15:12 +0000 (07:15 -0700)]
transfer.c: Fixed indentation in readwrite_data.

13 years agoFixed closing test tag
Dan Fandrich [Wed, 20 Apr 2011 23:51:44 +0000 (16:51 -0700)]
Fixed closing test tag

13 years agoRELEASE-NOTES: synced with 3242abd87a1262
Daniel Stenberg [Wed, 20 Apr 2011 21:59:36 +0000 (23:59 +0200)]
RELEASE-NOTES: synced with 3242abd87a1262

13 years agoSFTP: close file before postquote
Daniel Stenberg [Wed, 20 Apr 2011 21:37:29 +0000 (23:37 +0200)]
SFTP: close file before postquote

Make sure that files are closed before the post quote commands run as if
they operate on the just transferred file they could otherwise easily
fail.

Patch by: Rajesh Naganathan (edited)

13 years agoFixed test 1022 when using daily snapshots
Dan Fandrich [Wed, 20 Apr 2011 21:11:12 +0000 (14:11 -0700)]
Fixed test 1022 when using daily snapshots

13 years agoCurl_http_connect: detect HTTPS properly after CONNECT
Daniel Stenberg [Wed, 20 Apr 2011 20:50:04 +0000 (22:50 +0200)]
Curl_http_connect: detect HTTPS properly after CONNECT

libcurl failed to check the correct struct for HTTPS after CONNECT was
issued to the proxy, so it didn't do the TLS handshake and subsequently
failed the connection. A regression released in 7.21.5 (introduced
around commit 8831000bc07de).

Bug: http://curl.haxx.se/mail/lib-2011-04/0134.html
Reported by: Josue Andrade Gomes

13 years agocurl_easy_setopt.3: CURLOPT_PROXYTYPE clarification
Daniel Stenberg [Wed, 20 Apr 2011 13:42:23 +0000 (15:42 +0200)]
curl_easy_setopt.3: CURLOPT_PROXYTYPE clarification

When set to a HTTP 1.0 proxy, that only affects the CONNECT request and
not the regular HTTP request.

13 years agoCURL_DOES_CONVERSIONS: fixes
Gisle Vanem [Wed, 20 Apr 2011 13:23:57 +0000 (15:23 +0200)]
CURL_DOES_CONVERSIONS: fixes

Made it compile and work again after the code move.

13 years agoCURL_DOES_CONVERSIONS: cleanup
Daniel Stenberg [Tue, 19 Apr 2011 22:48:20 +0000 (00:48 +0200)]
CURL_DOES_CONVERSIONS: cleanup

Massively reduce #ifdefs all over (23 #ifdef lines less so far)
Moved conversion-specific code to non-ascii.c

13 years agoImprove MinGW static makefile builds.
Guenter Knauf [Tue, 19 Apr 2011 18:59:24 +0000 (20:59 +0200)]
Improve MinGW static makefile builds.

It is now possible to use any combination of features without
having to 1st add makefile targets to the main makefile. The
main makefile now passes the 'mingw32-feat1-feat2' as var CFG,
and the ./[lib|src]/Makefile.m32 parses the CFG var to determine
the features to be enabled.

13 years agoEnabled MinGW native Windows IDN build.
Guenter Knauf [Tue, 19 Apr 2011 15:28:28 +0000 (17:28 +0200)]
Enabled MinGW native Windows IDN build.

13 years agoWindows native IDN fixes.
Guenter Knauf [Tue, 19 Apr 2011 15:13:09 +0000 (17:13 +0200)]
Windows native IDN fixes.

changed windows.h include to system header;
changed obsolete 2nd check for str_w to str_utf8 in order to catch
malloc() failure and avoid a free(NULL);
changed calls to GetLastError() to void to kill unsused var compiler
warnings;
moved one call to GetLastError() into else case so that its only
called when WideCharToMultiByte() really fails.

13 years agoWindows native IDN fixes.
Guenter Knauf [Tue, 19 Apr 2011 14:45:54 +0000 (16:45 +0200)]
Windows native IDN fixes.

Provide prototype for curl_win32_idn_to_ascii();
remove wrong 3rd parameter from curl_win32_idn_to_ascii() call.

13 years agocurl-config: fix version output
Daniel Stenberg [Tue, 19 Apr 2011 14:41:34 +0000 (16:41 +0200)]
curl-config: fix version output

do the s/VERSION/CURLVERSION replacement for the human redable output
for --checkfor

Reported by: Ryan Schmidt

13 years agoRELEASE-NOTES: synced with 5aae3c13e2
Daniel Stenberg [Tue, 19 Apr 2011 12:08:25 +0000 (14:08 +0200)]
RELEASE-NOTES: synced with 5aae3c13e2

13 years agoUpdated default (recommended) dependency versions.
Guenter Knauf [Tue, 19 Apr 2011 12:32:08 +0000 (14:32 +0200)]
Updated default (recommended) dependency versions.

13 years agoUpdated default (recommended) dependency versions.
Guenter Knauf [Tue, 19 Apr 2011 12:26:51 +0000 (14:26 +0200)]
Updated default (recommended) dependency versions.

13 years agotransfer-encoding: document the options
Daniel Stenberg [Thu, 14 Apr 2011 20:59:34 +0000 (22:59 +0200)]
transfer-encoding: document the options

The new libcurl and command line options are now described.

13 years agotransfer-encoding: added new option and cmdline
Daniel Stenberg [Thu, 14 Apr 2011 20:45:42 +0000 (22:45 +0200)]
transfer-encoding: added new option and cmdline

Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer
Encoding in HTTP requests (if built zlib enabled). I also renamed
CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name
around) to reduce the confusion when we have to encoding options for
HTTP.

--tr-encoding is now the new command line option for curl to request
this, and thus I updated the test cases accordingly.

13 years agoCURLE_BAD_CONTENT_ENCODING: now used for transfer encoding too
Daniel Stenberg [Tue, 12 Apr 2011 20:09:18 +0000 (22:09 +0200)]
CURLE_BAD_CONTENT_ENCODING: now used for transfer encoding too

13 years agoTE: do the Connection: header
Daniel Stenberg [Mon, 11 Apr 2011 14:30:14 +0000 (16:30 +0200)]
TE: do the Connection: header

When TE: is inserted in the request, we must add a "Connection: TE" as
well to be HTTP 1.1 compliant. If a custom Connection: header is passed
in, we must use that and only append TE to it. Test case 1125 verifies
TE: + custom Connection:.

13 years agotest1124: verify gzip AND chunked transfer-encoding
Daniel Stenberg [Fri, 8 Apr 2011 20:58:06 +0000 (22:58 +0200)]
test1124: verify gzip AND chunked transfer-encoding

13 years agoTE: rename struct field content_encoding
Daniel Stenberg [Fri, 8 Apr 2011 20:50:40 +0000 (22:50 +0200)]
TE: rename struct field content_encoding

Since this struct member is used in the code to determine what and how
to decode automatically and since it is now also used for compressed
Transfer-Encodings, I renamed it to the more suitable 'auto_decoding'

13 years agoHTTP: add support for gzip and deflate Transfer-Encoding
Daniel Stenberg [Tue, 5 Apr 2011 21:24:52 +0000 (23:24 +0200)]
HTTP: add support for gzip and deflate Transfer-Encoding

Transfer-Encoding differs from Content-Encoding in a few subtle ways,
but primarily it concerns the transfer only and not the content so when
discovered to be compressed we know we have to uncompress it. There will
only arrive compressed transfers in a response after we have requested
them with the appropriate TE: header.

Test case 1122 and 1123 verify.

13 years agoOS400 pragma comment: replace (date) by (user, __DATE__) to include year.
Patrick Monnerat [Mon, 18 Apr 2011 14:52:27 +0000 (16:52 +0200)]
OS400 pragma comment: replace (date) by (user, __DATE__) to include year.

13 years agoAugment RPG binding with "OLDIES" definitions.
Patrick Monnerat [Mon, 18 Apr 2011 13:54:45 +0000 (15:54 +0200)]
Augment RPG binding with "OLDIES" definitions.
Fix OS400 LDAP wrappers: strings were non null-terminated.

13 years agocurl-config: fix --version
Daniel Stenberg [Mon, 18 Apr 2011 07:03:12 +0000 (09:03 +0200)]
curl-config: fix --version

curl-config --version didn't output the correct version string (bug
introduced in commit 0355e33b5f7b234cf3), and unfortunately the test
case 1022 that was supposed to check for this was broken.

This change fixes the test to detect this problem and it fixes the
output.

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

13 years agoRELEASE-NOTES: updated contributor amount
Daniel Stenberg [Sun, 17 Apr 2011 21:48:50 +0000 (23:48 +0200)]
RELEASE-NOTES: updated contributor amount

13 years agoTHANKS: 11 new contributors from 7.21.5
Daniel Stenberg [Sun, 17 Apr 2011 21:46:21 +0000 (23:46 +0200)]
THANKS: 11 new contributors from 7.21.5

13 years ago7.21.6: next planned release number
Daniel Stenberg [Sun, 17 Apr 2011 21:44:24 +0000 (23:44 +0200)]
7.21.6: next planned release number

13 years agobase64.c: removed wrong comment
Daniel Stenberg [Sun, 17 Apr 2011 21:03:33 +0000 (23:03 +0200)]
base64.c: removed wrong comment

13 years agoINTERNALS: clean up
Daniel Stenberg [Sun, 17 Apr 2011 14:34:25 +0000 (16:34 +0200)]
INTERNALS: clean up

Clarified the release procedure

13 years agoTODO-RELEASE: push the remaining ones to next release
Daniel Stenberg [Sat, 16 Apr 2011 16:46:08 +0000 (18:46 +0200)]
TODO-RELEASE: push the remaining ones to next release

As we're closing in on the release, I give up on the remaining ones but
I leave them in here for now to try to fix for next release.

I removed the 281 issue about warnings from the statical analyzer scans,
as they seem to be mostly false positives at this point.

13 years agoRELEASE-NOTES: synced with c246f63a71
Daniel Stenberg [Fri, 15 Apr 2011 22:15:44 +0000 (00:15 +0200)]
RELEASE-NOTES: synced with c246f63a71

13 years agoCurl_ssl_shutdown: restore send/recv pointers
Daniel Stenberg [Fri, 15 Apr 2011 14:41:27 +0000 (16:41 +0200)]
Curl_ssl_shutdown: restore send/recv pointers

When going back from SSL, put the send/recv function pointers back to
the plain versions.

Bug: http://curl.haxx.se/mail/lib-2011-04/0070.html
Reported by: Mehmet Bozkurt

13 years agoChanged email per Gisle's request.
Guenter Knauf [Thu, 14 Apr 2011 03:27:40 +0000 (05:27 +0200)]
Changed email per Gisle's request.

13 years agocurl.1: error code update
Daniel Stenberg [Thu, 14 Apr 2011 21:16:21 +0000 (23:16 +0200)]
curl.1: error code update

Error 4 has got a meaning

Error 48 has got a slightly different meaning now

13 years agoFAQ: c-ares does ipv6 pretty well now
Daniel Stenberg [Thu, 14 Apr 2011 21:12:27 +0000 (23:12 +0200)]
FAQ: c-ares does ipv6 pretty well now

13 years agoFix a buffer overflow in pubkey_show().
Andrei Benea [Thu, 14 Apr 2011 20:09:02 +0000 (23:09 +0300)]
Fix a buffer overflow in pubkey_show().

13 years agoReplaced var manipulations with perlish hacks.
Guenter Knauf [Wed, 13 Apr 2011 23:27:39 +0000 (01:27 +0200)]
Replaced var manipulations with perlish hacks.

13 years agoUpdated minimum binary sizes
Dan Fandrich [Wed, 13 Apr 2011 01:46:58 +0000 (18:46 -0700)]
Updated minimum binary sizes

13 years agoconfigure: libssh2 link fix without pkg-config
Daniel Stenberg [Tue, 12 Apr 2011 20:10:29 +0000 (22:10 +0200)]
configure: libssh2 link fix without pkg-config

The script didn't properly add the -lssh2 link option when it enabled
libssh2 linking where pkg-config isn't found.

Reported by: Saqib Ali
Bug: http://curl.haxx.se/mail/lib-2011-04/0054.html

13 years agoRELEASE-NOTES: synced with f01df197981
Daniel Stenberg [Mon, 11 Apr 2011 20:38:07 +0000 (22:38 +0200)]
RELEASE-NOTES: synced with f01df197981

13 years agocheckconnection: don't call with NULL pointer
Daniel Stenberg [Mon, 11 Apr 2011 11:17:55 +0000 (13:17 +0200)]
checkconnection: don't call with NULL pointer

When checking if an existing RTSP connection is alive or not, the
checkconnection function might be called with a SessionHandle pointer
being NULL and then referenced causing a crash. This happened only using
the multi interface.

Reported by: Tinus van den Berg

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

13 years agocurl.1: spell out the -O target directory
Daniel Stenberg [Mon, 11 Apr 2011 08:35:16 +0000 (10:35 +0200)]
curl.1: spell out the -O target directory

When using -O the file will be saved in the current directory, and this
is now spelled out clearly.

13 years agoOpenSSL: no-sslv2 aware
Daniel Stenberg [Sun, 10 Apr 2011 17:14:22 +0000 (19:14 +0200)]
OpenSSL: no-sslv2 aware

Allow openSSL without SSL2 to be used. This fix is inspired by the fix
provided by Cristian Rodríguez.

Reported by: Cristian Rodríguez

13 years agocurl_easy_setopt.3: CURLOPT_RESOLVE typo version
Daniel Stenberg [Sat, 9 Apr 2011 18:04:22 +0000 (20:04 +0200)]
curl_easy_setopt.3: CURLOPT_RESOLVE typo version

Reported by: Hongli Lai

13 years agonss: allow to use multiple client certificates for a single host
Kamil Dudka [Fri, 1 Apr 2011 14:31:28 +0000 (16:31 +0200)]
nss: allow to use multiple client certificates for a single host

In case a client certificate is used, invalidate SSL session cache
at the end of a session.  This forces NSS to ask for a new client
certificate when connecting second time to the same host.

Bug: https://bugzilla.redhat.com/689031

13 years agomk-ca-bundle.pl: show full URL in output
Daniel Stenberg [Thu, 7 Apr 2011 20:42:22 +0000 (22:42 +0200)]
mk-ca-bundle.pl: show full URL in output

When I decided to search for a potential error with the cacert bundle it
struck me I wanted to see the full source URL in the output...

13 years agoAdded mention of FTP proxies
Dan Fandrich [Thu, 7 Apr 2011 18:31:39 +0000 (11:31 -0700)]
Added mention of FTP proxies

13 years agosrc/Makefile.b32: updates
Gisle Vanem [Thu, 7 Apr 2011 13:19:21 +0000 (15:19 +0200)]
src/Makefile.b32: updates

* Rename the object object directory from 'objs' to 'BCC_obj' to be in
 sync with my previous patch for lib/Makefile.b32.

* Turn off these warnings to keep the build totally silent (with CBuilder-6
 that is).
  -w-inl    8026 Functions X are not expanded inline.
  -w-pia   8060 Possibly incorrect assignment
  -w-pin  8061 Initialization is only partially bracketed
 (same added in src/Makefile.b32)

* $(MKDIR) and $(RMDIR) have been replaced with the shell-commands 'md'
 and 'rd'. When having MingW/Msys programs 'mkdir.exe' and 'rmdir.exe' in
$PATH, this confuses Borland's make and the result (the cleaning etc.) would
 not be as expected.

* Removed the preprocessing step; no need for PP_CMD and the .int files.
 curl.exe builds fine w/o and the makefile gets simpler.

* Added a target for creating a compressed hugehelp.c if WITH_ZLIB is  defined.
It assumes groff, gzip and perl is available if such an "advanced"  users
requests it. Okay? BTW. My groff and Perl needs unix-slashes ('/').
 Other perls should handle both forms ('/' and '\').

13 years agolib/Makefile.b32: updates
Gisle Vanem [Thu, 7 Apr 2011 13:17:58 +0000 (15:17 +0200)]
lib/Makefile.b32: updates

* Rename the object object directory from 'objs' to 'BCC_obj'. I feel
 it should be named properly. Ref. Makefile.Watcom where it's called
 'WC_Win32.obj'.

* Turn off these warnings to keep the build totally silent (with CBuilder-6
 that is).
  -w-inl    8026 Functions X are not expanded inline.
  -w-pia   8060 Possibly incorrect assignment
  -w-pin  8061 Initialization is only partially bracketed

I'm sure the warnings could be fixed the "proper" way or with some added
"#pragma" statements. But that just clutters the sources IMHO.

* $(MKDIR) and $(RMDIR) have been replaced with the shell-commands 'md'
 and 'rd'. When having MingW/Msys programs 'mkdir.exe' and 'rmdir.exe' in
$PATH, this confuses Borland's make and the result (the cleaning etc.) would
 not be as expected.

* Added a ".path.int = $(OBJDIR)" to tell make where the $(PREPROCESSED)
 files are. Why we need the preprocess step in the fist place is beyond me
(Yang?). But I'll leave that for now.

13 years agoexamples/makefile.dj: update email
Gisle Vanem [Thu, 7 Apr 2011 13:16:38 +0000 (15:16 +0200)]
examples/makefile.dj: update email

13 years agoTODO-RELEASE: deleted 4 issues
Daniel Stenberg [Thu, 7 Apr 2011 12:25:19 +0000 (14:25 +0200)]
TODO-RELEASE: deleted 4 issues

These problems have gotten no interest/feedback from users:

-275 - Introduce a way to avoid sending USER for FTP connections
-288 - bug 3219997 curl rtmp request curl: (55) select/poll returned error

This problem is rather an autoconf bug with little user interest and it
can be worked around with an older autoconf:

-278 - "Configure  $as_echo does not work"

This problem is not fixed:

-286 - bug 3214223 Pipelined HTTP requests with a zero-length body broken

13 years agoHTTP pipelining: Fix handling of zero-length responses
Chris Smowton [Thu, 7 Apr 2011 12:17:05 +0000 (14:17 +0200)]
HTTP pipelining: Fix handling of zero-length responses

Also add test case 584 for the same

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

13 years agolibcurl.pc: version number fix
Daniel Stenberg [Wed, 6 Apr 2011 10:09:27 +0000 (12:09 +0200)]
libcurl.pc: version number fix

This hasn't show the version number correctly since the $VERSION change
in the configure, and now it works again.

13 years agoChanged some nonportable types
Dan Fandrich [Wed, 6 Apr 2011 05:30:09 +0000 (22:30 -0700)]
Changed some nonportable types

13 years agoDon't list NTLM in curl-config when HTTP is disabled
Dan Fandrich [Wed, 6 Apr 2011 05:28:26 +0000 (22:28 -0700)]
Don't list NTLM in curl-config when HTTP is disabled

Also, fixed Curl_proxyCONNECT() stub with HTTP disabled.

13 years agoFixed compatibility macro CURLE_URL_MALFORMAT_USER
Dan Fandrich [Tue, 5 Apr 2011 21:44:25 +0000 (14:44 -0700)]
Fixed compatibility macro CURLE_URL_MALFORMAT_USER

13 years agoreturn code cleanup: build, init and run-time errors
Daniel Stenberg [Tue, 5 Apr 2011 13:14:02 +0000 (15:14 +0200)]
return code cleanup: build, init and run-time errors

Stop the abuse of CURLE_FAILED_INIT as return code for things not being
init related by introducing two new return codes:

CURLE_NOT_BUILT_IN and CURLE_UNKNOWN_OPTION

CURLE_NOT_BUILT_IN replaces return code 4 that has been obsoleted for
several years. It is used for returning error when something is
attempted to be used but the feature/option was not enabled or
explictitly disabled at build-time. Getting this error mostly means that
libcurl needs to be rebuilt.

CURLE_FAILED_INIT is now saved and used strictly for init
failures. Getting this problem means something went seriously wrong,
like a resource shortage or similar.

CURLE_UNKNOWN_OPTION is the option formerly known as
CURLE_UNKNOWN_TELNET_OPTION (and the old name is still present,
separately defined to be removed in a very distant future). This error
code is meant to be used to return when an option is given to libcurl
that isn't known. This problem would mostly indicate a problem in the
program that uses libcurl.

13 years agoFTP+proxy: macrofied functions when proxy disabled
Daniel Stenberg [Tue, 5 Apr 2011 11:55:11 +0000 (13:55 +0200)]
FTP+proxy: macrofied functions when proxy disabled

In my attempts to reduce #ifdefs in code, the SOCKS functions are now
macros when libcurl is built without proxy support and therefore the FTP
code could avoid some #ifs.

13 years agoRELEASE-NOTES: synced with db59b6202d8
Daniel Stenberg [Tue, 5 Apr 2011 11:42:39 +0000 (13:42 +0200)]
RELEASE-NOTES: synced with db59b6202d8

13 years ago[pop3 starttls] PASS command was not sent after upgrade to TLS.
Ben Noordhuis [Thu, 17 Mar 2011 22:07:56 +0000 (23:07 +0100)]
[pop3 starttls] PASS command was not sent after upgrade to TLS.

13 years ago[pop3 starttls] the command to send is STLS, not STARTTLS.
Ben Noordhuis [Thu, 17 Mar 2011 21:35:18 +0000 (22:35 +0100)]
[pop3 starttls] the command to send is STLS, not STARTTLS.

13 years agoAdded http_proxy.c to the Symbian build files
Dan Fandrich [Mon, 4 Apr 2011 22:00:20 +0000 (15:00 -0700)]
Added http_proxy.c to the Symbian build files

13 years agohttp-proxy: move proxy code to http_proxy.c
Daniel Stenberg [Mon, 4 Apr 2011 14:24:37 +0000 (16:24 +0200)]
http-proxy: move proxy code to http_proxy.c

The new http_proxy.* files now host HTTP proxy specific code (500+ lines
moved out from http.c), and as a consequence there is a macro introduced
for the Curl_proxyCONNECT() function so that code can use it without
actually supporting proxy (or HTTP) in builds.

13 years agodisable cookies: remove ifdefs, move code
Daniel Stenberg [Mon, 4 Apr 2011 13:46:42 +0000 (15:46 +0200)]
disable cookies: remove ifdefs, move code

1 - make sure to #define macros for cookie functions in the cookie
header when cookies are disabled to avoid having to use #ifdefs in code
using those functions.

2 - move cookie-specific code to cookie.c and use the functio
conditionally as mentioned in (1).

net result: 6 #if lines removed, and 9 lines of code less

13 years agonss: fix a crash within SSL_AuthCertificate()
Kamil Dudka [Mon, 4 Apr 2011 16:24:32 +0000 (18:24 +0200)]
nss: fix a crash within SSL_AuthCertificate()

The bug was introduced in 806dbb0 (a wrong value was passed in as the
first argument to the default callback in our wrapper).

13 years agomulti: shorten lines
Daniel Stenberg [Sat, 2 Apr 2011 22:07:32 +0000 (00:07 +0200)]
multi: shorten lines

We keep them less than 80 columns

13 years agomulti: conn goes bad when data change
Daniel Stenberg [Sat, 2 Apr 2011 21:44:11 +0000 (23:44 +0200)]
multi: conn goes bad when data change

Within multi_socket when conn is used as a shorthand, data could be
changed and multi_runsingle could modify the connectdata struct to deal
with. This bug has not been included in a public release.

Using 'conn' like that turned out to be ugly. This change is a partial
revert of commit f1c6cd42f474df59.

Reported by: Miroslav Spousta
Bug: http://curl.haxx.se/bug/view.cgi?id=3265485

13 years agoIncreased script version.
Guenter Knauf [Fri, 1 Apr 2011 13:04:53 +0000 (15:04 +0200)]
Increased script version.

13 years agoMake use of proxy vars if set.
Guenter Knauf [Fri, 1 Apr 2011 12:58:36 +0000 (14:58 +0200)]
Make use of proxy vars if set.

Posted to the list by Quanah Gibson-Mount [quanah zimbra.com].

13 years agoUse var again instead of hard-coded filename.
Guenter Knauf [Fri, 1 Apr 2011 12:38:01 +0000 (14:38 +0200)]
Use var again instead of hard-coded filename.

13 years agotypo fix
Gisle Vanem [Tue, 29 Mar 2011 11:08:01 +0000 (13:08 +0200)]
typo fix

13 years agocurl_easy_setopt.3: mention TFTP read callback flaw
Daniel Stenberg [Tue, 29 Mar 2011 09:19:49 +0000 (11:19 +0200)]
curl_easy_setopt.3: mention TFTP read callback flaw

The read callback must return the exact requested amount of data when it
is used for doing TFTP uploads. This is due to how it deals with data
internally. This could/should be fixed but for now we document the
existing behavior.

Reported by: Colin Blair
Bug: http://curl.haxx.se/mail/lib-2011-03/0319.html

13 years agoconfigure: fix libtool warning
Yang Tse [Sun, 27 Mar 2011 02:36:14 +0000 (04:36 +0200)]
configure: fix libtool warning

13 years agoTSL-SRP: enabled with OpenSSL
Peter Sylvester [Fri, 25 Mar 2011 22:09:28 +0000 (23:09 +0100)]
TSL-SRP: enabled with OpenSSL

If a new enough OpenSSL version is used, configure detects the TLS-SRP
support and enables it.

13 years agoRELEASE-NOTES: synced with 11c2db2aa2a
Daniel Stenberg [Fri, 25 Mar 2011 20:56:50 +0000 (21:56 +0100)]
RELEASE-NOTES: synced with 11c2db2aa2a