]> granicus.if.org Git - curl/log
curl
10 years agosasl_gssapi: Fixed missing include from commit d3cca934ee
Steve Holme [Thu, 4 Dec 2014 22:29:41 +0000 (22:29 +0000)]
sasl_gssapi: Fixed missing include from commit d3cca934ee

10 years agoexamples: remove sony.com from 10-at-a-time
Jay Satiro [Thu, 20 Nov 2014 17:46:49 +0000 (12:46 -0500)]
examples: remove sony.com from 10-at-a-time

Prior to this change the 10-at-a-time example showed CURLE_RECV_ERROR
for the sony website because it ends the connection when the request is
missing a user agent.

10 years agosasl_gssapi: Fixed missing decoding debug failure message
Steve Holme [Thu, 4 Dec 2014 22:19:24 +0000 (22:19 +0000)]
sasl_gssapi: Fixed missing decoding debug failure message

10 years agosasl_gssapi: Fixed honouring of no mutual authentication
Steve Holme [Thu, 4 Dec 2014 21:59:20 +0000 (21:59 +0000)]
sasl_gssapi: Fixed honouring of no mutual authentication

10 years agosasl_sspi: Added more Kerberos V5 decoding debug failure messages
Steve Holme [Thu, 4 Dec 2014 21:04:01 +0000 (21:04 +0000)]
sasl_sspi: Added more Kerberos V5 decoding debug failure messages

10 years agodocs: Fix FAILONERROR typos
Anthon Pang [Thu, 4 Dec 2014 19:51:06 +0000 (14:51 -0500)]
docs: Fix FAILONERROR typos

It returns error for >= 400 HTTP responses.

Bug: https://github.com/bagder/curl/pull/129

10 years agotool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output
Peter Wu [Thu, 4 Dec 2014 19:01:41 +0000 (11:01 -0800)]
tool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output

Mark CURLOPT_UNIX_SOCKET_PATH as string to ensure that it ends up as
option in the file generated by --libcurl.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agoopts: fix CURLOPT_UNIX_SOCKET_PATH formatting
Peter Wu [Thu, 4 Dec 2014 22:46:51 +0000 (14:46 -0800)]
opts: fix CURLOPT_UNIX_SOCKET_PATH formatting

Add .nf and .fi such that the code gets wrapped in a pre on the web.
Fixed grammar, fixed formatting of the "See also" items.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agoOS400: enable Unix sockets.
Patrick Monnerat [Thu, 4 Dec 2014 14:34:03 +0000 (15:34 +0100)]
OS400: enable Unix sockets.

10 years agoRELEASE-NOTES: synced with b216427e73b5e9
Daniel Stenberg [Thu, 4 Dec 2014 05:15:41 +0000 (21:15 -0800)]
RELEASE-NOTES: synced with b216427e73b5e9

10 years agoopts: added CURLOPT_UNIX_SOCKET_PATH to Makefile.am
Daniel Stenberg [Thu, 4 Dec 2014 02:42:24 +0000 (18:42 -0800)]
opts: added CURLOPT_UNIX_SOCKET_PATH to Makefile.am

10 years agoupdateconninfo: clear destination struct before getsockname()
Daniel Stenberg [Thu, 4 Dec 2014 01:46:15 +0000 (02:46 +0100)]
updateconninfo: clear destination struct before getsockname()

Otherwise we may read uninitialized bytes later in the unix-domain
sockets case.

10 years agocurl.1: added --unix-socket
Daniel Stenberg [Wed, 3 Dec 2014 01:35:12 +0000 (02:35 +0100)]
curl.1: added --unix-socket

10 years agotool: add --unix-socket option
Peter Wu [Thu, 27 Nov 2014 22:59:26 +0000 (23:59 +0100)]
tool: add --unix-socket option

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agolibcurl: add UNIX domain sockets support
Peter Wu [Thu, 27 Nov 2014 22:59:25 +0000 (23:59 +0100)]
libcurl: add UNIX domain sockets support

