Daniel Stenberg [Wed, 8 Jan 2014 08:41:02 +0000 (09:41 +0100)]
trynextip: fix build for non-IPV6 capable systems
AF_INET6 may not exist then
Patched-by: Iida Yosiaki
Bug: http://curl.haxx.se/bug/view.cgi?id=1322
Steve Holme [Wed, 8 Jan 2014 00:30:33 +0000 (00:30 +0000)]
makefile: Added support for VC12
Steve Holme [Wed, 8 Jan 2014 00:15:30 +0000 (00:15 +0000)]
makefile: Added support for VC11
Steve Holme [Wed, 8 Jan 2014 12:05:48 +0000 (12:05 +0000)]
Daniel Stenberg [Tue, 7 Jan 2014 22:51:01 +0000 (23:51 +0100)]
mk-ca-bundle.1: document -d
Steve Holme [Tue, 7 Jan 2014 22:12:57 +0000 (22:12 +0000)]
RELEASE-NOTES: Synced with
8ae35102c43d8d
Daniel Stenberg [Tue, 7 Jan 2014 08:33:54 +0000 (09:33 +0100)]
ConnectionExists: fix NTLM check for new connection
When the requested authentication bitmask includes NTLM, we cannot
re-use a connection for another username/password as we then risk
re-using NTLM (connection-based auth).
This has the unfortunate downside that if you include NTLM as a possible
auth, you cannot re-use connections for other usernames/passwords even
if NTLM doesn't end up the auth type used.
Reported-by: Paras S
Patched-by: Paras S
Bug: http://curl.haxx.se/mail/lib-2014-01/0046.html
Steve Holme [Sun, 5 Jan 2014 22:59:29 +0000 (22:59 +0000)]
examples: Added required libcurl version information to SMTP examples
Daniel Stenberg [Sun, 5 Jan 2014 22:53:26 +0000 (23:53 +0100)]
mk-ca-bundle.pl: avoid warnings with -d without parameter
Leif W [Sun, 5 Jan 2014 22:37:26 +0000 (23:37 +0100)]
mk-ca-bundle: introduces -d and warns about using this script
Steve Holme [Sun, 5 Jan 2014 21:13:12 +0000 (21:13 +0000)]
Makefile: Added missing WinSSL and x64 configurations
Marc Hoersken [Sun, 5 Jan 2014 19:17:04 +0000 (20:17 +0100)]
docs/INTERNALS: follow up fix for 11e8066 and 92b9ae5
Marc Hoersken [Sun, 5 Jan 2014 19:13:55 +0000 (20:13 +0100)]
packages: follow up fix for a47c142, 11e8066 and 92b9ae5
Marc Hoersken [Sun, 5 Jan 2014 19:01:33 +0000 (20:01 +0100)]
multi.c: fix possible dereference of null pointer
Steve Holme [Sun, 5 Jan 2014 17:50:14 +0000 (17:50 +0000)]
Examples: Renamed SMTP MAIL example to match other email examples
Steve Holme [Sun, 5 Jan 2014 14:40:58 +0000 (14:40 +0000)]
examples: Added POP3 TLS example
Steve Holme [Sun, 5 Jan 2014 14:21:45 +0000 (14:21 +0000)]
examples: Added IMAP NOOP example
Steve Holme [Sun, 5 Jan 2014 14:02:44 +0000 (14:02 +0000)]
examples: Added POP3 NOOP example
Steve Holme [Sun, 5 Jan 2014 13:46:16 +0000 (13:46 +0000)]
pop3-stat.c: Corrected small typo from commit
91d62e9abd761c
Steve Holme [Sun, 5 Jan 2014 13:40:55 +0000 (13:40 +0000)]
examples: Added POP3 STAT example
Steve Holme [Sun, 5 Jan 2014 13:20:40 +0000 (13:20 +0000)]
examples: Added POP3 TOP example
Steve Holme [Sun, 5 Jan 2014 13:00:18 +0000 (13:00 +0000)]
examples: Added POP3 DELE example
Steve Holme [Sun, 5 Jan 2014 12:40:50 +0000 (12:40 +0000)]
examples: Added POP3 UIDL example
Steve Holme [Sun, 5 Jan 2014 12:20:26 +0000 (12:20 +0000)]
examples: Added POP3 RETR example
Steve Holme [Sun, 5 Jan 2014 11:55:10 +0000 (11:55 +0000)]
examples: Added return of error code in POP3 examples
Steve Holme [Sun, 5 Jan 2014 11:22:39 +0000 (11:22 +0000)]
runtests.pl: Updated copyright year after edit from
d718abd968aeb4
Steve Holme [Sun, 5 Jan 2014 10:48:54 +0000 (10:48 +0000)]
examples: Reworked POP3 examples for additional upcoming POP3 examples
Steve Holme [Sun, 5 Jan 2014 10:32:47 +0000 (10:32 +0000)]
examples: Added SMTP SSL example
Steve Holme [Sun, 5 Jan 2014 10:16:22 +0000 (10:16 +0000)]
examples: Added IMAP SSL and TLS examples
Marc Hoersken [Sun, 5 Jan 2014 01:22:09 +0000 (02:22 +0100)]
runtests.pl: check for tstunnel command on Windows
The Windows console version of stunnel is called "tstunnel", while
running "stunnel" on Windows spawns a new console window which
cannot be handled by the testsuite.
Marc Hoersken [Sat, 4 Jan 2014 23:09:20 +0000 (00:09 +0100)]
testcurl.pl: always show the last 5 commits even with --nogitpull
Daniel Stenberg [Sat, 4 Jan 2014 22:39:30 +0000 (23:39 +0100)]
ftp tests: provide LIST responses in the test file itself
Previously LIST always returned a fixed hardcoded list that the ftp
server code knew about, mostly since the server didn't get any test case
number in the LIST scenario. Starting now, doing a CWD to a directory
named test-[number] will make the test server remember that number and
consider it a test case so that a subsequent LIST command will send the
<data> section of that test case back.
It allows LIST tests to be made more similar to how all other tests
work.
Test 100 was updated to provide its own directory listing.
Steve Holme [Sat, 4 Jan 2014 18:10:18 +0000 (18:10 +0000)]
examples: Standardised username and password settings for all email examples
Replaced the use of CURLOPT_USERPWD for the preferred CURLOPT_USERNAME
and CURLOPT_PASSWORD options and used the same username and password for
all email examples which is the same as that used in the test suite.
Steve Holme [Sat, 4 Jan 2014 17:41:10 +0000 (17:41 +0000)]
Updated copyright year for recent changes
Marc Hoersken [Sat, 4 Jan 2014 16:49:54 +0000 (17:49 +0100)]
secureserver.pl: support for stunnel-path with nun-alphanum chars
This is desired to support stunnel installations on Windows.
Marc Hoersken [Sat, 4 Jan 2014 15:34:58 +0000 (16:34 +0100)]
conncache.c: fix possible dereference of null pointer
Marc Hoersken [Sat, 4 Jan 2014 13:33:27 +0000 (14:33 +0100)]
docs: primarily refer to schannel as WinSSL
Steve Holme [Fri, 3 Jan 2014 22:57:10 +0000 (22:57 +0000)]
examples: Added IMAP COPY example
Steve Holme [Fri, 3 Jan 2014 22:42:26 +0000 (22:42 +0000)]
examples: Added IMAP DELETE example
Steve Holme [Fri, 3 Jan 2014 22:27:46 +0000 (22:27 +0000)]
examples: Added IMAP CREATE example
Daniel Stenberg [Fri, 3 Jan 2014 23:27:01 +0000 (00:27 +0100)]
FTP parselist: fix "total" parser
A regression introduced in
7f3b87d8782eae1 (present in the 7.21.4 release)
broke the total parser. Now skip the whitespace and the digits.
Reported-by: Justin Maggard
Bug: http://curl.haxx.se/mail/lib-2014-01/0019.html
Daniel Stenberg [Fri, 3 Jan 2014 20:01:55 +0000 (21:01 +0100)]
test1513: fix spelling
Marc Hoersken [Fri, 3 Jan 2014 15:55:49 +0000 (16:55 +0100)]
Makefile.vc6: follow up fix for 11e8066 and 92b9ae5
Daniel Stenberg [Fri, 3 Jan 2014 11:25:09 +0000 (12:25 +0100)]
test1513: added - verify early progress callback return fail
Verify the change brought in commit
8e11731653061. It makes sure that
returning a failure from the progress callback even very early results
in the correct return code.
Daniel Stenberg [Thu, 2 Jan 2014 22:24:26 +0000 (23:24 +0100)]
progresscallback: make CURLE_ABORTED_BY_CALLBACK get returned better
When the progress callback returned 1 at a very early state, the code
would not make CURLE_ABORTED_BY_CALLBACK get returned but the process
would still be interrupted. In the HTTP case, this would then cause a
CURLE_GOT_NOTHING to erroneously get returned instead.
Reported-by: Petr Novak
Bug: http://curl.haxx.se/bug/view.cgi?id=1318
Marc Hoersken [Fri, 3 Jan 2014 11:30:23 +0000 (12:30 +0100)]
unittests: do not include curl_memory.h
memdebug.h already contains all required definitions and including
curl_memory.h causes errors like the following:
tests/unit/unit1394.c:119: undefined reference to `Curl_cfree'
tests/unit/unit1394.c:120: undefined reference to `Curl_cfree'
Daniel Stenberg [Fri, 3 Jan 2014 11:02:56 +0000 (12:02 +0100)]
pipeline: remove print_pipeline()
This is a debug function only and serves no purpose in production code,
it only slows things down. I left the code #ifdef'ed for possible future
pipeline debugging.
Also, this was a global function without proper namespace usage.
Reported-by: He Qin
Bug: http://curl.haxx.se/bug/view.cgi?id=1320
Daniel Stenberg [Fri, 3 Jan 2014 10:52:49 +0000 (11:52 +0100)]
openssl: allow explicit sslv2 selection
If OpenSSL is built to support SSLv2 this brings back the ability to
explicitly select that as a protocol level.
Reported-by: Steve Holme
Bug: http://curl.haxx.se/mail/lib-2014-01/0013.html
Steve Holme [Thu, 2 Jan 2014 23:44:59 +0000 (23:44 +0000)]
Bumped copyright year to 2014
Steve Holme [Thu, 2 Jan 2014 23:35:29 +0000 (23:35 +0000)]
Updated copyright year for recent changes
Marc Hoersken [Thu, 2 Jan 2014 23:32:05 +0000 (00:32 +0100)]
vtls/nssg.h: fixed include references to moved file
Christian Weisgerber [Thu, 2 Jan 2014 23:01:36 +0000 (00:01 +0100)]
curl_easy_setopt.3: fix formatting mistakes
This fixes two markup typos I noticed in curl_easy_setopt.3. (The use
of bold vs. italics seems a bit inconsistent in that page, but it should
at least be valid man syntax.)
Barry Abrahamson [Wed, 1 Jan 2014 22:50:45 +0000 (23:50 +0100)]
OpenSSL: Fix forcing SSLv3 connections
Some feedback provided by byte_bucket on IRC pointed out that commit
db11750cfa5b1 wasn’t really correct because it allows for “upgrading” to a
newer protocol when it should be only allowing for SSLv3.
This change fixes that.
When SSLv3 connection is forced, don't allow SSL negotiations for newer
versions. Feedback provided by byte_bucket in #curl. This behavior is
also consistent with the other force flags like --tlsv1.1 which doesn't
allow for TLSv1.2 negotiation, etc
Feedback-by: byte_bucket
Bug: http://curl.haxx.se/bug/view.cgi?id=1319
Guenter Knauf [Thu, 2 Jan 2014 21:15:23 +0000 (22:15 +0100)]
Trial to fix the nmake Makefile for vtls files.
Steve Holme [Thu, 2 Jan 2014 20:19:19 +0000 (20:19 +0000)]
examples: Added IMAP SEARCH example
Steve Holme [Thu, 2 Jan 2014 19:49:49 +0000 (19:49 +0000)]
examples: Added IMAP EXAMINE mailbox folder example
Guenter Knauf [Thu, 2 Jan 2014 19:40:33 +0000 (20:40 +0100)]
Fix NetWare build for vtls files.
Daniel Stenberg [Wed, 1 Jan 2014 21:35:59 +0000 (22:35 +0100)]
CMakeLists.txt: add standard curl source code header
Daniel Stenberg [Wed, 1 Jan 2014 21:32:55 +0000 (22:32 +0100)]
CMakeLists.txt: add warning about the cmake build's state
Steve Holme [Wed, 1 Jan 2014 20:42:03 +0000 (20:42 +0000)]
examples: Updated SMTP multi example to be more realistic
Updated the contents of the email and payload callback as per the IMAP
and other SMTP examples.
Barry Abrahamson [Wed, 1 Jan 2014 04:28:35 +0000 (05:28 +0100)]
OpenSSL: Fix forcing SSLv3 connections
Since
ad34a2d5c87c7f4b14e8dded3 (present in 7.34.0 release) forcing
SSLv3 will always return the error "curl: (35) Unsupported SSL protocol
version" Can be replicated with `curl -I -3 https://www.google.com/`.
This fix simply allows for v3 to be forced.
Steve Holme [Wed, 1 Jan 2014 19:31:22 +0000 (19:31 +0000)]
examples: Corrected unescaped backslash in imap-store.c
Steve Holme [Wed, 1 Jan 2014 18:31:42 +0000 (18:31 +0000)]
examples: Update SMTP TLS example mail content to be RFC-2821 compliant
...and made some minor coding style changes to better match the curl
coding standards as well as the other email related examples.
Steve Holme [Wed, 1 Jan 2014 18:00:18 +0000 (18:00 +0000)]
examples: Added IMAP APPEND example
Steve Holme [Wed, 1 Jan 2014 17:15:03 +0000 (17:15 +0000)]
examples: Added IMAP STORE example
Steve Holme [Tue, 31 Dec 2013 16:40:00 +0000 (16:40 +0000)]
RELEASE-NOTES: Synced with
7de2e032584d44
Steve Holme [Tue, 31 Dec 2013 16:22:28 +0000 (16:22 +0000)]
examples: Added IMAP LIST mailbox example
Steve Holme [Tue, 31 Dec 2013 16:00:16 +0000 (16:00 +0000)]
examples: Updated IMAP fetch example for libcurl 7.30.0
Steve Holme [Tue, 31 Dec 2013 15:45:15 +0000 (15:45 +0000)]
examples: Rename before adding additional email examples
Steve Holme [Tue, 31 Dec 2013 14:28:47 +0000 (14:28 +0000)]
examples: Added SMTP EXPN command example
Steve Holme [Tue, 31 Dec 2013 13:22:40 +0000 (13:22 +0000)]
examples: Added SMTP email verification example
Steve Holme [Tue, 31 Dec 2013 12:16:33 +0000 (12:16 +0000)]
imap: Fixed line length warning
Steve Holme [Tue, 31 Dec 2013 11:10:25 +0000 (11:10 +0000)]
mprintf: Replaced internal usage of FORMAT_OFF_T and FORMAT_OFF_TU
Following commit
0aafd77fa4c6f2, replaced the internal usage of
FORMAT_OFF_T and FORMAT_OFF_TU with the external versions that we
expect API programmers to use.
This negates the need for separate definitions which were subtly
different under different platforms/compilers.
Steve Holme [Tue, 31 Dec 2013 00:26:10 +0000 (00:26 +0000)]
examples: Updated copyright year for recent edits
Steve Holme [Tue, 31 Dec 2013 00:21:10 +0000 (00:21 +0000)]
examples: Corrected incorrect indentation in smtp-multi.c
Steve Holme [Tue, 31 Dec 2013 00:19:10 +0000 (00:19 +0000)]
examples: Updated SMTP examples to set CURLOPT_UPLOAD
Steve Holme [Sun, 29 Dec 2013 14:45:28 +0000 (14:45 +0000)]
mprintf: Added support for I, I32 and I64 size specifiers
Added support to the built-in printf() replacement functions, for these
non-ANSI extensions when compiling under Visual Studio, Borland, Watcom
and MinGW.
This fixes problems when generating libcurl source code that contains
curl_off_t variables.
Steve Holme [Sun, 29 Dec 2013 16:59:59 +0000 (16:59 +0000)]
curl_easy_setopt.3: Added SMTP information to CURLOPT_INFILESIZE_LARGE
Although added to CURLOPT_INFILESIZE in commit
ee3d3adc6fe155 it was
never added to CURLOPT_INFILESIZE_LARGE.
Steve Holme [Sat, 28 Dec 2013 20:22:22 +0000 (20:22 +0000)]
tests: Disabled NTLM tests when running with SSPI enabled
Steve Holme [Sat, 28 Dec 2013 19:44:07 +0000 (19:44 +0000)]
connect.c: Fixed compilation warning
warning: 'res' may be used uninitialized in this function
Steve Holme [Sat, 28 Dec 2013 16:32:48 +0000 (16:32 +0000)]
runtests.pl: Fixed slightly incorrect regex in commit
28dd47d4d41900
Björn Stenberg [Sat, 28 Dec 2013 12:42:57 +0000 (13:42 +0100)]
connect: Try all addresses in first connection attempt
Fixes a bug when all addresses in the first family fail immediately, due
to "Network unreachable" for example, curl would hang and never try the
next address family.
Iterate through all address families when to trying establish the first
connection attempt.
Bug: http://curl.haxx.se/bug/view.cgi?id=1315
Reported-by: Michal Górny and Anthony G. Basile
Steve Holme [Sat, 28 Dec 2013 11:31:43 +0000 (11:31 +0000)]
runtests.pl: Optimised feature present checking code
...to exclude not present features.
Steve Holme [Sat, 28 Dec 2013 11:11:18 +0000 (11:11 +0000)]
runtests.pl: Added the ability to run tests when a feature is not present
Steve Holme [Fri, 27 Dec 2013 20:12:20 +0000 (20:12 +0000)]
ftpserver.pl: Fixed compilation error
Unmatched right curly bracket at line 758, at end of line
Steve Holme [Fri, 27 Dec 2013 18:12:06 +0000 (18:12 +0000)]
ftpserver.pl: Reworked SMTP verified server detection
Following the addition of informational commands to the SMTP protocol,
the test server is no longer required to return the verified server
information in responses that curl only outputs in verbose mode.
Instead, a similar detection mechanism to that used by FTP, IMAP and
POP3 can now be used.
Steve Holme [Fri, 27 Dec 2013 12:08:04 +0000 (12:08 +0000)]
sendf.c: Fixed compilation warning from
f2d234a4dd9bcc
sendf.c:450:81: warning: Longer than 79 columns
Steve Holme [Fri, 27 Dec 2013 10:55:01 +0000 (10:55 +0000)]
FILE: Fixed sending of data would always return CURLE_WRITE_ERROR
Introduced in commit
2a4ee0d2215556 sending of data via the FILE
protocol would always return CURLE_WRITE_ERROR regardless of whether
CURL_WRITEFUNC_PAUSE was returned from the callback function or not.
Daniel Stenberg [Thu, 26 Dec 2013 22:50:34 +0000 (23:50 +0100)]
FILE: we don't support paused transfers using this protocol
Make sure that we detect such attempts and return a proper error code
instead of silently handling this in problematic ways.
Updated the documentation to mention this limitation.
Bug: http://curl.haxx.se/bug/view.cgi?id=1286
Steve Holme [Wed, 25 Dec 2013 10:30:51 +0000 (10:30 +0000)]
vtls: Updated comments referencing sslgen.c and ssluse.c
Steve Holme [Wed, 25 Dec 2013 10:20:39 +0000 (10:20 +0000)]
vtls: Fixed up include of vtls.h
Daniel Stenberg [Wed, 25 Dec 2013 22:30:25 +0000 (23:30 +0100)]
curl_dofree: allow free(NULL)
Previously this memdebug free() replacement didn't properly work with a
NULL argument which has made us write code that avoids calling
free(NULL) - which causes some extra nuisance and unnecessary code.
Starting now, we should allow free(NULL) even when built with the
memdebug system enabled.
free(NULL) is permitted by POSIX
Steve Holme [Wed, 25 Dec 2013 00:08:16 +0000 (00:08 +0000)]
RELEASE-NOTES: Synced with
0ff0a994ada62a
Daniel Stenberg [Tue, 24 Dec 2013 23:53:15 +0000 (00:53 +0100)]
Curl_thread_create: use Curl_safefree to allow NULL better
free() itself allows a NULL input but our memory debug system requires
Curl_safefree() to be used instead when a "legitimate" NULL may be freed. Like
in the code here.
Pointed-out-by: Steve Holme
Luke Dashjr [Tue, 24 Dec 2013 23:10:42 +0000 (23:10 +0000)]
threaded resolver: Use pthread_t * for curl_thread_t
... since pthread_t may be non-scalar and/or may represent a real thread
with scalar 0.
Bug: http://curl.haxx.se/bug/view.cgi?id=1314
Steve Holme [Tue, 24 Dec 2013 22:45:25 +0000 (22:45 +0000)]
imap: Fixed auth preference not being honored when CAPABILITY not supported
If a user indicated they preferred to authenticate using a SASL
mechanism, but SASL authentication wasn't supported by the server, curl
would always fall back to clear text when CAPABILITY wasn't supported,
even though the user didn't want to use this.
Steve Holme [Tue, 24 Dec 2013 22:35:55 +0000 (22:35 +0000)]
pop3: Fixed auth preference not being honored when CAPA not supported
If a user indicated they preferred to authenticate using APOP or a SASL
mechanism, but neither were supported by the server, curl would always
fall back to clear text when CAPA wasn't supported, even though the
user didn't want to use this.
This also fixes the auto build failure caused by commit
6f2d5f0562f64a.
Daniel Stenberg [Wed, 18 Dec 2013 21:21:17 +0000 (22:21 +0100)]
TheArtOfHttpScripting: major update, converted layout and more
Daniel Stenberg [Tue, 24 Dec 2013 20:29:18 +0000 (21:29 +0100)]
Curl_pp_readresp: use memmove not memcpy, possibly overlapping areas
Fixes commit
1deac31eba7
Steve Holme [Tue, 24 Dec 2013 16:48:48 +0000 (16:48 +0000)]
RELEASE-NOTES: Corrected copy/paste typo