platform/upstream/curl.git
11 years agodarwinssl: additional descriptive messages of SSL handshake errors
Nick Zitzmann [Tue, 2 Apr 2013 00:24:32 +0000 (18:24 -0600)]
darwinssl: additional descriptive messages of SSL handshake errors

(This doesn't need to appear in the release notes.)

11 years agoAdded dns and connect time to output.
Guenter Knauf [Mon, 1 Apr 2013 12:54:01 +0000 (14:54 +0200)]
Added dns and connect time to output.

11 years agoRELEASE-NOTES: synced with 0614b902136
Daniel Stenberg [Sun, 31 Mar 2013 22:36:50 +0000 (00:36 +0200)]
RELEASE-NOTES: synced with 0614b902136

11 years agocode-policed
Daniel Stenberg [Sun, 31 Mar 2013 22:36:39 +0000 (00:36 +0200)]
code-policed

11 years agotcpkeepalive: support TCP_KEEPIDLE/TCP_KEEPINTVL on win32
Daniel Stenberg [Sun, 31 Mar 2013 21:17:16 +0000 (23:17 +0200)]
tcpkeepalive: support TCP_KEEPIDLE/TCP_KEEPINTVL on win32

Patch by: Robert Wruck
Bug: http://curl.haxx.se/bug/view.cgi?id=1209

11 years agoBINDINGS: BBHTTP is a cocoa binding, Julia has a binding
Daniel Stenberg [Sat, 30 Mar 2013 21:04:56 +0000 (22:04 +0100)]
BINDINGS: BBHTTP is a cocoa binding, Julia has a binding

11 years agoftp_sendquote: use PPSENDF, not FTPSENDF
Daniel Stenberg [Fri, 29 Mar 2013 20:19:45 +0000 (21:19 +0100)]
ftp_sendquote: use PPSENDF, not FTPSENDF

The last remaining code piece that still used FTPSENDF now uses PPSENDF.
In the problematic case, a PREQUOTE series was done on a re-used
connection when Curl_pp_init() hadn't been called so it had messed up
pointers. The init call is done properly from Curl_pp_sendf() so this
change fixes this particular crash.

Bug: http://curl.haxx.se/mail/lib-2013-03/0319.html
Reported by: Sam Deane

11 years agoRELEASE-NOTES: Corrected typo
Steve Holme [Wed, 27 Mar 2013 20:35:28 +0000 (20:35 +0000)]
RELEASE-NOTES: Corrected typo

11 years agomulti-uv.c: remove unused variable
Clemens Gruber [Wed, 27 Mar 2013 13:04:34 +0000 (14:04 +0100)]
multi-uv.c: remove unused variable

11 years agoRELEASE-NOTES: add two references
Daniel Stenberg [Sun, 10 Mar 2013 18:48:09 +0000 (19:48 +0100)]
RELEASE-NOTES: add two references

11 years agotest1509: verify proxy header response headers count
Daniel Stenberg [Fri, 15 Mar 2013 16:28:32 +0000 (17:28 +0100)]
test1509: verify proxy header response headers count

Modified sws to support and use custom CONNECT responses instead of the
previously naive hard-coded version. Made the HTTP test server able to
extract test case number from the host name in a CONNECT request by
finding the number after the last dot. It makes 'machine.moo.123' use
test case 123.

Adapted a larger amount of tests to the new <connect> style.

Bug: http://curl.haxx.se/bug/view.cgi?id=1204
Reported by: Martin Jansen

11 years agoAdded libuv example multi-uv.c
Clemens Gruber [Tue, 26 Mar 2013 22:22:30 +0000 (23:22 +0100)]
Added libuv example multi-uv.c

11 years agoNTLM: fix several NTLM code paths memory leaks
Yang Tse [Sun, 24 Mar 2013 03:47:57 +0000 (04:47 +0100)]
NTLM: fix several NTLM code paths memory leaks

11 years agoWIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage
Yang Tse [Mon, 25 Mar 2013 02:15:52 +0000 (03:15 +0100)]
WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage

As of 25-mar-2013 wcsdup() _wcsdup() and _tcsdup() are only used in
WIN32 specific code, so tracking of these has not been extended for
other build targets. Without this fix, memory tracking system on
WIN32 builds, when using these functions, would provide misleading
results.

In order to properly extend this support for all targets curl.h
would have to define curl_wcsdup_callback prototype and consequently
wchar_t should be visible before that in curl.h.  IOW curl_wchar_t
defined in curlbuild.h and this pulling whatever system header is
required to get wchar_t definition.

Additionally a new curl_global_init_mem() function that also receives
user defined wcsdup() callback would be required.

11 years agocurl_ntlm_msgs.c: revert commit 463082bea4
Yang Tse [Sat, 23 Mar 2013 00:44:57 +0000 (01:44 +0100)]
curl_ntlm_msgs.c: revert commit 463082bea4

reverts unreleased invalid memory leak fix

11 years agoRELEASE-NOTES: synced with bc6037ed3ec02
Daniel Stenberg [Sat, 23 Mar 2013 22:29:40 +0000 (23:29 +0100)]
RELEASE-NOTES: synced with bc6037ed3ec02

More changes, bugfixes and contributors!

11 years agoCurl_proxyCONNECT: count received headers
Martin Jansen [Wed, 6 Mar 2013 20:20:44 +0000 (21:20 +0100)]
Curl_proxyCONNECT: count received headers

Proxy servers tend to add their own headers at the beginning of
responses. The size of these headers was not taken into account by
CURLINFO_HEADER_SIZE before this change.

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

11 years agosasl: Corrected a few violations of the curl coding standards
Steve Holme [Thu, 21 Mar 2013 22:21:22 +0000 (22:21 +0000)]
sasl: Corrected a few violations of the curl coding standards

Corrected some incorrectly positioned pointer variable declarations to
be "char *" rather than "char* ".

11 years agomulti.c: Corrected a couple of violations of the curl coding standards
Steve Holme [Thu, 21 Mar 2013 19:14:03 +0000 (19:14 +0000)]
multi.c: Corrected a couple of violations of the curl coding standards

Corrected some incorrectly positioned pointer variable declarations to
be "type *" rather than "type* ".

11 years agoimap-tests: Added CRLF to reply data to be compliant with RFC-822
Steve Holme [Thu, 21 Mar 2013 12:42:32 +0000 (12:42 +0000)]
imap-tests: Added CRLF to reply data to be compliant with RFC-822

Updated the reply data in tests: 800, 801, 802, 804 and 1321 to possess
the CRLF as per RFC-822.

11 years agomulti.c: Fix compilation warning
Steve Holme [Thu, 21 Mar 2013 07:33:45 +0000 (07:33 +0000)]
multi.c: Fix compilation warning

warning: an enumerated type is mixed with another type

11 years agomulti.c: fix compilation error
Steve Holme [Wed, 20 Mar 2013 23:36:46 +0000 (23:36 +0000)]
multi.c: fix compilation error

warning: conversion from enumeration type to different enumeration type

11 years agolib1900.c: fix compilation warning
Steve Holme [Wed, 20 Mar 2013 23:32:48 +0000 (23:32 +0000)]
lib1900.c: fix compilation warning

warning: declaration of 'time' shadows a global declaration

11 years agobuild_vms.com: use existing curlbuild.h and parsing fix
John E. Malmberg [Wed, 20 Mar 2013 19:36:20 +0000 (20:36 +0100)]
build_vms.com: use existing curlbuild.h and parsing fix

This patch removes building curlbuild.h from the build_vms.com procedure
and uses the one in the daily or release tarball instead.

packages/vms/build_curlbuild_h.com is obsolete with this change.

Accessing the library module name "tool_main" needs different handling
when the optional extended parsing is enabled.

Tested on IA64/VMS 8.4 and VAX/VMS 7.3

11 years agodarwinssl: disable ECC ciphers under Mountain Lion by default
Nick Zitzmann [Tue, 19 Mar 2013 21:21:34 +0000 (15:21 -0600)]
darwinssl: disable ECC ciphers under Mountain Lion by default

I found out that ECC doesn't work as of OS X 10.8.3, so those ciphers are
turned off until the next point release of OS X.

11 years agoFEATURES: Small tidy up for constancy and grammar
Steve Holme [Mon, 18 Mar 2013 22:43:16 +0000 (22:43 +0000)]
FEATURES: Small tidy up for constancy and grammar

11 years agoCurl_proxyCONNECT: clear 'rewindaftersend' on success
Oliver Schindler [Mon, 18 Mar 2013 21:40:35 +0000 (22:40 +0100)]
Curl_proxyCONNECT: clear 'rewindaftersend' on success

After having done a POST over a CONNECT request, the 'rewindaftersend'
boolean could be holding the previous value which could lead to badness.

This should be tested for in a new test case!

Bug: https://groups.google.com/d/msg/msysgit/B31LNftR4BI/KhRTz0iuGmUJ

11 years agoTODO: Reordered the protocol and security sections
Steve Holme [Mon, 18 Mar 2013 21:43:34 +0000 (21:43 +0000)]
TODO: Reordered the protocol and security sections

Moved SMTP, POP3, IMAP and New Protocol sections to be listed after the
other protocols (FTP, HTTP and TELNET) and SASL to be after SSL and
GnuTLS as these are all security related.

Additionally fixed numbering of the SSL and GnuTLS sections as they
weren't consecutive.

11 years agotests: specify 'text' mode for some output files in verify section
Yang Tse [Mon, 18 Mar 2013 19:44:46 +0000 (20:44 +0100)]
tests: specify 'text' mode for some output files in verify section

11 years agoimap: Fixed incorrect initial response generation for SASL AUTHENTICATE
Steve Holme [Sun, 17 Mar 2013 00:20:42 +0000 (00:20 +0000)]
imap: Fixed incorrect initial response generation for SASL AUTHENTICATE

Fixed incorrect initial response generation for the NTLM and LOGIN SASL
authentication mechanisms when the SASL-IR was detected.

Introduced in commit: 6da7dc026c14.

11 years agoFEATURES: Expanded the supported enhanced IMAP command list
Steve Holme [Sat, 16 Mar 2013 11:42:17 +0000 (11:42 +0000)]
FEATURES: Expanded the supported enhanced IMAP command list

11 years agoTODO: Corrected typo in TOC
Steve Holme [Sat, 16 Mar 2013 10:36:25 +0000 (10:36 +0000)]
TODO: Corrected typo in TOC

11 years agoTODO: Added IMAP section and removed unused Other protocols section
Steve Holme [Sat, 16 Mar 2013 10:18:43 +0000 (10:18 +0000)]
TODO: Added IMAP section and removed unused Other protocols section

11 years agoTODO: Added graceful base64 decoding failure to SMTP and POP3
Steve Holme [Sat, 16 Mar 2013 00:28:16 +0000 (00:28 +0000)]
TODO: Added graceful base64 decoding failure to SMTP and POP3

11 years agoTODO: Corrected typo on section 10.2 heading
Steve Holme [Sat, 16 Mar 2013 00:02:40 +0000 (00:02 +0000)]
TODO: Corrected typo on section 10.2 heading

11 years agotests: 96, 558, 1330: strip build subdirectory dependent leading path
Yang Tse [Fri, 15 Mar 2013 23:59:17 +0000 (00:59 +0100)]
tests: 96, 558, 1330: strip build subdirectory dependent leading path

11 years agoTODO: Added section 10.2 Initial response to POP3 to do list
Steve Holme [Fri, 15 Mar 2013 23:55:31 +0000 (23:55 +0000)]
TODO: Added section 10.2 Initial response to POP3 to do list

11 years agoimap-tests: Corrected copy/paste error in test808 reply data
Steve Holme [Fri, 15 Mar 2013 20:08:54 +0000 (20:08 +0000)]
imap-tests: Corrected copy/paste error in test808 reply data

11 years agounit1330.c: fix date
Yang Tse [Fri, 15 Mar 2013 19:05:03 +0000 (20:05 +0100)]
unit1330.c: fix date

11 years agotests: add #96 #558 and #1330
Yang Tse [Fri, 15 Mar 2013 18:58:00 +0000 (19:58 +0100)]
tests: add #96 #558 and #1330

These verfy that the 'memory tracking' subsystem is actually doing its
job when using curl tool (#96), a test in libtest (#558) and also a unit
test (#1330), in order to prevent regressions in this functionallity.

11 years agoimap-tests: Added test808 for custom EXAMINE command
Steve Holme [Fri, 15 Mar 2013 18:12:58 +0000 (18:12 +0000)]
imap-tests: Added test808 for custom EXAMINE command

11 years agoHTTP proxy: insert slash in URL if missing
Daniel Stenberg [Fri, 15 Mar 2013 13:18:16 +0000 (14:18 +0100)]
HTTP proxy: insert slash in URL if missing

curl has been accepting URLs using slightly wrong syntax for a long
time, such as when completely missing as slash "http://example.org" or
missing a slash when a query part is given
"http://example.org?q=foobar".

curl would translate these into a legitimate HTTP request to servers,
although as was shown in bug #1206 it was not adjusted properly in the
cases where a HTTP proxy was used.

Test 1213 and 1214 were added to the test suite to verify this fix.

The test HTTP server was adjusted to allow us to specify test number in
the host name only without using any slashes in a given URL.

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

11 years agoftpserver.pl: Added EXAMINE_imap() for IMAP EXAMINE commands
Steve Holme [Thu, 14 Mar 2013 22:49:57 +0000 (22:49 +0000)]
ftpserver.pl: Added EXAMINE_imap() for IMAP EXAMINE commands

Used hard coded data from RFC-3501 section 6.3.2.

11 years agocurl_memory.h: introduce CURLX_NO_MEMORY_CALLBACKS usage possibility
Yang Tse [Thu, 7 Feb 2013 19:12:04 +0000 (20:12 +0100)]
curl_memory.h: introduce CURLX_NO_MEMORY_CALLBACKS usage possibility

This commit alone does not fix anything nor modifies existing
interfaces or behaviors, although it is a prerequisite for other
fixes.

11 years agoMakefile.vc6: add missing files
Yang Tse [Thu, 14 Mar 2013 17:35:01 +0000 (18:35 +0100)]
Makefile.vc6: add missing files

11 years agopipelining: Remove dead code.
Linus Nielsen Feltzing [Thu, 14 Mar 2013 12:30:59 +0000 (13:30 +0100)]
pipelining: Remove dead code.

11 years agoMultiple pipelines and limiting the number of connections.
Linus Nielsen Feltzing [Fri, 15 Feb 2013 10:50:45 +0000 (11:50 +0100)]
Multiple pipelines and limiting the number of connections.

Introducing a number of options to the multi interface that
allows for multiple pipelines to the same host, in order to
optimize the balance between the penalty for opening new
connections and the potential pipelining latency.

Two new options for limiting the number of connections:

CURLMOPT_MAX_HOST_CONNECTIONS - Limits the number of running connections
to the same host. When adding a handle that exceeds this limit,
that handle will be put in a pending state until another handle is
finished, so we can reuse the connection.

CURLMOPT_MAX_TOTAL_CONNECTIONS - Limits the number of connections in total.
When adding a handle that exceeds this limit,
that handle will be put in a pending state until another handle is
finished. The free connection will then be reused, if possible, or
closed if the pending handle can't reuse it.

Several new options for pipelining:

CURLMOPT_MAX_PIPELINE_LENGTH - Limits the pipeling length. If a
pipeline is "full" when a connection is to be reused, a new connection
will be opened if the CURLMOPT_MAX_xxx_CONNECTIONS limits allow it.
If not, the handle will be put in a pending state until a connection is
ready (either free or a pipe got shorter).

CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE - A pipelined connection will not
be reused if it is currently processing a transfer with a content
length that is larger than this.

CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE - A pipelined connection will not
be reused if it is currently processing a chunk larger than this.

CURLMOPT_PIPELINING_SITE_BL - A blacklist of hosts that don't allow
pipelining.

CURLMOPT_PIPELINING_SERVER_BL - A blacklist of server types that don't allow
pipelining.

See the curl_multi_setopt() man page for details.

11 years agotool_main.c: remove redundant vms_show storage-class specifier
Yang Tse [Wed, 13 Mar 2013 22:35:24 +0000 (23:35 +0100)]
tool_main.c: remove redundant vms_show storage-class specifier

vms_show 'extern' storage-class specifier removed from tool_main.c due to...

- Advice from Tor Arntsen: http://curl.haxx.se/mail/lib-2013-03/0164.html

- HP OpenVMS docs stating that 'Extern is the default storage class for
  variables declared outside a function.'
  http://h71000.www7.hp.com/commercial/c/docs/dec_c_help_5.html
  (Storage_Classes section)

11 years agotest509: libcurl initialization with memory callbacks and actual usage
Yang Tse [Wed, 13 Mar 2013 20:49:50 +0000 (21:49 +0100)]
test509: libcurl initialization with memory callbacks and actual usage

11 years agopop3: Removed unnecessary transfer cancellation
Steve Holme [Wed, 13 Mar 2013 20:19:43 +0000 (20:19 +0000)]
pop3: Removed unnecessary transfer cancellation

Following commit e450f66a02d8 and the changes in the multi interface
being used internally, from 7.29.0, the transfer cancellation in
pop3_dophase_done() is no longer required.

11 years agoMakefile.am: add VMS files not being included in tarball
Yang Tse [Wed, 13 Mar 2013 10:42:52 +0000 (11:42 +0100)]
Makefile.am: add VMS files not being included in tarball

11 years agobuild_vms.com: VMS build fixes
Tom Grace [Wed, 13 Mar 2013 03:58:51 +0000 (04:58 +0100)]
build_vms.com: VMS build fixes

Added missing slash in cc_full_list.
Removed unwanted extra quotes inside symbol tool_main
for non-VAX architectures that triggered link failure.
Replaced curl_sys_inc with sys_inc.

11 years agotool_main.c: fix VMS global variable storage-class specifier
Tom Grace [Wed, 13 Mar 2013 02:13:52 +0000 (03:13 +0100)]
tool_main.c: fix VMS global variable storage-class specifier

An extern submits a psect and a global reference to the linker to point
to it. Using "extern int vms_show = 0" also creates a globaldef.

The use of the extern by itself does declare a psect but does not declare
a globalsymbol. It does declare a globalref. But the linker needs one and
only one globaldef or there is an error.

11 years agoOS400: synchronize RPG binding
Patrick Monnerat [Tue, 12 Mar 2013 14:37:34 +0000 (15:37 +0100)]
OS400: synchronize RPG binding

11 years agopop3: Fixed continuous wait when using --ftp-list
Steve Holme [Tue, 12 Mar 2013 13:09:03 +0000 (13:09 +0000)]
pop3: Fixed continuous wait when using --ftp-list

Don't initiate a transfer when using --ftp-list.

11 years agocurl_global_init: accept the CURL_GLOBAL_ACK_EINTR flag
Zdenek Pavlas [Mon, 11 Mar 2013 13:57:07 +0000 (14:57 +0100)]
curl_global_init: accept the CURL_GLOBAL_ACK_EINTR flag

The flag can be used in pycurl-based applications where using the multi
interface would not be acceptable because of the performance lost caused
by implementing the select() loop in python.

Bug: http://curl.haxx.se/bug/view.cgi?id=1168
Downstream Bug: https://bugzilla.redhat.com/919127

11 years agoeasy: do not ignore poll() failures other than EINTR
Kamil Dudka [Mon, 11 Mar 2013 15:57:25 +0000 (16:57 +0100)]
easy: do not ignore poll() failures other than EINTR

11 years agocurl.h: stricter CURL_EXTERN linkage decorations logic
Yang Tse [Mon, 11 Mar 2013 23:24:37 +0000 (00:24 +0100)]
curl.h: stricter CURL_EXTERN linkage decorations logic

No API change involved.

Info: http://curl.haxx.se/mail/lib-2013-02/0234.html

11 years agoTHANKS: Latin-1'ified Jiri's name
Daniel Stenberg [Mon, 11 Mar 2013 18:40:02 +0000 (19:40 +0100)]
THANKS: Latin-1'ified Jiri's name

11 years agotest806: Added CRLF to reply data to be compliant with RFC-822
Steve Holme [Mon, 11 Mar 2013 13:06:55 +0000 (13:06 +0000)]
test806: Added CRLF to reply data to be compliant with RFC-822

11 years agotest805: added crlf newlines to make data size match
Daniel Stenberg [Mon, 11 Mar 2013 12:26:15 +0000 (13:26 +0100)]
test805: added crlf newlines to make data size match

since mails sent are supposed to have CRLF line endings I added them and
now the data size after (\Seen) matches again properly

11 years agotest: fix newline for the data check of 807
Daniel Stenberg [Mon, 11 Mar 2013 12:23:51 +0000 (13:23 +0100)]
test: fix newline for the data check of 807

11 years agotest801 to test807: fix protocol section line endings
Yang Tse [Mon, 11 Mar 2013 11:48:36 +0000 (12:48 +0100)]
test801 to test807: fix protocol section line endings

11 years agoMakefile.am: Corrected a couple of spurious tab characters
Steve Holme [Sun, 10 Mar 2013 20:27:05 +0000 (20:27 +0000)]
Makefile.am: Corrected a couple of spurious tab characters

Corrected a couple of tab characters between test702 and test703, and
between test900 and test901 which should be spaces.

11 years agoimap: Added test807 for custom request functionality (STORE)
Jiri Hruska [Sun, 10 Mar 2013 20:22:10 +0000 (21:22 +0100)]
imap: Added test807 for custom request functionality (STORE)

11 years agoimap: Added test806 for IMAP (folder) LIST command
Jiri Hruska [Sun, 10 Mar 2013 20:13:59 +0000 (21:13 +0100)]
imap: Added test806 for IMAP (folder) LIST command

11 years agoimap: Added test805 for APPEND functionality
Jiri Hruska [Sun, 10 Mar 2013 20:02:55 +0000 (21:02 +0100)]
imap: Added test805 for APPEND functionality

11 years agoimap: Added test804 for skipping SELECT if in the same mailbox
Jiri Hruska [Sun, 10 Mar 2013 19:52:30 +0000 (20:52 +0100)]
imap: Added test804 for skipping SELECT if in the same mailbox

11 years agoimap: Added test802 and test803 for UIDVALIDITY verification
Jiri Hruska [Sun, 10 Mar 2013 19:40:28 +0000 (20:40 +0100)]
imap: Added test802 and test803 for UIDVALIDITY verification

Added one test for a request with matching UIDVALIDITY and one which is
a mismatched request that will fail.

11 years agoimap: Added test801 for UID and SECTION URL parameters
Jiri Hruska [Sun, 10 Mar 2013 19:37:41 +0000 (20:37 +0100)]
imap: Added test801 for UID and SECTION URL parameters

11 years agoimap-tests: Accept quoted parameters in ftpserver.pl
Jiri Hruska [Sun, 10 Mar 2013 19:29:31 +0000 (20:29 +0100)]
imap-tests: Accept quoted parameters in ftpserver.pl

Any IMAP parameter can come in escaped and in double quotes. Added a
simple function to unquote the command parameters and applied it to
the IMAP command handlers.

11 years agotests: Fix ftpserver.pl indentation
Jiri Hruska [Sun, 10 Mar 2013 19:23:27 +0000 (20:23 +0100)]
tests: Fix ftpserver.pl indentation

The whole of FETCH_imap() had one extra space of indentation, whilst
APPEND_imap() used indentation of 2 instead of 4 in places.

11 years agoMakefile.am: Corrected end of line filler character
Steve Holme [Sun, 10 Mar 2013 19:00:39 +0000 (19:00 +0000)]
Makefile.am: Corrected end of line filler character

The majority of lines, that specify a test file for inclusion, end with
a tab character before the slash whilst some end with a space. Corrected
those that end with a space to end with a tab character as well.

11 years agoemail-tests: Updated the test data that corresponds to the test number
Steve Holme [Sun, 10 Mar 2013 19:55:22 +0000 (19:55 +0000)]
email-tests: Updated the test data that corresponds to the test number

Finished segregating the email protocol tests, into their own protocol
based ranges, in preparation of adding more e-mail related tests to the
test suite.

11 years agoemail-tests: Renamed the IMAP test to be 800
Steve Holme [Sun, 10 Mar 2013 18:50:43 +0000 (18:50 +0000)]
email-tests: Renamed the IMAP test to be 800

Continued segregating the email protocol tests, into their own protocol
based ranges, in preparation of adding more e-mail related tests to the
test suite.

11 years agoemail-tests: Renamed the SMTP tests to be in the range 900-906
Steve Holme [Sun, 10 Mar 2013 18:48:08 +0000 (18:48 +0000)]
email-tests: Renamed the SMTP tests to be in the range 900-906

Continued segregating the email protocol tests, into their own protocol
based ranges, in preparation of adding more e-mail related tests to the
test suite.

11 years agoemail-tests: Renamed the POP3 tests to be in the range 850-857
Steve Holme [Sun, 10 Mar 2013 18:45:24 +0000 (18:45 +0000)]
email-tests: Renamed the POP3 tests to be in the range 850-857

Started segregating the email protocol tests, into their own protocol
based ranges, in preparation of adding more e-mail related tests to the
test suite.

11 years agohiperfifo: updated to use current libevent API
Daniel Stenberg [Sun, 10 Mar 2013 18:44:48 +0000 (19:44 +0100)]
hiperfifo: updated to use current libevent API

Patch by: Myk Taylor

11 years agoimap: Reworked some function descriptions
Steve Holme [Sun, 10 Mar 2013 12:56:45 +0000 (12:56 +0000)]
imap: Reworked some function descriptions

11 years agoimap: Added some missing comments to imap_sendf()
Steve Holme [Sun, 10 Mar 2013 12:47:28 +0000 (12:47 +0000)]
imap: Added some missing comments to imap_sendf()

11 years agoemail: Removed hard returns from init functions
Steve Holme [Sat, 9 Mar 2013 22:25:40 +0000 (22:25 +0000)]
email: Removed hard returns from init functions

11 years agocurl_multi_wait: avoid second loop if nothing to do
Daniel Stenberg [Sat, 9 Mar 2013 21:26:07 +0000 (22:26 +0100)]
curl_multi_wait: avoid second loop if nothing to do

... hopefully this will also make clang-analyzer stop warning on
potentional NULL dereferences (which were false positives anyway).

11 years agomulti_runsingle: avoid NULL dereference
Daniel Stenberg [Sat, 9 Mar 2013 17:05:28 +0000 (18:05 +0100)]
multi_runsingle: avoid NULL dereference

When Curl_do() returns failure, the connection pointer could be NULL so
the code path following needs to that that into account.

Bug: http://curl.haxx.se/mail/lib-2013-03/0062.html
Reported by: Eric Hu

11 years agoimap: Re-factored all perform based functions
Steve Holme [Sat, 9 Mar 2013 18:50:41 +0000 (18:50 +0000)]
imap: Re-factored all perform based functions

Standardised the naming of all perform based functions to be in the form
imap_perform_something().

11 years agoexamples/getinmemory.c: abort the transfer if not enough memory
Cédric Deltheil [Sun, 24 Feb 2013 17:17:30 +0000 (18:17 +0100)]
examples/getinmemory.c: abort the transfer if not enough memory

No more use exit(3) but instead tell libcurl that no byte has been
written to let it return a `CURLE_WRITE_ERROR`. In addition, check
curl easy handle return code.

11 years agoRELEASE-NOTES: synced with ca3c0ed3a9c
Daniel Stenberg [Sat, 9 Mar 2013 15:31:57 +0000 (16:31 +0100)]
RELEASE-NOTES: synced with ca3c0ed3a9c

8 more bugfixes, one change and a bunch of contributors

11 years agoMakefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
Yang Tse [Sat, 9 Mar 2013 15:23:04 +0000 (16:23 +0100)]
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility

11 years agoimap: Added description comments to all perform based functions
Steve Holme [Sat, 9 Mar 2013 14:02:56 +0000 (14:02 +0000)]
imap: Added description comments to all perform based functions

11 years agoimap: Removed the need for separate custom request functions
Steve Holme [Sat, 9 Mar 2013 13:26:59 +0000 (13:26 +0000)]
imap: Removed the need for separate custom request functions

Moved the custom request processing into the LIST command as the logic
is the same.

11 years agoimap: Corrected typo in comment
Steve Holme [Sat, 9 Mar 2013 13:25:15 +0000 (13:25 +0000)]
imap: Corrected typo in comment

11 years agoMakefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
Yang Tse [Sat, 9 Mar 2013 12:57:55 +0000 (13:57 +0100)]
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility

11 years agoimap: Moved imap_logout() to be grouped with the other perform functions
Steve Holme [Sat, 9 Mar 2013 12:12:20 +0000 (12:12 +0000)]
imap: Moved imap_logout() to be grouped with the other perform functions

11 years agoemail: Updated the function descriptions for the logout / quit functions
Steve Holme [Sat, 9 Mar 2013 12:10:01 +0000 (12:10 +0000)]
email: Updated the function descriptions for the logout / quit functions

Updated the function description comments following commit 4838d196fdbf.

11 years agoemail: Simplified the logout / quit functions
Steve Holme [Sat, 9 Mar 2013 11:55:48 +0000 (11:55 +0000)]
email: Simplified the logout / quit functions

Moved the blocking state machine to the disconnect functions so that the
logout / quit functions are only responsible for sending the actual
command needed to logout or quit.

Additionally removed the hard return on failure.

11 years agoemail: Tidied up the *_regular_transfer() functions
Steve Holme [Fri, 8 Mar 2013 23:25:04 +0000 (23:25 +0000)]
email: Tidied up the *_regular_transfer() functions

Added comments and simplified convoluted dophase_done comparison.

11 years agoemail: Simplified nesting of if statements in *_doing() functions
Steve Holme [Fri, 8 Mar 2013 23:02:20 +0000 (23:02 +0000)]
email: Simplified nesting of if statements in *_doing() functions

11 years agoRELEASE-NOTES: mention that krb4 is up for consideration
Daniel Stenberg [Fri, 8 Mar 2013 15:34:40 +0000 (16:34 +0100)]
RELEASE-NOTES: mention that krb4 is up for consideration

11 years agoimap: Fixed handling of untagged responses for the STORE custom command
Steve Holme [Fri, 8 Mar 2013 21:18:36 +0000 (21:18 +0000)]
imap: Fixed handling of untagged responses for the STORE custom command

Added an exception, for the STORE command, to the untagged response
processor in imap_endofresp() as servers will back respones containing
the FETCH keyword instead.

11 years agocurlbuild.h.dist: enhance non-configure GCC ABI detection logic
Yang Tse [Fri, 8 Mar 2013 17:43:03 +0000 (18:43 +0100)]
curlbuild.h.dist: enhance non-configure GCC ABI detection logic

GCC specific adjustments:

- check __ILP32__ before 32 and 64bit processor architectures in
  order to detect ILP32 programming model on 64 bit processors
  which, of course, also support LP64 programming model, when using
  gcc 4.7 or newer.

- keep 32bit processor architecture checks in order to support gcc
  versions older than 4.7 which don't define __ILP32__

- check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
  architecture checks for older versions which don't define __LP64__

11 years agocurlbuild.h.dist: fix GCC build on ARM systems without configure script
Yang Tse [Fri, 8 Mar 2013 14:30:44 +0000 (15:30 +0100)]
curlbuild.h.dist: fix GCC build on ARM systems without configure script

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