The ability to do HTTP requests over a UNIX domain socket has been
requested before, in Apr 2008 [0][1] and Sep 2010 [2]. While a
discussion happened, no patch seems to get through. I decided to give it
a go since I need to test a nginx HTTP server which listens on a UNIX
domain socket.

One patch [3] seems to make it possible to use the
CURLOPT_OPENSOCKETFUNCTION function to gain a UNIX domain socket.
Another person wrote a Go program which can do HTTP over a UNIX socket
for Docker[4] which uses a special URL scheme (though the name contains
cURL, it has no relation to the cURL library).

This patch considers support for UNIX domain sockets at the same level
as HTTP proxies / IPv6, it acts as an intermediate socket provider and
not as a separate protocol. Since this feature affects network
operations, a new feature flag was added ("unix-sockets") with a
corresponding CURL_VERSION_UNIX_SOCKETS macro.

A new CURLOPT_UNIX_SOCKET_PATH option is added and documented. This
option enables UNIX domain sockets support for all requests on the
handle (replacing IP sockets and skipping proxies).

A new configure option (--enable-unix-sockets) and CMake option
(ENABLE_UNIX_SOCKETS) can disable this optional feature. Note that I
deliberately did not mark this feature as advanced, this is a
feature/component that should easily be available.

 [0]: http://curl.haxx.se/mail/lib-2008-04/0279.html
 [1]: http://daniel.haxx.se/blog/2008/04/14/http-over-unix-domain-sockets/
 [2]: http://sourceforge.net/p/curl/feature-requests/53/
 [3]: http://curl.haxx.se/mail/lib-2008-04/0361.html
 [4]: https://github.com/Soulou/curl-unix-socket

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agotests: add two HTTP over UNIX socket tests
Peter Wu [Thu, 27 Nov 2014 22:59:24 +0000 (23:59 +0100)]
tests: add two HTTP over UNIX socket tests

test1435: a simple test that checks whether a HTTP request can be
performed over the UNIX socket. The hostname/port are interpreted
by sws and should be ignored by cURL.

test1436: test for the ability to do two requests to the same host,
interleaved with one to a different hostname.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agotests: add HTTP UNIX socket server testing support
Peter Wu [Thu, 27 Nov 2014 22:59:23 +0000 (23:59 +0100)]
tests: add HTTP UNIX socket server testing support

The variable `$ipvnum` can now contain "unix" besides the integers 4
and 6 since the variable. Functions which receive this parameter
have their `$port` parameter renamed to `$port_or_path` to support a
path to the UNIX domain socket (as a "port" is only meaningful for TCP).

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agosws: try to remove socket and retry bind
Peter Wu [Thu, 27 Nov 2014 22:59:22 +0000 (23:59 +0100)]
sws: try to remove socket and retry bind

If sws is killed it might leave a stale socket file on the filesystem
which would cause an EADDRINUSE error. After this patch, it is checked
whether the socket is really stale and if so, the socket file gets
removed and another bind is executed.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agosws: add UNIX domain socket support
Peter Wu [Wed, 3 Dec 2014 01:20:00 +0000 (02:20 +0100)]
sws: add UNIX domain socket support

This extends sws with a --unix-socket option which causes the port to
be ignored (as the server now listens on the path specified by
--unix-socket). This feature will be available in the following patch
that enables checking for UNIX domain socket support.

Proxy support (CONNECT) is not considered nor tested. It does not make
sense anyway, first connecting through a TCP proxy, then let that TCP
proxy connect to a UNIX socket.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agosws: restrict TCP_NODELAY to IP sockets
Peter Wu [Thu, 27 Nov 2014 22:59:20 +0000 (23:59 +0100)]
sws: restrict TCP_NODELAY to IP sockets

TCP_NODELAY does not make sense for Unix sockets, so enable it only if
the socket is using IP.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agocurl.1: fix trivial typo
Dave Reisner [Wed, 3 Dec 2014 19:56:34 +0000 (14:56 -0500)]
curl.1: fix trivial typo

