Bill Nagel [Sat, 29 Nov 2014 17:59:29 +0000 (12:59 -0500)]
smb: Added configuration options for SMB
Added --enable-smb and --disable-smb configuration options for the
upcoming SMB/CIFS protocol support.
Peter Wu [Thu, 27 Nov 2014 22:59:17 +0000 (23:59 +0100)]
runtests.pl: fix startup of IPv6 servers
Commit curl-7_23_1
-143-g8218064 changed the parameter of
responsive_http_server to accept types other than IPv6 (converting
from a boolean to a string), but only considered the lower-case "ipv6"
and not the "IPv6" variant. This caused all servers to start in IPv4
mode instead.
This patch converts the remaining cases to "ipv6". While not strictly
necessary for the run*server variants, these got also converted for
consistency and to prevent future errors.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Peter Wu [Thu, 27 Nov 2014 22:59:16 +0000 (23:59 +0100)]
runtests.pl: fix warning message, remove duplicate value
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Steve Holme [Thu, 27 Nov 2014 22:11:23 +0000 (22:11 +0000)]
http.c: Fixed compilation warnings from features being disabled
warning: unused variable 'data'
warning: variable 'addcookies' set but not used
...and some very minor coding style policing.
Steve Holme [Thu, 27 Nov 2014 21:03:20 +0000 (21:03 +0000)]
RELEASE-NOTES: Synced with
c5399c827d
Steve Holme [Wed, 26 Nov 2014 23:23:31 +0000 (23:23 +0000)]
tests: Added SMTP with --crlf test case
Steve Holme [Wed, 26 Nov 2014 23:04:32 +0000 (23:04 +0000)]
docs: Updated for commit
4bd860a001 and SMTP Unix line ending conversion
Steve Holme [Wed, 26 Nov 2014 22:58:39 +0000 (22:58 +0000)]
smtp: Fixed const'ness of nread parameter in Curl_smtp_escape_eob()
...and some comment typos!
Steve Holme [Wed, 26 Nov 2014 22:44:28 +0000 (22:44 +0000)]
smtp: Added support for the conversion of Unix newlines during mail send
Added support for the automatic conversion of Unix newlines to CRLF
during mail uploads.
Feature: http://curl.haxx.se/bug/view.cgi?id=1456
Steve Holme [Tue, 25 Nov 2014 23:23:42 +0000 (23:23 +0000)]
CURLOPT_CRLF.3: Fixed inclusion of SMTP in listed protocols
Daniel Stenberg [Tue, 25 Nov 2014 13:25:02 +0000 (14:25 +0100)]
curl*3: added small examples
and some minor edits
Daniel Stenberg [Tue, 25 Nov 2014 10:56:43 +0000 (11:56 +0100)]
libcurl.3: fix formatting
refer to functions with the man page section properly
Daniel Stenberg [Tue, 25 Nov 2014 10:48:56 +0000 (11:48 +0100)]
man pages: SEE ALSO curl_multi_wait
Daniel Stenberg [Tue, 25 Nov 2014 10:48:38 +0000 (11:48 +0100)]
curl_multi_wait.3: clarify numfds being used if not NULL
Daniel Stenberg [Tue, 25 Nov 2014 10:45:38 +0000 (11:45 +0100)]
multi-single.c: switch to use curl_multi_wait
Makes the example much easier and straight-forward!
Daniel Stenberg [Tue, 25 Nov 2014 10:22:09 +0000 (11:22 +0100)]
testcurl: bump the version of this script!
Daniel Stenberg [Tue, 25 Nov 2014 09:36:47 +0000 (10:36 +0100)]
testcurl: skip reading the setup file if given enough cmdline info
This makes it much easier to run multiple tests in the same directory,
just altering the command lines used.
Daniel Stenberg [Tue, 25 Nov 2014 07:55:17 +0000 (08:55 +0100)]
select.c: fix compilation for VxWorks
Reported-by: Brian
Bug: http://curl.haxx.se/bug/view.cgi?id=1455
moparisthebest [Mon, 24 Nov 2014 18:30:09 +0000 (19:30 +0100)]
SSL: Add PEM format support for public key pinning
Kamil Dudka [Mon, 24 Nov 2014 14:03:16 +0000 (15:03 +0100)]
Revert "repository: ignore patch files generated by git"
This reverts commit
217024a687ce86eb6d2317822ed81c7e5abc4b61.
Bug: https://github.com/bagder/curl/commit/
217024a6#commitcomment-
8693738
Steve Holme [Sun, 23 Nov 2014 19:51:01 +0000 (19:51 +0000)]
multi.c: Fixed compilation warnings when no verbose string support
warning: variable 'connection_id' set but not used
warning: unused parameter 'lineno'
Steve Holme [Sun, 23 Nov 2014 17:22:22 +0000 (17:22 +0000)]
RELEASE-NOTES: Synced with
1450712e76
Steve Holme [Sun, 23 Nov 2014 16:31:39 +0000 (16:31 +0000)]
sasl: Tidied up some parameter comments
Steve Holme [Sun, 23 Nov 2014 16:22:37 +0000 (16:22 +0000)]
sasl: Reduced the need for two sets of NTLM functions
Steve Holme [Sun, 23 Nov 2014 15:58:24 +0000 (15:58 +0000)]
ntlm: Moved NSS initialisation to base decode function
Steve Holme [Sun, 23 Nov 2014 15:46:12 +0000 (15:46 +0000)]
http_ntlm: Fixed additional NSS initialisation call when decoding type-2
After commit
48d19acb7c the HTTP code would call Curl_nss_force_init()
twice when decoding a NTLM type-2 message, once directly and the other
through the call to Curl_sasl_decode_ntlm_type2_message().
Steve Holme [Sun, 23 Nov 2014 10:32:49 +0000 (10:32 +0000)]
ntlm: Fixed static'ness of local decode function
Steve Holme [Sun, 23 Nov 2014 10:17:36 +0000 (10:17 +0000)]
ntlm: Corrected some parameter names and comments
Steve Holme [Sat, 22 Nov 2014 23:12:44 +0000 (23:12 +0000)]
runtests.pl: Re-aligned feature support comments
Steve Holme [Sat, 22 Nov 2014 12:30:15 +0000 (12:30 +0000)]
runtests.pl: Use Kerberos and SPNEGO as proxies for the crypto feature
In addition to NTLM, use Kerberos and SPNEGO as proxies to the crypto
feature.
...and converted tab characters, from commit
4b4e8a5853, to spaces.
Steve Holme [Sat, 22 Nov 2014 12:24:13 +0000 (12:24 +0000)]
runtests.pl: Added support for SPNEGO
Steve Holme [Sat, 22 Nov 2014 12:18:17 +0000 (12:18 +0000)]
runtests.pl: Added Kerberos detection
Steve Holme [Sat, 22 Nov 2014 12:12:42 +0000 (12:12 +0000)]
runtests.pl: Added GSS-API detection
Steve Holme [Fri, 21 Nov 2014 18:44:58 +0000 (18:44 +0000)]
FILEFORMAT: Added SSPI, GSS-API and Kerberos to the features list
Steve Holme [Fri, 21 Nov 2014 18:42:40 +0000 (18:42 +0000)]
FILEFORMAT: Added test requires feature not present information
Such as !SSPI as we do for the NTLM and Digest tests.
Daniel Stenberg [Fri, 5 Sep 2014 22:05:03 +0000 (00:05 +0200)]
http.c: log if it notices HTTP 1.1 after a upgrade to http2
Daniel Stenberg [Sat, 2 Aug 2014 22:47:21 +0000 (00:47 +0200)]
test1801: first real http2 test case
Daniel Stenberg [Sat, 2 Aug 2014 22:46:39 +0000 (00:46 +0200)]
sws: initial tiny steps toward http2 support
Daniel Stenberg [Sat, 2 Aug 2014 22:46:16 +0000 (00:46 +0200)]
FILEFORMAT: mention the new upgrade support
Daniel Stenberg [Sat, 2 Aug 2014 21:51:46 +0000 (23:51 +0200)]
test1800: first plain-text http2 test case
Verifies the upgrade request, but gets a plain 1.1 response
Tatsuhiro Tsujikawa [Thu, 20 Nov 2014 12:44:00 +0000 (21:44 +0900)]
http: Disable pipelining for HTTP/2 and upgraded connections
This commit disables pipelining for HTTP/2 or upgraded connections. For
HTTP/2, we do not support multiplexing. In general, requests cannot be
pipelined in an upgraded connection, since it is now different protocol.
Brad Harder [Thu, 20 Nov 2014 09:27:09 +0000 (10:27 +0100)]
CURLOPT_POSTFIELDS.3: mention the COPYPOSTFIELDS option
Steve Holme [Wed, 19 Nov 2014 20:10:27 +0000 (20:10 +0000)]
multi-uv.c: Updated for curl coding standards
Steve Holme [Wed, 19 Nov 2014 20:04:21 +0000 (20:04 +0000)]
conncache: Fixed specifiers in infof() for long and size_t variables
Peter Wu [Wed, 19 Nov 2014 15:53:22 +0000 (16:53 +0100)]
cmake: add Kerberos to the supported features
Updated following commit
eda919f and
a4b7f71.
Acked-by: Brad King <brad.king@kitware.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Peter Wu [Wed, 19 Nov 2014 15:48:23 +0000 (16:48 +0100)]
cmake: fix NTLM detection when CURL_DISABLE_HTTP defined
Updated following changes in commit
f0d860d.
Acked-by: Brad King <brad.king@kitware.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Daniel Stenberg [Wed, 19 Nov 2014 13:06:07 +0000 (14:06 +0100)]
RELEASE-NOTES: synced with
cb13fad733e
Jay Satiro [Mon, 17 Nov 2014 07:26:03 +0000 (02:26 -0500)]
examples: Wait recommended 100ms when no file descriptors are ready
Prior to this change when no file descriptors were ready on platforms
other than Windows the multi examples would sleep whatever was in
timeout, which may or may not have been less than the minimum
recommended value [1] of 100ms.
[1]: http://curl.haxx.se/libcurl/c/curl_multi_fdset.html
Waldek Kozba [Tue, 7 Oct 2014 10:53:59 +0000 (12:53 +0200)]
multi-uv.c: close the file handle after download
Jon Spencer [Fri, 14 Nov 2014 18:32:47 +0000 (10:32 -0800)]
multi: inform about closed sockets before they are closed
When the connection code decides to close a socket it informs the multi
system via the Curl_multi_closed function. The multi system may, in
turn, invoke the CURLMOPT_SOCKETFUNCTION function with
CURL_POLL_REMOVE. This happens after the socket has already been
closed. Reorder the code so that CURL_POLL_REMOVE is called before the
socket is closed.
Guenter Knauf [Wed, 19 Nov 2014 11:39:20 +0000 (12:39 +0100)]
build: in Makefile.m32 moved target autodetection.
Moved target autodetection block after defining CC macro.
Guenter Knauf [Wed, 19 Nov 2014 10:46:02 +0000 (11:46 +0100)]
build: in Makefile.m32 simplify platform flags.
Guenter Knauf [Wed, 19 Nov 2014 10:38:37 +0000 (11:38 +0100)]
build: in Makefile.m32 try to detect 64bit target.
Brad King [Fri, 14 Nov 2014 21:33:14 +0000 (22:33 +0100)]
CMake: Simplify if() conditions on check result variables
Remove use of an old hack that takes advantage of the auto-dereference
behavior of the if() command to detect if a variable is defined. The
hack has the form:
if("${VAR} MATCHES "^${VAR}$")
where "${VAR}" is a macro argument reference. Use if(DEFINED) instead.
This also avoids warnings for CMake Policy CMP0054 in CMake 3.1.
Daniel Stenberg [Wed, 19 Nov 2014 10:17:45 +0000 (11:17 +0100)]
TODO-RELEASE: removed
Carlo Wood [Tue, 18 Nov 2014 22:02:40 +0000 (23:02 +0100)]
debug: added new connection cache output, plus fixups
Debug output 'typo' fix.
Don't print an extra "0x" in
* Pipe broke: handle 0x0x2546d88, url = /
Add debug output.
Print the number of connections in the connection cache when
adding one, and not only when one is removed.
Fix typos in comments.
Daniel Stenberg [Tue, 18 Nov 2014 19:51:54 +0000 (20:51 +0100)]
multi: move the ending condition into the loop as well
... as it was before I changed the loop in commit
e04ccbd50. It caused
test 2030 and 2032 to fail.
Steve Holme [Tue, 18 Nov 2014 20:25:05 +0000 (20:25 +0000)]
multi: Prefer we don't use CURLE_OK and NULL in comparisons
Daniel Stenberg [Tue, 18 Nov 2014 14:18:21 +0000 (15:18 +0100)]
multi_runsingle: use 'result' for local CURLcode storage
... and assign data->result only at the end. Makes the code more compact
(easier to read) and more similar to other code.
Daniel Stenberg [Tue, 18 Nov 2014 13:37:57 +0000 (14:37 +0100)]
multi_runsingle: rename result to rc
save 'result' for CURLcode types
Daniel Stenberg [Tue, 18 Nov 2014 13:34:55 +0000 (14:34 +0100)]
multi: make multi_runsingle loop internally
simplifies the use of this function at little cost.
Carlo Wood [Sun, 16 Nov 2014 20:53:56 +0000 (21:53 +0100)]
multi: when leaving for timeout, close accordingly
Fixes the problem when a transfer in a pipeline times out.
Guenter Knauf [Tue, 18 Nov 2014 13:25:41 +0000 (14:25 +0100)]
build: in Makefile.m32 add -m32 flag for 32bit.
Guenter Knauf [Tue, 18 Nov 2014 12:47:13 +0000 (13:47 +0100)]
mk-ca-bundle.vbs: update copyright year.
Guenter Knauf [Tue, 18 Nov 2014 12:44:03 +0000 (13:44 +0100)]
build: in Makefile.m32 pass -F flag to windres.
Steve Holme [Tue, 18 Nov 2014 00:01:27 +0000 (00:01 +0000)]
config-win32: Fixed build targets for the VS2012+ Windows XP toolset
Even though commit
23e70e1cc6 mentioned the v110_xp toolset, I had
forgotten to include the relevant pre-processor definitions.
Steve Holme [Sun, 16 Nov 2014 22:44:58 +0000 (22:44 +0000)]
sasl_sspi: Removed note about the NTLM functions being a wrapper
Steve Holme [Sun, 16 Nov 2014 18:19:58 +0000 (18:19 +0000)]
connect.c: Fixed compilation warning when no verbose string support
warning: unused parameter 'reason'
Steve Holme [Sun, 16 Nov 2014 18:16:27 +0000 (18:16 +0000)]
easy.c: Fixed compilation warning when no verbose string support
warning: unused parameter 'easy'
Steve Holme [Sun, 16 Nov 2014 17:27:44 +0000 (17:27 +0000)]
win32: Updated some legacy APIs to use the newer extended versions
Updated the usage of some legacy APIs, that are preventing curl from
compiling for Windows Store and Windows Phone build targets.
Suggested-by: Stefan Neis
Feature: http://sourceforge.net/p/curl/feature-requests/82/
Steve Holme [Sun, 16 Nov 2014 17:18:19 +0000 (17:18 +0000)]
config-win32: Introduce build targets for VS2012+
Visual Studio 2012 introduced support for Windows Store apps as well as
supporting Windows Phone 8. Introduced build targets that allow more
modern APIs to be used as certain legacy ones are not available on these
new platforms.
Steve Holme [Sun, 16 Nov 2014 14:39:26 +0000 (14:39 +0000)]
sasl_sspi: Fixed compilation warnings when no verbose string support
Steve Holme [Sun, 16 Nov 2014 13:27:03 +0000 (13:27 +0000)]
sasl_sspi: Added base64 decoding debug failure messages
Just like in the NTLM code, added infof() failure messages for
DIGEST-MD5 and GSSAPI authentication when base64 decoding fails.
Steve Holme [Sun, 16 Nov 2014 13:18:26 +0000 (13:18 +0000)]
ntlm: Moved the SSPI based Type-3 message generation into the SASL module
Steve Holme [Sun, 16 Nov 2014 12:58:04 +0000 (12:58 +0000)]
ntlm: Moved the SSPI based Type-2 message decoding into the SASL module
Steve Holme [Sun, 16 Nov 2014 12:45:30 +0000 (12:45 +0000)]
ntlm: Moved the SSPI based Type-1 message generation into the SASL module
Michael Osipov [Sun, 16 Nov 2014 09:50:06 +0000 (09:50 +0000)]
kerberos: Use symbol qualified with _KERBEROS5
For consistency renamed USE_KRB5 to USE_KERBEROS5.
Jay Satiro [Fri, 14 Nov 2014 08:59:46 +0000 (03:59 -0500)]
examples: Don't call select() to sleep on windows
Windows does not support using select() for sleeping without a dummy
socket. Instead use Windows' Sleep() and sleep for 100ms which is the
minimum suggested value in the curl_multi_fdset() doc.
Prior to this change the multi examples would exit prematurely since
select() would error instead of sleeping when called without an fd.
Reported-by: Johan Lantz
Bug: http://curl.haxx.se/mail/lib-2014-11/0221.html
Tatsuhiro Tsujikawa [Fri, 14 Nov 2014 15:38:29 +0000 (00:38 +0900)]
http2: Don't send Upgrade headers when we already do HTTP/2
Steve Holme [Sat, 15 Nov 2014 18:35:40 +0000 (18:35 +0000)]
sasl: Corrected Curl_sasl_build_spn() function description
There was a mismatch in function parameter names.
Steve Holme [Fri, 14 Nov 2014 14:54:21 +0000 (14:54 +0000)]
tool: Removed krb4 from the supported features
Although libcurl would never return CURL_VERSION_KERBEROS4 after 7.33,
so would not be output with --version, removed krb4 from the supported
features output.
Michael Osipov [Sat, 15 Nov 2014 14:08:43 +0000 (14:08 +0000)]
tool: Use Kerberos for supported features
Steve Holme [Sat, 15 Nov 2014 13:02:31 +0000 (13:02 +0000)]
urldata: Don't define sec_complete when no GSS-API support present
This variable is only used with HAVE_GSSAPI is defined by the FTP code
so let's place the definition with the other GSS-API based variables.
Michael Osipov [Sat, 15 Nov 2014 11:10:29 +0000 (11:10 +0000)]
docs: Use consistent naming for Kerberos
Steve Holme [Sat, 15 Nov 2014 00:27:53 +0000 (00:27 +0000)]
TODO: Lets support QOP options in GSSAPI authentication
Steve Holme [Fri, 14 Nov 2014 22:20:28 +0000 (22:20 +0000)]
sasl_sspi: Corrected a couple of comment typos
Steve Holme [Fri, 14 Nov 2014 21:16:08 +0000 (21:16 +0000)]
sasl: Moved Curl_sasl_gssapi_cleanup() definition into header file
Rather than define the function as extern in the source files that use
it, moved the function declaration into the SASL header file just like
the Digest and NTLM clean-up functions.
Additionally, added a function description comment block.
Steve Holme [Fri, 14 Nov 2014 21:05:38 +0000 (21:05 +0000)]
sasl_sspi: Added missing RFC reference for HTTP Digest authentication
Steve Holme [Fri, 14 Nov 2014 21:02:50 +0000 (21:02 +0000)]
ntlm: Clean-up and standardisation of base64 decoding
Steve Holme [Fri, 14 Nov 2014 20:43:15 +0000 (20:43 +0000)]
ntlm: We prefer 'CURLcode result'
Brad King [Mon, 10 Nov 2014 18:56:10 +0000 (19:56 +0100)]
CMake: Restore order-dependent library checks
Revert commit
2257deb502 (Cmake: Avoid cycle directory dependencies,
2014-08-22) and add a comment explaining the purpose of the original
code.
The check_library_exists_concat macro is intended to be called multiple
times on a sequence of possibly dependent libraries. Later libraries
may depend on earlier libraries when they are static. They cannot be
safely linked in reverse order on some platforms.
Signed-off-by: Brad King <brad.king@kitware.com>
Brad King [Mon, 10 Nov 2014 18:56:09 +0000 (19:56 +0100)]
CMake: Restore order-dependent header checks
Revert commit
1269df2e3b (Cmake: Don't check for all headers each
time, 2014-08-15) and add a comment explaining the purpose of the
original code.
The check_include_file_concat macro is intended to be called multiple
times on a sequence of possibly dependent headers. Later headers
may depend on earlier headers to provide declarations. They cannot
be safely included independently on some platforms.
For example, many POSIX APIs document including sys/types.h before some
other headers. Also on some OS X versions sys/socket.h must be included
before net/if.h or the check for the latter will fail.
Signed-off-by: Brad King <brad.king@kitware.com>
Peter Wu [Thu, 13 Nov 2014 22:06:44 +0000 (23:06 +0100)]
test22: expand a backtick command
This is the only user of the backtick operator in the command. As the
commands will soon not be executed by a shell anymore (but by perl),
replace the command with its output.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Daniel Stenberg [Thu, 13 Nov 2014 15:02:52 +0000 (16:02 +0100)]
RELEASE-NOTES: synced with
2ee3c63b13
Daniel Stenberg [Thu, 13 Nov 2014 14:39:15 +0000 (15:39 +0100)]
http2: fix switched macro when http2 is not enabled
Tatsuhiro Tsujikawa [Wed, 12 Nov 2014 17:07:24 +0000 (02:07 +0900)]
http2: Deal with HTTP/2 data inside response header buffer
Previously if HTTP/2 traffic is appended to HTTP Upgrade response header
(thus they are in the same buffer), the trailing HTTP/2 traffic is not
processed and lost. The appended data is most likely SETTINGS frame.
If it is lost, nghttp2 library complains server does not obey the HTTP/2
protocol and issues GOAWAY frame and curl eventually drops connection.
This commit fixes this problem and now trailing data is processed.
Steve Holme [Tue, 11 Nov 2014 00:04:05 +0000 (00:04 +0000)]
configure: Fixed inclusion of krb5 when CURL_DISABLE_CRYPTO_AUTH is defined
Commit
fe0f8967bf fixed a problem with krb5 not being defined as a
supported feature when HAVE_GSSAPI is defined, however, it should
only be included if CURL_DISABLE_CRYPTO_AUTH is not set, like when
SPNEGO is listed as a feature.
Daniel Stenberg [Mon, 10 Nov 2014 09:09:40 +0000 (10:09 +0100)]
multi: removed Curl_multi_set_easy_connection
It isn't used anywhere!
Reported-by: Carlo Wood
Peter Wu [Thu, 6 Nov 2014 00:32:46 +0000 (01:32 +0100)]
symbol-scan.pl: do not require autotools
Makes test1119 pass when building with cmake.
configurehelp.pm is generated by configure (autotools). As cmake does
not provide a separate variable for the C preprocessor, default to cpp.
Before commit
ef24ecde68a5f577a7f0f423a767620f09a0ab16 ("symbol-scan:
use configure script knowledge about how to run the C preprocessor"),
this tool would also use 'cpp'.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Peter Wu [Thu, 6 Nov 2014 00:32:45 +0000 (01:32 +0100)]
cmake: add ENABLE_THREADED_RESOLVER, rename ARES
Fix detection of the AsynchDNS feature which not just depends on
pthreads support, but also on whether USE_POSIX_THREADS is set or not.
Caught by test 1014.
This patch adds a new ENABLE_THREADED_RESOLVER option (corresponding to
--enable-threaded-resolver of autotools) which also needs a check for
HAVE_PTHREAD_H.
For symmetry with autotools, CURL_USE_ARES is renamed to ENABLE_ARES
(--enable-ares). Checks that test for the availability actually use
USE_ARES instead as that is the result of whether a-res is available or
not (in practice this does not matter as CARES is marked as required
package, but nevertheless it is better to write the intent).
Signed-off-by: Peter Wu <peter@lekensteyn.nl>