Steve Holme [Sat, 14 Sep 2013 23:34:58 +0000 (00:34 +0100)]
ftpserver.pl: Added mailbox check to IMAP SELECT handler
Steve Holme [Sat, 14 Sep 2013 23:31:55 +0000 (00:31 +0100)]
ftpserver.pl: Corrected invalid user details check
...in both the IMAP LOGIN and POP3 PASS handlers introduced in commit
187ac693744949 and
84ad1569e5fc93 respectively.
Steve Holme [Sat, 14 Sep 2013 19:52:29 +0000 (20:52 +0100)]
ftpserver.pl: Moved IMAP LOGIN handler into own function
Steve Holme [Sat, 14 Sep 2013 19:45:58 +0000 (20:45 +0100)]
ftpserver.pl: Moved POP3 USER and PASS handlers into own functions
Steve Holme [Sat, 14 Sep 2013 15:18:47 +0000 (16:18 +0100)]
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
...which was accidentally introduced in commit
4d6ef6297ae9b6.
Steve Holme [Sat, 14 Sep 2013 14:02:34 +0000 (15:02 +0100)]
ftpserver.pl: Added capability prerequisite for extended POP3 commands
Steve Holme [Sat, 14 Sep 2013 13:57:15 +0000 (14:57 +0100)]
tests: Updated descriptions to be more meaningful
Steve Holme [Sat, 14 Sep 2013 09:44:21 +0000 (10:44 +0100)]
ftpserver.pl: Added support for IMAP NOOP command
Steve Holme [Sat, 14 Sep 2013 09:40:32 +0000 (10:40 +0100)]
imap: Fixed response check for NOOP command
Steve Holme [Sat, 14 Sep 2013 09:36:12 +0000 (10:36 +0100)]
tests: Updated descriptions to be more meaningful
Daniel Stenberg [Fri, 13 Sep 2013 21:13:58 +0000 (23:13 +0200)]
curl.1: detail how short/long options work
URL: http://curl.haxx.se/bug/view.cgi?id=1279
Suggested-by: Jerry Krinock
Steve Holme [Fri, 13 Sep 2013 17:50:11 +0000 (18:50 +0100)]
curl: Fixed usage of DNS options when not using c-ares resolver
Commit
32352ed6adddcb introduced various DNS options, however, these
would cause curl to exit with CURLE_NOT_BUILT_IN when c-ares wasn't
being used as the backend resolver even if the options weren't set
by the user.
Additionally corrected some minor coding style errors from the same
commit.
Daniel Stenberg [Fri, 13 Sep 2013 12:06:00 +0000 (14:06 +0200)]
curl_easy_setopt.3: mention RTMP URL quirks
URL: http://curl.haxx.se/bug/view.cgi?id=1278
Reported-by: Gorilla Maguila
Ben Greear [Sat, 9 Feb 2013 21:18:02 +0000 (13:18 -0800)]
curl: Add support for various DNS binding options.
(Passed on to c-ares.)
Allows something like this:
curl --dns-interface sta8 --dns-ipv4-addr 8.8.1.111 --interface sta8 \
--localaddr 8.8.1.111 --dns-servers 8.8.8.1 www.google.com
Signed-off-by: Ben Greear <greearb@candelatech.com>
Kim Vandry [Sat, 7 Sep 2013 16:45:50 +0000 (12:45 -0400)]
libcurl: New options to bind DNS to local interfaces or IP addresses
Daniel Stenberg [Thu, 12 Sep 2013 11:59:05 +0000 (13:59 +0200)]
libcurl.3: for multi interface connections are held in the multi handle
... and a few more cleanups/clarifications
Steve Holme [Thu, 12 Sep 2013 10:52:19 +0000 (11:52 +0100)]
ftpserver.pl: Fixed missing comma from
7fd84b14d219b1
Steve Holme [Thu, 12 Sep 2013 06:10:41 +0000 (07:10 +0100)]
ftpserver.pl: Fixed variable error introduced in
7fd84b14d219b1
Global symbol "$mailbox" requires explicit package name
Steve Holme [Wed, 11 Sep 2013 19:26:43 +0000 (20:26 +0100)]
ftpserver.pl: Added support for UID command
Steve Holme [Wed, 11 Sep 2013 19:19:09 +0000 (20:19 +0100)]
ftpserver.pl: Added support for LSUB command
Steve Holme [Wed, 11 Sep 2013 19:13:24 +0000 (20:13 +0100)]
imap: Fixed response check for LSUB and UID commands
Steve Holme [Wed, 11 Sep 2013 17:19:49 +0000 (18:19 +0100)]
ftpserver.pl: Added support for IMAP COPY command
Steve Holme [Wed, 11 Sep 2013 17:13:53 +0000 (18:13 +0100)]
ftpserver.pl: Added support for IMAP CLOSE and EXPUNGE commands
Steve Holme [Wed, 11 Sep 2013 17:07:25 +0000 (18:07 +0100)]
ftpserver.pl: Added support for POP3 RSET command
Steve Holme [Wed, 11 Sep 2013 17:00:01 +0000 (18:00 +0100)]
ftpserver.pl: Added the ability to remember what messages are deleted
...as this will be required for IMAP CLOSE and EXPUNGE commands as well
as the POP3 RSET command.
Daniel Stenberg [Tue, 10 Sep 2013 21:18:43 +0000 (23:18 +0200)]
NI_MAXSERV: remove all use of it
Solaris with the SunStudio Compiler is reportedly missing this define,
but as we're using it without any good reason on all the places it was
used I've now instead switched to just use sensible buffer sizes that
fit a 32 bit decimal number. Which also happens to be smaller than the
common NI_MAXSERV value which is 32 on most machines.
Bug: http://curl.haxx.se/bug/view.cgi?id=1277
Reported-by: D.Flinkmann
Daniel Stenberg [Tue, 10 Sep 2013 21:05:04 +0000 (23:05 +0200)]
http2: use the support HTTP2 draft version in the upgrade header
... instead of HTTP/2.0 to work fine with the nghttpx proxy/server.
Steve Holme [Tue, 10 Sep 2013 19:15:29 +0000 (20:15 +0100)]
ldap.c: Fix compilation warning
warning: comparison between signed and unsigned integer expressions
Jiri Hruska [Tue, 10 Sep 2013 18:40:11 +0000 (20:40 +0200)]
imap/pop3/smtp: Speed up SSL connection initialization
Don't wait for the next callback call (usually 1 second) before
continuing with protocol specific connection initialization.
Steve Holme [Tue, 10 Sep 2013 18:30:07 +0000 (19:30 +0100)]
ldap.c: Corrected build error from commit
857f999353f333
Steve Holme [Tue, 10 Sep 2013 14:35:20 +0000 (15:35 +0100)]
RELEASE-NOTES: Corrected duplicate in
bfefe2400a16b8
Steve Holme [Tue, 10 Sep 2013 13:06:50 +0000 (14:06 +0100)]
RELEASE-NOTES: Corrected typo from
bfefe2400a16b8
Steve Holme [Tue, 10 Sep 2013 12:12:56 +0000 (13:12 +0100)]
RELEASE-NOTES: synced with
25c68903756d6b
Daniel Stenberg [Mon, 9 Sep 2013 21:05:22 +0000 (23:05 +0200)]
README.http2: explain nghttp2 a little
Steve Holme [Sun, 8 Sep 2013 22:08:21 +0000 (23:08 +0100)]
tests: Added test for POP3 TOP command
Steve Holme [Sun, 8 Sep 2013 21:53:27 +0000 (22:53 +0100)]
ftpserver.pl: Added support for POP3 TOP command
Steve Holme [Sun, 8 Sep 2013 21:42:35 +0000 (22:42 +0100)]
tests: Added test for POP3 UIDL command
Steve Holme [Sun, 8 Sep 2013 21:30:10 +0000 (22:30 +0100)]
ftpserver.pl: Added support for POP3 UIDL command
Daniel Stenberg [Mon, 9 Sep 2013 13:18:09 +0000 (15:18 +0200)]
http2: adjust to new nghttp2_pack_settings_payload proto
This function was modified in nghttp2 git commit
a1c3f89c72e51
Kamil Dudka [Mon, 9 Sep 2013 11:10:53 +0000 (13:10 +0200)]
url: handle abortion by read/write callbacks, too
Otherwise, the FTP protocol would unnecessarily hang 60 seconds if
aborted in the CURLOPT_HEADERFUNCTION callback.
Reported by: Tomas Mlcoch
Bug: https://bugzilla.redhat.com/1005686
Daniel Stenberg [Sun, 8 Sep 2013 22:01:52 +0000 (00:01 +0200)]
ldap: fix the build for systems with ldap_url_parse()
Make sure that the custom struct fields are only used by code that
doesn't use a struct defintion from the outside.
Attempts to fix the problem introduced in
3dc6fc42bfc61b
Jiri Hruska [Sun, 8 Sep 2013 23:05:14 +0000 (01:05 +0200)]
pingpong: Check SSL library buffers for already read data
Otherwise the connection can get stuck during various phases, waiting
for new data on the socket using select() etc., but it will never be
received as the data has already been read into SSL library.
Steve Holme [Sun, 8 Sep 2013 09:30:43 +0000 (10:30 +0100)]
imap: Fixed calculation of transfer when partial FETCH received
The transfer size would be calculated incorrectly if the email contained
within the FETCH response, had been partially received by the pingpong
layer. As such the following, example output, would be seen if the
amount remaining was smaller than the amount received:
* Excess found in a non pipelined read: excess = 1394, size = 262,
maxdownload = 262, bytecount = 1374
* transfer closed with -1112 bytes remaining to read
Bug: http://curl.haxx.se/mail/lib-2013-08/0170.html
Reported-by: John Dunn
Steve Holme [Sun, 8 Sep 2013 22:59:49 +0000 (23:59 +0100)]
ftpserver.pl: Fixed empty array checks
...from commits
28427b408326a1 and
e8313697b6554b.
Steve Holme [Sun, 8 Sep 2013 20:46:32 +0000 (21:46 +0100)]
ftpserver: Reworked AUTH support to allow for specifying the mechanisms
Renamed SUPPORTAUTH to AUTH and added support for specifying a list of
supported SASL mechanisms to return to the client.
Additionally added the directive to the FILEFORMAT document.
Steve Holme [Sun, 8 Sep 2013 20:17:47 +0000 (21:17 +0100)]
ftpserver: Reworked CAPA support to allow for specifying the capabilities
Renamed SUPPORTCAPA to CAPA and added support for specifying a list of
supported capabilities to return to the client.
Additionally added the directive to the FILEFORMAT document.
Steve Holme [Sun, 8 Sep 2013 19:16:49 +0000 (20:16 +0100)]
ftpserver.pl: Corrected POP3 LIST as message numbers should be contiguous
The message numbers given in the LIST response are an index into the
list, which are only valid for the current session, rather than being a
unique message identifier. An index would only be missing from the LIST
response if a DELE command had been issued within the same session and
had not been committed by the end of session QUIT command. Once
committed the POP3 server will regenerate the message numbers in the
next session to be contiguous again. As such our LIST response should
list message numbers contiguously until we support a DELE command in the
same session.
Should a POP3 user require the unique message ID for any or all
messages then they should use the extended UIDL command. This command
will be supported by the test ftpserver in an upcoming commit.
Clemens Gruber [Sun, 8 Sep 2013 17:01:26 +0000 (19:01 +0200)]
curl_easy_pause: suggest one way to unpause
Steve Holme [Sun, 8 Sep 2013 15:57:15 +0000 (16:57 +0100)]
tests: Updated descriptions to be more meaningful
Steve Holme [Sun, 8 Sep 2013 15:55:39 +0000 (16:55 +0100)]
tests: Added test for POP3 NOOP command
Steve Holme [Sun, 8 Sep 2013 15:41:12 +0000 (16:41 +0100)]
ftpserver.pl: Added support for POP3 NOOP command
Steve Holme [Sun, 8 Sep 2013 15:39:41 +0000 (16:39 +0100)]
ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'
Steve Holme [Sun, 8 Sep 2013 07:51:37 +0000 (08:51 +0100)]
tests: Added test for POP3 STAT command
Steve Holme [Sun, 8 Sep 2013 07:37:37 +0000 (08:37 +0100)]
ftpserver.pl: Added support for POP STAT command
Steve Holme [Sun, 8 Sep 2013 07:35:38 +0000 (08:35 +0100)]
ftpserver.pl: Moved POP3 QUIT handler into own function
Steve Holme [Sat, 7 Sep 2013 22:20:08 +0000 (23:20 +0100)]
ftpserver.pl: Reordered the POP3 handlers to be alphabetical
In preparation for additional POP3 tests, re-ordered the command
function defintions to be sorted alphabetically.
Steve Holme [Sat, 7 Sep 2013 22:14:54 +0000 (23:14 +0100)]
ftpserver.pl: Corrected misaligned indentation in POP3 handlers
Fixed incorrect indentation used in both the RETR_pop3 and LIST_pop3
functions which was 5 and 9 characters rather than 4 and 8.
Steve Holme [Sat, 7 Sep 2013 18:49:12 +0000 (19:49 +0100)]
tests: Added test for POP3 DELE command
Steve Holme [Sat, 7 Sep 2013 18:27:52 +0000 (19:27 +0100)]
ftpserver.pl: Added support for POP3 DELE command
Daniel Stenberg [Sat, 7 Sep 2013 17:47:26 +0000 (19:47 +0200)]
http2: include curl_memory.h
Detected by test 1132
Nick Zitzmann [Sat, 7 Sep 2013 15:00:11 +0000 (10:00 -0500)]
http: fix build warning under LLVM
When building the code using LLVM Clang without NGHTTP2, I was getting
this warning:
../lib/http.h:155:1: warning: empty struct is a GNU extension [-Wgnu]
Placing a dummy variable into the data structure silenced the warning.
Daniel Stenberg [Sat, 7 Sep 2013 11:01:43 +0000 (13:01 +0200)]
http2: actually init nghttp2 and send HTTP2-Settings properly
Daniel Stenberg [Sat, 7 Sep 2013 09:12:12 +0000 (11:12 +0200)]
README.http2: how to use it best with the multi API?
Daniel Stenberg [Sat, 7 Sep 2013 09:03:23 +0000 (11:03 +0200)]
http2: first embryo toward Upgrade:
Daniel Stenberg [Wed, 4 Sep 2013 21:24:15 +0000 (23:24 +0200)]
http: rename use_http_1_1 to use_http_1_1plus
Since it now actually says if 1.1 or a later version should be used.
Daniel Stenberg [Sat, 7 Sep 2013 09:12:36 +0000 (11:12 +0200)]
configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH
The compiler test used a variable before it was assigned when it tried
to see how it acts on a mismatching prototype, which could cause a false
positive.
Petr Písař [Tue, 20 Aug 2013 15:02:53 +0000 (17:02 +0200)]
Pass password to OpenSSL engine by user interface
Recent OpenSSL uses user interface abstraction to negotiate access to
private keys in the cryprographical engines. An OpenSSL application is
expected to implement the user interface. Otherwise a default one
provided by OpenSSL (interactive standard I/O) will be used and the
aplication will have no way how to pass a password to the engine.
Longer-desc: http://curl.haxx.se/mail/lib-2013-08/0265.html
Daniel Stenberg [Fri, 6 Sep 2013 21:27:47 +0000 (23:27 +0200)]
urlglob: improved error messages and column number on bad use
Introduce a convenience macro and keep of the column better so that it
can point out the offending column better.
Updated test 75 accordingly.
Daniel Stenberg [Fri, 6 Sep 2013 12:20:03 +0000 (14:20 +0200)]
urlglob: avoid error code translation
By using the correct values from the start we don't have to translate
them!
Daniel Stenberg [Fri, 6 Sep 2013 12:12:44 +0000 (14:12 +0200)]
urlglob: avoid NULL pointer dereference
Thanks to clang-analyzer
Gisle Vanem [Fri, 6 Sep 2013 11:56:35 +0000 (13:56 +0200)]
http2: use correct include for snprintf
Using the first little merge of nghttp2 into libcurl, I stumbeled on the
missing 'snprintf' in MSVCRT. Isn't this how we do it for other libcurl
files? I.e. use 'curl_msnprintf' and not 'snprintf' directly:
Daniel Stenberg [Fri, 6 Sep 2013 11:52:56 +0000 (13:52 +0200)]
--data: mention CRLF treatment when reading from file
Geoff Beier [Thu, 5 Sep 2013 21:51:53 +0000 (17:51 -0400)]
LDAP: fix bad free() when URL parsing failed
When an error occurs parsing an LDAP URL, The ludp->lud_attrs[i] entries
could be freed even though they sometimes point to data within an
allocated area.
This change introduces a lud_attrs_dup[] array for the duplicated string
pointers, and it removes the unused lud_exts array.
Bug: http://curl.haxx.se/mail/lib-2013-08/0209.html
Nick Zitzmann [Thu, 5 Sep 2013 23:57:06 +0000 (18:57 -0500)]
darwinssl: add support for PKCS#12 files for client authentication
I also documented the fact that the OpenSSL engine also supports them.
Daniel Stenberg [Thu, 5 Sep 2013 10:04:41 +0000 (12:04 +0200)]
symbols: added HTTP2 symbols and sorted list
CURL_HTTP_VERSION_2_0 and CURL_VERSION_HTTP2 are new
Daniel Stenberg [Thu, 5 Sep 2013 10:03:24 +0000 (12:03 +0200)]
configure: add HTTP2 as a curl-config --feature output
Fixes the test 1014 failure
Daniel Stenberg [Thu, 5 Sep 2013 07:56:05 +0000 (09:56 +0200)]
curl: unbreak --http1.0 again
I broke it in
2eabb7d590
Daniel Stenberg [Wed, 4 Sep 2013 20:32:57 +0000 (22:32 +0200)]
SASL: fix compiler warnings
comparison between signed and unsigned integer expressions
suggest parentheses around '&&' within '||' (twice)
Daniel Stenberg [Wed, 4 Sep 2013 20:28:16 +0000 (22:28 +0200)]
curl: add --http1.1 and --http2.0 options
Daniel Stenberg [Tue, 3 Sep 2013 21:32:08 +0000 (23:32 +0200)]
Curl_setopt: refuse CURL_HTTP_VERSION_2_0 if built without support
Daniel Stenberg [Tue, 3 Sep 2013 21:17:06 +0000 (23:17 +0200)]
http2: add http2.[ch] and add nghttp2 version output
Daniel Stenberg [Tue, 3 Sep 2013 21:14:51 +0000 (23:14 +0200)]
curl -V: output HTTP2 as a feature if present
Daniel Stenberg [Tue, 3 Sep 2013 21:11:07 +0000 (23:11 +0200)]
curl.h: add CURL_VERSION_HTTP2 as a feature
It isn't added as a separate protocol as HTTP2 will be done over HTTP://
URLs that can be upgraded to HTTP2 if the server supports it as well.
Steve Holme [Wed, 4 Sep 2013 20:27:01 +0000 (21:27 +0100)]
imap/smtp: Fixed incorrect SASL mechanism selection with XOAUTH2 servers
XOAUTH2 would be selected in preference to LOGIN and PLAIN if the IMAP
or SMTP server advertised support for it even though a user's password
was supplied but bearer token wasn't.
Modified the selection logic so that XOAUTH2 will only be selected if
the server supports it and A) The curl user/libcurl programmer has
specifically asked for XOAUTH via the ;AUTH=XOAUTH login option or 2)
The bearer token is specified. Obviously if XOAUTH is asked for via
the login option but no token is specified the user will receive a
authentication failure which makes more sense than no known
authentication mechanisms supported!
Daniel Stenberg [Mon, 2 Sep 2013 21:30:38 +0000 (23:30 +0200)]
curl.h: added CURL_HTTP_VERSION_2_0
Initial library considerations documented in lib/README.http2
Daniel Stenberg [Mon, 2 Sep 2013 21:14:23 +0000 (23:14 +0200)]
configure: added --with-nghttp2
Daniel Stenberg [Tue, 3 Sep 2013 22:01:03 +0000 (00:01 +0200)]
acinclude: fix --without-ca-path when cross-compiling
The commit
7b074a460b64811 to CURL_CHECK_CA_BUNDLE in 7.31 (don't check
for paths when cross-compiling) causes --without-ca-path to no longer
works when cross-compiling, since ca and capath only ever get set to
"no" when not cross-compiling, I attach a patch that works for me. Also
in the cross-compilation case, no ca-path seems to be a better default
(IMVHO) than empty ca-path.
Bug: http://curl.haxx.se/bug/view.cgi?id=1273
Patch-by: Stefan Neis
Steve Holme [Mon, 2 Sep 2013 19:39:53 +0000 (20:39 +0100)]
lib1512.c: Fixed compilation warning
An enumerated type is mixed with another type.
...as well as a small coding style error.
Guenter Knauf [Sun, 1 Sep 2013 21:08:29 +0000 (23:08 +0200)]
Killed warning 'res' might be used uninitialized.
Steve Holme [Sun, 1 Sep 2013 12:30:12 +0000 (13:30 +0100)]
url.c: Fixed compilation warning
An enumerated type is mixed with another type
Steve Holme [Sun, 1 Sep 2013 11:48:50 +0000 (12:48 +0100)]
easy.c: Fixed compilation warning
warning: `code' might be used uninitialized in this function
Daniel Stenberg [Sat, 31 Aug 2013 20:55:53 +0000 (22:55 +0200)]
-x: rephrased the --proxy section somewhat
Steve Holme [Sat, 31 Aug 2013 17:31:47 +0000 (18:31 +0100)]
tests: Added test for IMAP CHECK command
Steve Holme [Sat, 31 Aug 2013 17:29:15 +0000 (18:29 +0100)]
ftpserver.pl: Added support for the IMAP CHECK command
Guenter Knauf [Sat, 31 Aug 2013 17:12:35 +0000 (19:12 +0200)]
Removed reference to krb4.c.
Steve Holme [Sat, 31 Aug 2013 10:10:20 +0000 (11:10 +0100)]
ftpserver.pl: Corrected flawed logic in commit
1ca6ed7b75cad0
Steve Holme [Sat, 31 Aug 2013 09:49:49 +0000 (10:49 +0100)]
imap: Fixed response check for EXPUNGE command
Steve Holme [Sat, 31 Aug 2013 09:41:25 +0000 (10:41 +0100)]
ftpserver.pl: Added argument check to IMAP command handlers
Added BAD argument check to the following IMAP command handlers:
APPEND, STORE, LIST, EXAMINE, STATUS and SEARCH
Steve Holme [Sat, 31 Aug 2013 09:35:05 +0000 (10:35 +0100)]
ftpserver.pl: More whitespace corrections
LIST_imap() had a second level of indentation at 9 characters and not 8.
Steve Holme [Fri, 30 Aug 2013 21:11:17 +0000 (22:11 +0100)]
ftpserver.pl: Small correction tidy up
Corrected some IMAP variable names and whitespace issues.