10 years agosasl_gssapi: Added body to Curl_sasl_create_gssapi_user_message()
Steve Holme [Wed, 3 Dec 2014 19:51:32 +0000 (19:51 +0000)]
sasl_gssapi: Added body to Curl_sasl_create_gssapi_user_message()

10 years agosasl_gssapi: Added body to Curl_sasl_gssapi_cleanup()
Steve Holme [Wed, 3 Dec 2014 18:57:48 +0000 (18:57 +0000)]
sasl_gssapi: Added body to Curl_sasl_gssapi_cleanup()

10 years agosasl_gssapi: Added Curl_sasl_build_gssapi_spn() function
Steve Holme [Wed, 3 Dec 2014 18:38:43 +0000 (18:38 +0000)]
sasl_gssapi: Added Curl_sasl_build_gssapi_spn() function

Added helper function for returning a GSS-API compatible SPN.

10 years agoNSS: enable the CAPATH option
Daniel Stenberg [Wed, 3 Dec 2014 14:20:40 +0000 (06:20 -0800)]
NSS: enable the CAPATH option

Bug: http://curl.haxx.se/bug/view.cgi?id=1457
Patch-by: Tomasz Kojm
10 years agosasl_gssapi: Enable USE_KERBEROS5 for GSS-API based builds
Steve Holme [Wed, 3 Dec 2014 07:13:30 +0000 (07:13 +0000)]
sasl_gssapi: Enable USE_KERBEROS5 for GSS-API based builds

10 years agosasl_gssapi: Added GSS-API based Kerberos V5 variables
Steve Holme [Wed, 3 Dec 2014 06:59:41 +0000 (06:59 +0000)]
sasl_gssapi: Added GSS-API based Kerberos V5 variables

10 years agosws.c: Fixed compilation warning when IPv6 is disabled
Steve Holme [Wed, 3 Dec 2014 00:00:40 +0000 (00:00 +0000)]
sws.c: Fixed compilation warning when IPv6 is disabled

sws.c:69: warning: comma at end of enumerator list

10 years agosasl_gssapi: Made log_gss_error() a common GSS-API function
Steve Holme [Tue, 2 Dec 2014 22:21:58 +0000 (22:21 +0000)]
sasl_gssapi: Made log_gss_error() a common GSS-API function

Made log_gss_error() a common function so that it can be used in both
the http_negotiate code as well as the curl_sasl_gssapi code.

10 years agosasl_gssapi: Introduced GSS-API based SASL module
Steve Holme [Tue, 2 Dec 2014 21:52:38 +0000 (21:52 +0000)]
sasl_gssapi: Introduced GSS-API based SASL module

Added the initial version of curl_sasl_gssapi.c and updated the project
files in preparation for adding GSS-API based Kerberos V5 support.

10 years agosmb: Don't try to connect with empty credentials
Steve Holme [Tue, 2 Dec 2014 21:04:23 +0000 (21:04 +0000)]
smb: Don't try to connect with empty credentials

On some platforms curl would crash if no credentials were used. As such
added detection of such a use case to prevent this from happening.

Reported-by: Gisle Vanem
10 years agosmb.c: Coding policing of pointer usage
Steve Holme [Tue, 2 Dec 2014 20:50:49 +0000 (20:50 +0000)]
smb.c: Coding policing of pointer usage

10 years agoconfigure: Fixed inclusion of SMB when no crypto engines available
Steve Holme [Tue, 2 Dec 2014 18:36:24 +0000 (18:36 +0000)]
configure: Fixed inclusion of SMB when no crypto engines available

10 years agobuild: in Makefile.m32 simplified autodetection.
Guenter Knauf [Mon, 1 Dec 2014 15:37:19 +0000 (16:37 +0100)]
build: in Makefile.m32 simplified autodetection.

