Daniel Stenberg [Thu, 21 Jan 2010 14:05:06 +0000 (14:05 +0000)]
remove typedef we ended up not using
Daniel Stenberg [Thu, 21 Jan 2010 13:58:30 +0000 (13:58 +0000)]
Chris Conroy brought support for RTSP transfers, and with it comes 8(!) new
libcurl options for controlling what to get and how to receive posssibly
interleaved RTP data. Initial commit.
Daniel Stenberg [Thu, 21 Jan 2010 12:28:29 +0000 (12:28 +0000)]
Julien Chaffraix fixed line lengths
Daniel Stenberg [Thu, 21 Jan 2010 11:48:48 +0000 (11:48 +0000)]
Julien Chaffraix removed an old obsolete typedef
Daniel Stenberg [Thu, 21 Jan 2010 09:53:30 +0000 (09:53 +0000)]
Yun Fu pointed out a flaw in the loop that checks handles, and I indented
the code more curl-style
Daniel Stenberg [Thu, 21 Jan 2010 09:32:51 +0000 (09:32 +0000)]
"5.3 Sort outgoing cookies" removed, we now sort them
Yang Tse [Wed, 20 Jan 2010 21:16:32 +0000 (21:16 +0000)]
SIGTERM is the signal to trap here, SIGKILL can't be caught.
Yang Tse [Wed, 20 Jan 2010 20:42:21 +0000 (20:42 +0000)]
Use killsockfilters() to kill sockfilter processes, this ensures that when
killing a sockfilter process the actual PID from the pid file is used and
not the one returned by open2() which might be different.
Yang Tse [Wed, 20 Jan 2010 20:39:56 +0000 (20:39 +0000)]
Allow killsockfilters() to take a 5th optional parameter that when provided
indicates that only one of the two possible sockfilter processes should be
killed. Valid values for this parameter are 'main' and 'data'.
Yang Tse [Wed, 20 Jan 2010 20:08:50 +0000 (20:08 +0000)]
Use delete() to unset environment variables instead of assigning undef which
generates warning 'Use of uninitialized value in scalar assignment' with perl
versions older than 5.10
Yang Tse [Wed, 20 Jan 2010 18:31:52 +0000 (18:31 +0000)]
Adjust valgrind logs file name detection.
Adjust environment vars setting and restoring from test definition.
Avoid using strftime in torture sub.
Daniel Stenberg [Wed, 20 Jan 2010 09:39:40 +0000 (09:39 +0000)]
modified test case 8 to also make sure that we deal with cookies using
identical names but different paths properly
Daniel Stenberg [Tue, 19 Jan 2010 23:19:59 +0000 (23:19 +0000)]
- As was pointed out on the http-state mailing list, the order of cookies in a
HTTP Cookie: header _needs_ to be sorted on the path length in the cases
where two cookies using the same name are set more than once using
(overlapping) paths. Realizing this, identically named cookies must be
sorted correctly. But detecting only identically named cookies and take care
of them individually is harder than just to blindly and unconditionally sort
all cookies based on their path lengths. All major browsers also already do
this, so this makes our behavior one step closer to them in the cookie area.
Test case 8 was the only one that broke due to this change and I updated it
accordingly.
Daniel Stenberg [Tue, 19 Jan 2010 22:22:54 +0000 (22:22 +0000)]
oops, I forgot to cvs add this before my previous commit (Dan Fandrich
pointed it out to me)
Daniel Stenberg [Tue, 19 Jan 2010 21:39:10 +0000 (21:39 +0000)]
- David McCreedy brought a fix and a new test case (129) to make libcurl work
again when downloading files over FTP using ASCII and it turns out that the
final size of the file is not the same as the initial size the server
reported. This is very common since servers don't take the newline
conversions into account.
Daniel Stenberg [Tue, 19 Jan 2010 21:29:29 +0000 (21:29 +0000)]
"260 - IMAP, POP3 and SMTP support" done!
Daniel Stenberg [Tue, 19 Jan 2010 21:20:24 +0000 (21:20 +0000)]
avoid "Use of uninitialized value $l in concatenation"
Yang Tse [Tue, 19 Jan 2010 17:40:15 +0000 (17:40 +0000)]
Fail harder when curl coredumps trying to verify http and ftp servers.
Add some debug messages to see what's going on with valgrind logs.
Yang Tse [Tue, 19 Jan 2010 02:01:01 +0000 (02:01 +0000)]
prevent %runcert hash growth when clearing items
Yang Tse [Tue, 19 Jan 2010 01:30:07 +0000 (01:30 +0000)]
update copyright year notice
Yang Tse [Mon, 18 Jan 2010 20:22:04 +0000 (20:22 +0000)]
Constantine Sapuntzakis enhancements to make memory tracking log file writing
of messages atomic, on systems where an fwrite of a memory buffer is atomic.
Dan Fandrich [Mon, 18 Jan 2010 20:20:07 +0000 (20:20 +0000)]
Added PEM certificate keyword
Yang Tse [Mon, 18 Jan 2010 17:47:01 +0000 (17:47 +0000)]
fix warnings
Yang Tse [Mon, 18 Jan 2010 17:03:59 +0000 (17:03 +0000)]
Stop ssl running server when cert file currently used by server is
different than the one specified in test definition for same server
Yang Tse [Mon, 18 Jan 2010 14:49:31 +0000 (14:49 +0000)]
fix warnings
Yang Tse [Mon, 18 Jan 2010 02:53:25 +0000 (02:53 +0000)]
- Remove QD restarting of https servers. Proper fixing required.
This will make tests 310 311 and 312 fail while fixing.
- Remove some debug messages
Yang Tse [Mon, 18 Jan 2010 02:36:39 +0000 (02:36 +0000)]
make verifyhttp use different file names depending on server characteristics
Yang Tse [Mon, 18 Jan 2010 02:32:48 +0000 (02:32 +0000)]
add serverfactors() sub which returns server characterization factors
Yang Tse [Sun, 17 Jan 2010 20:28:07 +0000 (20:28 +0000)]
fix warnings
Yang Tse [Sun, 17 Jan 2010 14:47:30 +0000 (14:47 +0000)]
fix warnings
Yang Tse [Sun, 17 Jan 2010 14:31:13 +0000 (14:31 +0000)]
fix warnings
Yang Tse [Sun, 17 Jan 2010 13:33:27 +0000 (13:33 +0000)]
add some debug messages
Yang Tse [Sun, 17 Jan 2010 02:50:48 +0000 (02:50 +0000)]
use servername_id() from serverhelp.pm
Yang Tse [Sun, 17 Jan 2010 02:45:24 +0000 (02:45 +0000)]
refactored stopping of test harness servers
Yang Tse [Fri, 15 Jan 2010 20:23:35 +0000 (20:23 +0000)]
Store now this file in CVS with unix line endings.
maketgz already converts this file to DOS style with an awk filter.
Yang Tse [Fri, 15 Jan 2010 20:14:37 +0000 (20:14 +0000)]
Declaration of $sshdlog is done in sshhelp.pm
Yang Tse [Fri, 15 Jan 2010 18:55:01 +0000 (18:55 +0000)]
Start using the centralized pidfile and logfile name generation
subroutines for ssh and socks test suite servers.
Dan Fandrich [Fri, 15 Jan 2010 06:33:46 +0000 (06:33 +0000)]
Added the new protocol source files to the non-autoconf build files
Yang Tse [Thu, 14 Jan 2010 17:36:57 +0000 (17:36 +0000)]
Squeeze slack time when killing more than one server from
the <killserver> section of test harness definition files.
Kamil Dudka [Thu, 14 Jan 2010 01:37:55 +0000 (01:37 +0000)]
- Suppressed side effect of OpenSSL configure checks, which prevented NSS from
being properly detected under certain circumstances. It had been caused by
strange behavior of pkg-config when handling PKG_CONFIG_LIBDIR. pkg-config
distinguishes among empty and non-existent environment variable in that case.
Yang Tse [Wed, 13 Jan 2010 01:21:40 +0000 (01:21 +0000)]
Give the test a bit mote time to run so it passes on slow machines
Kamil Dudka [Wed, 13 Jan 2010 01:13:23 +0000 (01:13 +0000)]
remove trailing spaces from configure.ac
Yang Tse [Tue, 12 Jan 2010 22:29:18 +0000 (22:29 +0000)]
Added test case #1112 which does an FTPS download with strict timeout
and slow data transfer in a similar way as test case #1086 does for FTP.
This also exercises <killserver> section for the FTPS server.
Yang Tse [Tue, 12 Jan 2010 22:22:55 +0000 (22:22 +0000)]
Make runtests.pl actually support any (valid) server specification
for the <killserver> section of test harness definition files.
Yang Tse [Tue, 12 Jan 2010 22:11:13 +0000 (22:11 +0000)]
Fix tftp and sftp supported protocols in servername_str()
Yang Tse [Tue, 12 Jan 2010 14:01:44 +0000 (14:01 +0000)]
Make sockfilter kill messages look alike server ones
Yang Tse [Tue, 12 Jan 2010 03:01:00 +0000 (03:01 +0000)]
Adjust vor VPATH builds
Daniel Stenberg [Mon, 11 Jan 2010 23:15:10 +0000 (23:15 +0000)]
- Gil Weber reported a peculiar flaw with the multi interface when doing SFTP
transfers: curl_multi_fdset() would return -1 and not set and file
descriptors several times during a transfer of a single file. It turned out
to be due to two different flaws now fixed. Gil's excellent recipe helped me
nail this.
Daniel Stenberg [Mon, 11 Jan 2010 23:10:53 +0000 (23:10 +0000)]
ssh_statemach_act() is now modified to loop over the switch() to perform as
much as possible in one go, as long as it doesn't block and hasn't reached the
end of the state machine.
This avoids spurious -1 returns from curl_multi_fdset() simply because
previously it would return from this function without anything in EWOUDLBLOCK
and thus basically it wasn't actually waiting for anything!!
Daniel Stenberg [Mon, 11 Jan 2010 23:05:35 +0000 (23:05 +0000)]
After the TCP connect is confirmed in CURLM_STATE_WAITCONNECT and it changes
state, we return CURLM_CALL_MULTI_PERFORM unconditionally then so that we
can act faster like in the case the protocol-specific connect doesn't block
on anything and we can just persue on the next action immediately. It also
then avoids a case where curl_multi_fdset() would return -1.
Daniel Stenberg [Mon, 11 Jan 2010 21:38:35 +0000 (21:38 +0000)]
progress callback called repeatedly during slow connects
Daniel Stenberg [Mon, 11 Jan 2010 21:38:13 +0000 (21:38 +0000)]
- Made sure that the progress callback is repeatedly called at a regular
interval even during very slow connects.
Daniel Stenberg [Mon, 11 Jan 2010 15:50:30 +0000 (15:50 +0000)]
- The tests/runtests.pl script now checks to see if the test case that runs is
present in the tests/data/Makefile.am and outputs a notice message on the
screen if not. Each test file has to be included in that Makefile.am to get
included in release archives and forgetting to add files there is a common
mistake. This is an attempt to make it harder to forget.
Yang Tse [Mon, 11 Jan 2010 04:51:14 +0000 (04:51 +0000)]
secureserver.pl is now the test harness script used for SSL/TLS.
Yang Tse [Mon, 11 Jan 2010 04:49:13 +0000 (04:49 +0000)]
secureserver.pl is now the test harness script used for SSL/TLS.
Start using the centralized pidfile and logfile name generation
subroutines for https and ftps test suite servers.
Yang Tse [Sun, 10 Jan 2010 04:24:46 +0000 (04:24 +0000)]
Update error message to include port number
Yang Tse [Sun, 10 Jan 2010 02:41:44 +0000 (02:41 +0000)]
Previous commit adjustments
Yang Tse [Sat, 9 Jan 2010 18:35:59 +0000 (18:35 +0000)]
Start using the centralized pidfile and logfile name generation
subroutines for ftp, pop3, imap and smtp test suite servers.
Daniel Stenberg [Sat, 9 Jan 2010 00:03:33 +0000 (00:03 +0000)]
struct Curl_sh_entry's 'inuse' member was no longer used and is now removed
Daniel Stenberg [Fri, 8 Jan 2010 23:45:23 +0000 (23:45 +0000)]
- Johan van Selst found and fixed a OpenSSL session ref count leak:
ossl_connect_step3() increments an SSL session handle reference counter on
each call. When sessions are re-used this reference counter may be
incremented many times, but it will be decremented only once when done (by
Curl_ossl_session_free()); and the internal OpenSSL data will not be freed
if this reference count remains positive. When a session is re-used the
reference counter should be corrected by explicitly calling
SSL_SESSION_free() after each consecutive SSL_get1_session() to avoid
introducing a memory leak.
(http://curl.haxx.se/bug/view.cgi?id=2926284)
Yang Tse [Fri, 8 Jan 2010 15:54:07 +0000 (15:54 +0000)]
Start using the centralized pidfile and logfile name generation
subroutines for http and tftp test suite servers.
Yang Tse [Fri, 8 Jan 2010 12:01:35 +0000 (12:01 +0000)]
Remove extra line feed
Yang Tse [Fri, 8 Jan 2010 01:54:29 +0000 (01:54 +0000)]
Use '_stunnel.log' ending also for https test server log
Yang Tse [Fri, 8 Jan 2010 01:48:54 +0000 (01:48 +0000)]
sws and tftpd command line option naming adjustments
Daniel Stenberg [Thu, 7 Jan 2010 22:48:28 +0000 (22:48 +0000)]
removed a parameter from the Curl_http_readwrite_headers() prototype to remove
the need for the struct forward declaration from http.h which caused problems
with gcc 2.96 and quite frankly the parameter wasn't necessary anyway
Claes Jakobsson [Thu, 7 Jan 2010 14:44:04 +0000 (14:44 +0000)]
List fragment tests in Makefile.am and better provide better names
Daniel Stenberg [Thu, 7 Jan 2010 14:02:05 +0000 (14:02 +0000)]
removed Curl_http_header_append() prototype as it isn't used anymore, the
function was moved to http.c and was made static and renamed
Daniel Stenberg [Wed, 6 Jan 2010 23:04:17 +0000 (23:04 +0000)]
- Make sure the progress callback is called repeatedly even during very slow
name resolves when c-ares is used for resolving.
Yang Tse [Wed, 6 Jan 2010 18:28:15 +0000 (18:28 +0000)]
Disable tests 802 and 803
Yang Tse [Wed, 6 Jan 2010 18:25:10 +0000 (18:25 +0000)]
Prevent detection of stdint.h on IRIX systems, even when available.
IRIX MIPSpro 7.4 C++ compiler does not tolerate inclusion of stdint.h
Claes Jakobsson [Wed, 6 Jan 2010 16:01:48 +0000 (16:01 +0000)]
Julien Chaffraix fixed so that the fragment part in an URL is not sent to the server anymore
Daniel Stenberg [Mon, 4 Jan 2010 18:43:29 +0000 (18:43 +0000)]
use the modern name for this option
Kamil Dudka [Sun, 3 Jan 2010 13:46:37 +0000 (13:46 +0000)]
- Julien Chaffraix eliminated a duplicated initialization in singlesocket().
Daniel Stenberg [Sat, 2 Jan 2010 22:09:31 +0000 (22:09 +0000)]
- Make curl support --ssl and --ssl-reqd instead of the previous FTP-specific
versions --ftp-ssl and --ftp-ssl-reqd as these options are now used to
control SSL/TLS for IMAP, POP3 and SMTP as well in addition to FTP. The old
option names are still working but the new ones are the prefered ones
(listed and documented).
Daniel Stenberg [Fri, 1 Jan 2010 19:49:44 +0000 (19:49 +0000)]
stop at once if the EOB marker shows up, even if something else might get
sent afterwards
Daniel Stenberg [Fri, 1 Jan 2010 14:52:50 +0000 (14:52 +0000)]
update copyright year since we are in 2010 now
Daniel Stenberg [Fri, 1 Jan 2010 14:52:12 +0000 (14:52 +0000)]
added CURLOPT_FTP_USE_PRET
Daniel Stenberg [Fri, 1 Jan 2010 14:44:44 +0000 (14:44 +0000)]
- Ingmar Runge enhanced libcurl's FTP engine to support the PRET command. This
command is a special "hack" used by the drftpd server, but even though it is
a custom extension I've deemed it fine to add to libcurl since this server
seems to survive and people keep using it and want libcurl to support
it. The new libcurl option is named CURLOPT_FTP_USE_PRET, and it is also
usable from the curl tool with --ftp-pret. Using this option on a server
that doesn't support this command will make libcurl fail.
Daniel Stenberg [Thu, 31 Dec 2009 22:38:10 +0000 (22:38 +0000)]
added descriptions for CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT
Daniel Stenberg [Thu, 31 Dec 2009 21:59:50 +0000 (21:59 +0000)]
--mail-rcpt and --mail-from are starting to settle and work like this...
Daniel Stenberg [Thu, 31 Dec 2009 21:52:01 +0000 (21:52 +0000)]
turned CURLOPT_MAIL_RCPT into a curl_slist list instead to support multiple
receivers, and made the command line tool thus support the option specified
many times
Yang Tse [Thu, 31 Dec 2009 15:26:16 +0000 (15:26 +0000)]
Use '_stunnel.log' file name ending for stunneled server logs
Yang Tse [Thu, 31 Dec 2009 13:35:24 +0000 (13:35 +0000)]
VMS adjustments by Steven M. Schweda
Yang Tse [Thu, 31 Dec 2009 02:29:55 +0000 (02:29 +0000)]
Subs for refactoring purposes
Daniel Stenberg [Wed, 30 Dec 2009 23:14:30 +0000 (23:14 +0000)]
CURLOPT_HEADERDATA was added in 7.10
Daniel Stenberg [Wed, 30 Dec 2009 23:14:00 +0000 (23:14 +0000)]
s/CURLOPT_WRITEHEADER/CURLOPT_HEADERDATA simply because it is a better name
Daniel Stenberg [Wed, 30 Dec 2009 22:50:42 +0000 (22:50 +0000)]
modified to get the EHLO domain from the path part of the URL instead of the
user name
Daniel Stenberg [Wed, 30 Dec 2009 22:09:43 +0000 (22:09 +0000)]
moved the SMTP payload escape function into Curl_smtp_escape_eob and put
it in smtp.c
Daniel Stenberg [Wed, 30 Dec 2009 21:52:27 +0000 (21:52 +0000)]
(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLF
sequences in uploaded data. The test server doesn't "decode" escaped dot-lines
but instead test cases must be written to take them into account. Added test
case 803 to verify dot-escaping.
Yang Tse [Wed, 30 Dec 2009 19:43:12 +0000 (19:43 +0000)]
Oops, should have removed 'not' in previous commit.
Yang Tse [Wed, 30 Dec 2009 19:37:53 +0000 (19:37 +0000)]
VMS build system enhancements by Steven M. Schweda and Craig A. Berry
Yang Tse [Wed, 30 Dec 2009 17:59:56 +0000 (17:59 +0000)]
VMS specific preprocessor symbol checking adjustments
Yang Tse [Wed, 30 Dec 2009 17:59:10 +0000 (17:59 +0000)]
VMS specific preprocessor symbol definition adjustments
Yang Tse [Wed, 30 Dec 2009 15:47:23 +0000 (15:47 +0000)]
Replaced stricmp() usage with our portable strequal()
Daniel Stenberg [Tue, 29 Dec 2009 21:45:02 +0000 (21:45 +0000)]
move HTTP-specific functions to http.c where they belong
Daniel Stenberg [Tue, 29 Dec 2009 21:28:53 +0000 (21:28 +0000)]
test 802 is the first SMTP test, although not strictly SMTP yet...
Yang Tse [Tue, 29 Dec 2009 02:32:12 +0000 (02:32 +0000)]
Mention last changes
Yang Tse [Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)]
- Fix configure_socket() to use ares_socket_t instead of int data type.
Yang Tse [Tue, 29 Dec 2009 01:51:57 +0000 (01:51 +0000)]
- Where run-time error checks enabling compiler option /GZ was used it is now
replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.
- Compiler option /GX is now replaced with equivalent /EHsc for all versions.
Yang Tse [Mon, 28 Dec 2009 20:10:00 +0000 (20:10 +0000)]
Leftover from previous commit