10 years agosws: move away from IPv4/IPv4-only assumption
Peter Wu [Thu, 27 Nov 2014 22:59:19 +0000 (23:59 +0100)]
sws: move away from IPv4/IPv4-only assumption

Instead of depending the socket domain type on use_ipv6, specify the
domain type (AF_INET / AF_INET6) as variable. An enum is used here with
switch to avoid compiler warnings in connect_to, complaining that rc
is possibly undefined (which is not possible as socket_domain is
always set).

Besides abstracting the socket type, make the debugging messages be
independent on IP (introduce location_str which points to "port XXXXX").
Rename "ipv_inuse" to "socket_type" and tighten the scope (main).

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agolib/connect: restrict IP/TCP options to said sockets
Peter Wu [Thu, 27 Nov 2014 22:59:18 +0000 (23:59 +0100)]
lib/connect: restrict IP/TCP options to said sockets

This patch prepares for adding UNIX domain sockets support.

TCP_NODELAY and TCP_KEEPALIVE are specific to TCP/IP sockets, so do not
apply these to other socket types. bindlocal only works for IP sockets
(independent of TCP/UDP), so filter that out too for other types.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agosmb.c: use size_t as input argument types for msg sizes
Daniel Stenberg [Sun, 30 Nov 2014 22:11:44 +0000 (23:11 +0100)]
smb.c: use size_t as input argument types for msg sizes

This fixes warnings about conversions to int

10 years agoversion: The next release will become 7.40.0
Steve Holme [Sun, 30 Nov 2014 22:01:13 +0000 (22:01 +0000)]
version: The next release will become 7.40.0

10 years agodocs: Updated for the SMB protocol
Bill Nagel [Sun, 30 Nov 2014 21:51:26 +0000 (16:51 -0500)]
docs: Updated for the SMB protocol

This patch updates the documentation for the SMB/CIFS protocol.

10 years agocurl tool: Exclude SMB from the protocol redirect
Steve Holme [Sun, 30 Nov 2014 21:28:22 +0000 (21:28 +0000)]
curl tool: Exclude SMB from the protocol redirect

As local files could be accessed through \\localhost\c$.

10 years agocurl tool: Enable support for the SMB protocol
Bill Nagel [Sun, 30 Nov 2014 16:27:03 +0000 (11:27 -0500)]
curl tool: Enable support for the SMB protocol

This patch enables SMB/CIFS support in the curl command-line tool.

10 years agosmb.c: Fixed compilation warnings
Steve Holme [Sun, 30 Nov 2014 21:14:42 +0000 (21:14 +0000)]
smb.c: Fixed compilation warnings

smb.c:398: warning: comparison of integers of different signs:
           'ssize_t' (aka 'long') and 'unsigned long'
smb.c:443: warning: comparison of integers of different signs:
           'ssize_t' (aka 'long') and 'unsigned long'

10 years agolibcurl: Exclude SMB from the protocol redirect
Steve Holme [Sun, 30 Nov 2014 20:56:01 +0000 (20:56 +0000)]
libcurl: Exclude SMB from the protocol redirect

As local files could be accessed through \\localhost\c$.

10 years agolibcurl: Enable support for the SMB protocol
Bill Nagel [Sun, 30 Nov 2014 16:18:46 +0000 (11:18 -0500)]
libcurl: Enable support for the SMB protocol

This patch enables SMB/CIFS support in libcurl.

10 years agosmb.c: Fixed compilation warnings
Steve Holme [Sun, 30 Nov 2014 20:10:23 +0000 (20:10 +0000)]
smb.c: Fixed compilation warnings

smb.c:322: warning: conversion to 'short unsigned int' from 'unsigned
           int' may alter its value
smb.c:323: warning: conversion to 'short unsigned int' from 'unsigned
           int' may alter its value
smb.c:482: warning: conversion to 'short unsigned int' from 'int' may
           alter its value
smb.c:521: warning: conversion to 'unsigned int' from 'curl_off_t' may
           alter its value
smb.c:549: warning: conversion to 'unsigned int' from 'curl_off_t' may
           alter its value
smb.c:550: warning: conversion to 'short unsigned int' from 'int' may
           alter its value

10 years agosmb.c: Renamed SMB command message variables to avoid compiler warnings
Steve Holme [Sun, 30 Nov 2014 18:56:36 +0000 (18:56 +0000)]
smb.c: Renamed SMB command message variables to avoid compiler warnings

smb.c:489: warning: declaration of 'close' shadows a global declaration
smb.c:511: warning: declaration of 'read' shadows a global declaration
smb.c:528: warning: declaration of 'write' shadows a global declaration

10 years agosmb.c: Fixed compilation warnings
Steve Holme [Sun, 30 Nov 2014 18:29:23 +0000 (18:29 +0000)]
smb.c: Fixed compilation warnings

smb.c:212: warning: unused parameter 'done'
smb.c:380: warning: ISO C does not allow extra ';' outside of a function
smb.c:812: warning: unused parameter 'premature'
smb.c:822: warning: unused parameter 'dead'

10 years agosmb.c: Fixed compilation warnings
Steve Holme [Sun, 30 Nov 2014 18:11:16 +0000 (18:11 +0000)]
smb.c: Fixed compilation warnings

smb.c:311: warning: conversion from 'unsigned __int64' to 'u_short',
           possible loss of data
smb.c:425: warning: conversion from '__int64' to 'unsigned short',
           possible loss of data
smb.c:452: warning: conversion from '__int64' to 'unsigned short',
           possible loss of data

10 years agosmb.c: Fixed compilation warnings
Steve Holme [Sun, 30 Nov 2014 18:07:24 +0000 (18:07 +0000)]
smb.c: Fixed compilation warnings

smb.c:162: error: comma at end of enumerator list
smb.c:469: warning: conversion from 'size_t' to 'unsigned short',
           possible loss of data
smb.c:517: warning: conversion from 'curl_off_t' to 'unsigned int',
           possible loss of data
smb.c:545: warning: conversion from 'curl_off_t' to 'unsigned int',
           possible loss of data

10 years agosmb: Added initial SMB functionality
Bill Nagel [Sun, 30 Nov 2014 16:09:41 +0000 (11:09 -0500)]
smb: Added initial SMB functionality

Initial implementation of the SMB/CIFS protocol.

10 years agosmb: Added SMB handler interfaces
Bill Nagel [Sun, 30 Nov 2014 15:39:14 +0000 (10:39 -0500)]
smb: Added SMB handler interfaces

Added the SMB and SMBS handler interface structures and associated
functions required for SMB/CIFS operation.

10 years agotransfer: Code style policing
Steve Holme [Sun, 30 Nov 2014 14:48:01 +0000 (14:48 +0000)]
transfer: Code style policing

Prefer ! rather than NULL in if statements, added comments and updated
function spacing, argument spacing and line spacing to be more readble.

10 years agotransfer: Fixed existing scratch buffer being checked for NULL twice
Steve Holme [Sun, 30 Nov 2014 14:45:20 +0000 (14:45 +0000)]
transfer: Fixed existing scratch buffer being checked for NULL twice

If the scratch buffer already existed when the CRLF conversion was
performed then the buffer pointer would be checked twice for NULL. This
second check is only necessary if the call to malloc() was performed by
the first check.

10 years agosmtp: Fixed dot stuffing being performed when no new data read
Steve Holme [Sun, 30 Nov 2014 14:24:35 +0000 (14:24 +0000)]
smtp: Fixed dot stuffing being performed when no new data read

Whilst I had moved the dot stuffing code from being performed before
CRLF conversion takes place to after it, in commit 4bd860a001, I had
moved it outside the 'when something read' block of code when meant
it could perform the dot stuffing twice on partial send if nread
happened to contain the right values. It also meant the function could
potentially read past the end of buffer. This was highlighted by the
following warning:

warning: `nread' might be used uninitialized in this function

10 years agosmb.h: fixed picky compiler warning
Daniel Stenberg [Sat, 29 Nov 2014 22:06:04 +0000 (23:06 +0100)]
smb.h: fixed picky compiler warning

smb.h:30:16: error: comma at end of enumerator list [-Werror=pedantic]

10 years agotests: Disable test 1013 until SMB is fully added
Steve Holme [Sat, 29 Nov 2014 21:32:02 +0000 (21:32 +0000)]
tests: Disable test 1013 until SMB is fully added

10 years agosmb: Added SMB protocol and port definitions
Bill Nagel [Sat, 29 Nov 2014 19:19:23 +0000 (14:19 -0500)]
smb: Added SMB protocol and port definitions

Added the necessary protocol and port definitions in order to support
SMB/CIFS.

10 years agosmb: Added internal SMB definitions and structures
Bill Nagel [Sat, 29 Nov 2014 19:03:53 +0000 (14:03 -0500)]
smb: Added internal SMB definitions and structures

Added the internal definitions and structures necessary for SMB/CIFS
support.

10 years agosmb: Added SMB connection structure
Bill Nagel [Sat, 29 Nov 2014 18:33:52 +0000 (13:33 -0500)]
smb: Added SMB connection structure

Added the connection structure that will be required in urldata.h for
SMB/CIFS based connections.

10 years agosmb: Added initial source files for SMB
Bill Nagel [Sat, 29 Nov 2014 18:12:44 +0000 (13:12 -0500)]
smb: Added initial source files for SMB

Added the initial source files and updated the relevant project files in
order to support SMB/CIFS.

10 years agosmb: Added configuration options for SMB
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.

10 years agoruntests.pl: fix startup of IPv6 servers
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>
10 years agoruntests.pl: fix warning message, remove duplicate value
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>
10 years agohttp.c: Fixed compilation warnings from features being disabled
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.

10 years agoRELEASE-NOTES: Synced with c5399c827d
Steve Holme [Thu, 27 Nov 2014 21:03:20 +0000 (21:03 +0000)]
RELEASE-NOTES: Synced with c5399c827d

10 years agotests: Added SMTP with --crlf test case
Steve Holme [Wed, 26 Nov 2014 23:23:31 +0000 (23:23 +0000)]
tests: Added SMTP with --crlf test case

10 years agodocs: Updated for commit 4bd860a001 and SMTP Unix line ending conversion
Steve Holme [Wed, 26 Nov 2014 23:04:32 +0000 (23:04 +0000)]
docs: Updated for commit 4bd860a001 and SMTP Unix line ending conversion

10 years agosmtp: Fixed const'ness of nread parameter in Curl_smtp_escape_eob()
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!

10 years agosmtp: Added support for the conversion of Unix newlines during mail send
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

10 years agoCURLOPT_CRLF.3: Fixed inclusion of SMTP in listed protocols
Steve Holme [Tue, 25 Nov 2014 23:23:42 +0000 (23:23 +0000)]
CURLOPT_CRLF.3: Fixed inclusion of SMTP in listed protocols

10 years agocurl*3: added small examples
Daniel Stenberg [Tue, 25 Nov 2014 13:25:02 +0000 (14:25 +0100)]
curl*3: added small examples

and some minor edits

10 years agolibcurl.3: fix formatting
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

10 years agoman pages: SEE ALSO curl_multi_wait
Daniel Stenberg [Tue, 25 Nov 2014 10:48:56 +0000 (11:48 +0100)]
man pages: SEE ALSO curl_multi_wait

10 years agocurl_multi_wait.3: clarify numfds being used if not NULL
Daniel Stenberg [Tue, 25 Nov 2014 10:48:38 +0000 (11:48 +0100)]
curl_multi_wait.3: clarify numfds being used if not NULL

10 years agomulti-single.c: switch to use curl_multi_wait
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!

10 years agotestcurl: bump the version of this script!
Daniel Stenberg [Tue, 25 Nov 2014 10:22:09 +0000 (11:22 +0100)]
testcurl: bump the version of this script!

10 years agotestcurl: skip reading the setup file if given enough cmdline info
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.

10 years agoselect.c: fix compilation for VxWorks
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

10 years agoSSL: Add PEM format support for public key pinning
moparisthebest [Mon, 24 Nov 2014 18:30:09 +0000 (19:30 +0100)]
SSL: Add PEM format support for public key pinning

10 years agoRevert "repository: ignore patch files generated by git"
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

10 years agomulti.c: Fixed compilation warnings when no verbose string support
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'

10 years agoRELEASE-NOTES: Synced with 1450712e76
Steve Holme [Sun, 23 Nov 2014 17:22:22 +0000 (17:22 +0000)]
RELEASE-NOTES: Synced with 1450712e76

10 years agosasl: Tidied up some parameter comments
Steve Holme [Sun, 23 Nov 2014 16:31:39 +0000 (16:31 +0000)]
sasl: Tidied up some parameter comments

10 years agosasl: Reduced the need for two sets of NTLM functions
Steve Holme [Sun, 23 Nov 2014 16:22:37 +0000 (16:22 +0000)]
sasl: Reduced the need for two sets of NTLM functions

10 years agontlm: Moved NSS initialisation to base decode function
Steve Holme [Sun, 23 Nov 2014 15:58:24 +0000 (15:58 +0000)]
ntlm: Moved NSS initialisation to base decode function

10 years agohttp_ntlm: Fixed additional NSS initialisation call when decoding type-2
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().

10 years agontlm: Fixed static'ness of local decode function
Steve Holme [Sun, 23 Nov 2014 10:32:49 +0000 (10:32 +0000)]
ntlm: Fixed static'ness of local decode function

10 years agontlm: Corrected some parameter names and comments
Steve Holme [Sun, 23 Nov 2014 10:17:36 +0000 (10:17 +0000)]
ntlm: Corrected some parameter names and comments

10 years agoruntests.pl: Re-aligned feature support comments
Steve Holme [Sat, 22 Nov 2014 23:12:44 +0000 (23:12 +0000)]
runtests.pl: Re-aligned feature support comments

10 years agoruntests.pl: Use Kerberos and SPNEGO as proxies for the crypto feature
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.

10 years agoruntests.pl: Added support for SPNEGO
Steve Holme [Sat, 22 Nov 2014 12:24:13 +0000 (12:24 +0000)]
runtests.pl: Added support for SPNEGO

10 years agoruntests.pl: Added Kerberos detection
Steve Holme [Sat, 22 Nov 2014 12:18:17 +0000 (12:18 +0000)]
runtests.pl: Added Kerberos detection

10 years agoruntests.pl: Added GSS-API detection
Steve Holme [Sat, 22 Nov 2014 12:12:42 +0000 (12:12 +0000)]
runtests.pl: Added GSS-API detection

10 years agoFILEFORMAT: Added SSPI, GSS-API and Kerberos to the features list
Steve Holme [Fri, 21 Nov 2014 18:44:58 +0000 (18:44 +0000)]
FILEFORMAT: Added SSPI, GSS-API and Kerberos to the features list

10 years agoFILEFORMAT: Added test requires feature not present information
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.

10 years agohttp.c: log if it notices HTTP 1.1 after a upgrade to http2
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

10 years agotest1801: first real http2 test case
Daniel Stenberg [Sat, 2 Aug 2014 22:47:21 +0000 (00:47 +0200)]
test1801: first real http2 test case

10 years agosws: initial tiny steps toward http2 support
Daniel Stenberg [Sat, 2 Aug 2014 22:46:39 +0000 (00:46 +0200)]
sws: initial tiny steps toward http2 support

10 years agoFILEFORMAT: mention the new upgrade support
Daniel Stenberg [Sat, 2 Aug 2014 22:46:16 +0000 (00:46 +0200)]
FILEFORMAT: mention the new upgrade support

10 years agotest1800: first plain-text http2 test case
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