]> granicus.if.org Git - curl/log
curl
8 years agochecksrc.bat: Added support for the tests directory
Steve Holme [Sun, 3 Apr 2016 19:52:38 +0000 (20:52 +0100)]
checksrc.bat: Added support for the tests directory

8 years agovauth: Removed the need for a separate GSS-API based SPN function
Steve Holme [Sun, 3 Apr 2016 19:26:03 +0000 (20:26 +0100)]
vauth: Removed the need for a separate GSS-API based SPN function

8 years agocurl_sasl: Fixed potential null pointer utilisation
Steve Holme [Sun, 3 Apr 2016 16:55:17 +0000 (17:55 +0100)]
curl_sasl: Fixed potential null pointer utilisation

Although this should never happen due to the relationship between the
'mech' and 'resp' variables, and the way they are allocated together,
it does cause problems for code analysis tools:

V595 The 'mech' pointer was utilized before it was verified against
     nullptr. Check lines: 376, 381. curl_sasl.c 376

Bug: https://github.com/curl/curl/issues/745
Reported-by: Alexis La Goutte
8 years agospnego: Small code tidy up
Steve Holme [Sun, 3 Apr 2016 16:32:10 +0000 (17:32 +0100)]
spnego: Small code tidy up

* Prefer dereference of string pointer rather than strlen()
* Free challenge pointer in one place
* Additional comments

8 years agokrb5: Small code tidy up
Steve Holme [Sun, 3 Apr 2016 16:30:51 +0000 (17:30 +0100)]
krb5: Small code tidy up

* Prefer dereference of string pointer rather than strlen()
* Free challenge pointer in one place
* Additional comments

8 years agokrb5_gssapi: Only process challenge when present
Steve Holme [Sun, 3 Apr 2016 16:17:20 +0000 (17:17 +0100)]
krb5_gssapi: Only process challenge when present

This wouldn't cause a problem because of the way the function is called,
but prior to this change, we were processing the challenge message when
the credentials were NULL rather than when the challenge message was
populated.

This also brings this part of the Kerberos 5 code in line with the
Negotiate code.

8 years agokrb5: Fixed missing client response when mutual authentication enabled
Steve Holme [Sun, 3 Apr 2016 16:02:44 +0000 (17:02 +0100)]
krb5: Fixed missing client response when mutual authentication enabled

Although mutual authentication is currently turned off and can only be
enabled by changing libcurl source code, authentication using Kerberos
5 has been broken since commit 79543caf90 in this use case.

8 years agokrb5_sspi: Only process challenge when present
Steve Holme [Sun, 3 Apr 2016 10:45:02 +0000 (11:45 +0100)]
krb5_sspi: Only process challenge when present

This wouldn't cause a problem because of the way the function is called,
but prior to this change, we were processing the challenge message when
the credentials were NULL rather than when the challenge message was
populated.

This also brings this part of the Kerberos 5 code in line with the
Negotiate code.

8 years agokrb5_sspi: Only generate the output token when its not allocated
Steve Holme [Sun, 3 Apr 2016 10:25:12 +0000 (11:25 +0100)]
krb5_sspi: Only generate the output token when its not allocated

Prior to this change, we were generating the output token when the
credentials were NULL rather than when the output token was NULL.

This also brings this part of the Kerberos 5 code in line with the
Negotiate code.

8 years agokrb5: Only generate a SPN when its not known
Steve Holme [Sun, 3 Apr 2016 10:15:03 +0000 (11:15 +0100)]
krb5: Only generate a SPN when its not known

Prior to this change, we were generating the SPN in the SSPI code when
the credentials were NULL and in the GSS-API code when the context was
empty. It is better to decouple the SPN generation from these checks
and only generate it when the SPN itself is NULL.

This also brings this part of the Kerberos 5 code in line with the
Negotiate code.

8 years agotests/libtest: follow our code style guidelines better
Daniel Stenberg [Sun, 3 Apr 2016 09:57:34 +0000 (11:57 +0200)]
tests/libtest: follow our code style guidelines better

... checksrc of all test code is pending.

8 years agochecksrc.whitelist: remove fopen() uses
Daniel Stenberg [Sun, 3 Apr 2016 09:57:21 +0000 (11:57 +0200)]
checksrc.whitelist: remove fopen() uses

8 years agoformdata: use appropriate fopen() macros
Daniel Stenberg [Sun, 3 Apr 2016 09:57:04 +0000 (11:57 +0200)]
formdata: use appropriate fopen() macros

8 years agochecksrc: improve the fopen() parser somewhat
Daniel Stenberg [Sun, 3 Apr 2016 09:29:14 +0000 (11:29 +0200)]
checksrc: improve the fopen() parser somewhat

The quote scanner was too fragile, now look for a comma instead to find
the mode argument.

8 years agounit1604: fix snprintf
Daniel Stenberg [Sun, 3 Apr 2016 08:46:36 +0000 (10:46 +0200)]
unit1604: fix snprintf

follow-up to 0326b06

sizeof(pointer) is no good for the buffer size!

Reported-by: Viktor Szakats
8 years agounittests: Fixed compilation warnings
Steve Holme [Sat, 2 Apr 2016 23:02:19 +0000 (00:02 +0100)]
unittests: Fixed compilation warnings

warning: implicit declaration of function 'sprintf_was_used'
         [-Wimplicit-function-declaration]

Follow up to the modications made to tests/libtest in commit 55452ebdff
as we prefer not to use sprintf() now.

8 years agocurl.1: -w filename_effective was introduced in 7.26.0
Daniel Stenberg [Sat, 2 Apr 2016 15:59:25 +0000 (17:59 +0200)]
curl.1: -w filename_effective was introduced in 7.26.0

We never made a 7.25.1 release

8 years ago7.49.0: next release version
Daniel Stenberg [Sat, 2 Apr 2016 15:26:54 +0000 (17:26 +0200)]
7.49.0: next release version

8 years agohttp2: make use of the nghttp2 error callback
Daniel Stenberg [Fri, 1 Apr 2016 18:42:25 +0000 (20:42 +0200)]
http2: make use of the nghttp2 error callback

It offers extra info from nghttp2 in certain error cases. Like for
example when trying prior-knowledge http2 on a server that doesn't speak
http2 at all. The error message is passed on as a verbose message to
libcurl.

Discussed in #722

The error callback was added in nghttp2 1.9.0

8 years agospnego: Renamed the context's SPN variable
Steve Holme [Sat, 2 Apr 2016 05:41:29 +0000 (06:41 +0100)]
spnego: Renamed the context's SPN variable

To be consistent with the Kerberos 5 context and other authentication
code.

8 years agokrb5_gssapi: Renamed the status variables
Steve Holme [Sat, 2 Apr 2016 05:25:30 +0000 (06:25 +0100)]
krb5_gssapi: Renamed the status variables

For consistency with the spnego code.

8 years agokrb5: Moved host from Curl_auth_create_gssapi_user_message() to be argument
Steve Holme [Sat, 2 Apr 2016 05:15:29 +0000 (06:15 +0100)]
krb5: Moved host from Curl_auth_create_gssapi_user_message() to be argument

For consistency with the spnego and oauth2 code moved the setting of
the host name outside of the Curl_auth_create_gssapi_user_messag()
function.

This will allow us to more easily override it in the future.

8 years agotest1119: Fixed missing CURL_DID_MEMORY_FUNC_TYPEDEFS symbol
Steve Holme [Fri, 1 Apr 2016 23:30:33 +0000 (00:30 +0100)]
test1119: Fixed missing CURL_DID_MEMORY_FUNC_TYPEDEFS symbol

8 years agoRELEASE-NOTES: Removed "http_negotiate: Corrected host and proxy host name"
Steve Holme [Fri, 1 Apr 2016 21:20:58 +0000 (22:20 +0100)]
RELEASE-NOTES: Removed "http_negotiate: Corrected host and proxy host name"

As this was introduced in the recent vauth changes and not a prior
release.

8 years agoRELEASE-NOTES: synced with 0aa8da10bbdafa
Daniel Stenberg [Fri, 1 Apr 2016 21:15:29 +0000 (23:15 +0200)]
RELEASE-NOTES: synced with 0aa8da10bbdafa

8 years agohttp_negotiate: Corrected host and proxy host name being wrong way round
Steve Holme [Fri, 1 Apr 2016 20:48:35 +0000 (21:48 +0100)]
http_negotiate: Corrected host and proxy host name being wrong way round

I had accidentally used the proxy server name for the host and the host
server name for the proxy in commit ad5e9bfd5d and 6d6f9ca1d9. Whilst
Windows SSPI was quite happy with this, GSS-API wasn't.

Thanks-to: Michael Osipov
8 years agobuild: Changed the Visual Studio projects warning level from 3 to 4
Steve Holme [Fri, 1 Apr 2016 19:39:34 +0000 (20:39 +0100)]
build: Changed the Visual Studio projects warning level from 3 to 4

After squashing most of our compiler warnings, up'ed the default
warning level from 3 to 4 in order to increase the likelyhood of
catching future warnings.

8 years agoIMAP: check pointer before dereferencing it
ehlertjd@gmail.com [Fri, 1 Apr 2016 14:13:39 +0000 (09:13 -0500)]
IMAP: check pointer before dereferencing it

may be null in the CURLOPT_CONNECT_ONLY case

Fixes #747

8 years ago.gitignore: Added new VC14 SQLite based program database files
Steve Holme [Fri, 1 Apr 2016 19:00:05 +0000 (20:00 +0100)]
.gitignore: Added new VC14 SQLite based program database files

8 years agocurl_memory.h: Fixed typo in comment
Steve Holme [Fri, 1 Apr 2016 18:12:39 +0000 (19:12 +0100)]
curl_memory.h: Fixed typo in comment

From commit 7218b52c49.

8 years agospnego: Corrected some typos in comments
Steve Holme [Fri, 1 Apr 2016 18:07:49 +0000 (19:07 +0100)]
spnego: Corrected some typos in comments

Corrected typos from commit ad5e9bfd5d and 6d6f9ca1d9.

8 years agomemdebug: Ensure curl/curl.h is included before curl_memory.h
Steve Holme [Fri, 1 Apr 2016 12:21:12 +0000 (13:21 +0100)]
memdebug: Ensure curl/curl.h is included before curl_memory.h

Follow up to commit 7db9782dd6.

8 years agoupload: missing rewind call could make libcurl hang
Daniel Stenberg [Fri, 1 Apr 2016 11:57:15 +0000 (13:57 +0200)]
upload: missing rewind call could make libcurl hang

When an upload is done, there are two places where that can be detected
and only one of them would rewind the input stream - which sometimes is
necessary for example when doing NTLM HTTP POSTs and more.

This could then end up libcurl hanging.

Figured-out-by: Isaac Boukris
Reported-by: Anatol Belski
Fixes #741

8 years agocurl.h: define CURL_DID_MEMORY_FUNC_TYPEDEFS
Daniel Stenberg [Fri, 1 Apr 2016 11:14:57 +0000 (13:14 +0200)]
curl.h: define CURL_DID_MEMORY_FUNC_TYPEDEFS

So that we only do the extra typedefs in curl_memory.h when we really
need to and avoid double typedefs.

follow-up commit to 7218b52c49aeb1

Thanks-to: Steve Holme
8 years agocurl/mprintf.h: remove support for _MPRINTF_REPLACE
Daniel Stenberg [Fri, 1 Apr 2016 08:14:06 +0000 (10:14 +0200)]
curl/mprintf.h: remove support for _MPRINTF_REPLACE

The define is not in our name space and is therefore not protected by
our API promises.

It was only really used by libcurl internals but was mostly erased from
there already in 8aabbf5 (March 2015). This is supposedly the final
death blow to that define from everywhere.

As a side-effect, making sure _MPRINTF_REPLACE is gone and not used, I
made the lib tests in tests/libtest/ use curl_printf.h for its redefine
magic and then subsequently the use of sprintf() got banned in the tests
as well (as it is in libcurl internals) and I then replaced them all
with snprintf().

In the unlikely event that any users is actually using this define and
gets sad by this change, it is very easily copied to the user's own
code.

8 years agocurl_memory.h: avoid the curl/curl.h include
Daniel Stenberg [Thu, 31 Mar 2016 07:08:40 +0000 (09:08 +0200)]
curl_memory.h: avoid the curl/curl.h include

Discussed in #743

8 years agourl: Corrected get protocol family for FTP and LDAP
Steve Holme [Fri, 1 Apr 2016 06:24:39 +0000 (07:24 +0100)]
url: Corrected get protocol family for FTP and LDAP

Fixed copy/paste error from commit a5aec58726.

8 years agostrerror: don't bit shift a signed integer
Jay Satiro [Fri, 1 Apr 2016 01:05:29 +0000 (21:05 -0400)]
strerror: don't bit shift a signed integer

Bug: https://github.com/curl/curl/issues/744
Reported-by: Alexis La Goutte
8 years agohttp2: more documentation for prior knowledge
Daniel Stenberg [Thu, 31 Mar 2016 20:04:09 +0000 (22:04 +0200)]
http2: more documentation for prior knowledge

8 years agohttp2: support "prior knowledge", no upgrade from HTTP/1.1
Diego Bes [Fri, 18 Mar 2016 22:25:56 +0000 (15:25 -0700)]
http2: support "prior knowledge", no upgrade from HTTP/1.1

Supports HTTP/2 over clear TCP

- Optimize switching to HTTP/2 by removing calls to init and setup
before switching. Switching will eventually call setup and setup calls
init.

- Supports new version to “force” the use of HTTP/2 over clean TCP

- Add common line parameter “--http2-prior-knowledge” to the Curl
  command line tool.

8 years agoimap: remove duplicated function
Daniel Stenberg [Thu, 31 Mar 2016 13:12:22 +0000 (15:12 +0200)]
imap: remove duplicated function

The list and search response functions were identical! Merged into one
now. Detected by PVS Studio.

Reported-by: Alexis La Goutte
8 years agoSOCKS5_gssapi_negotiate: don't assume little-endian ints
Daniel Stenberg [Thu, 31 Mar 2016 08:22:42 +0000 (10:22 +0200)]
SOCKS5_gssapi_negotiate: don't assume little-endian ints

The code copied one byte from a 32bit integer, which works fine as long
as the byte order is the same. Not a fine assumption. Reported by PVS
Studio.

Reported-by: Alexis La Goutte
8 years agohttp: remove ((expression)) double parentheses
Daniel Stenberg [Thu, 31 Mar 2016 08:03:04 +0000 (10:03 +0200)]
http: remove ((expression)) double parentheses

8 years agoCurl_add_buffer_send: avoid possible NULL dereference
Daniel Stenberg [Thu, 31 Mar 2016 08:00:55 +0000 (10:00 +0200)]
Curl_add_buffer_send: avoid possible NULL dereference

... as we check for a NULL pointer below, we move the derefence to after
the check. Detected by PVS Studio.

Reported-by: Alexis La Goutte
8 years agofile: remove duplicate checks of the same variable
Daniel Stenberg [Thu, 31 Mar 2016 07:53:36 +0000 (09:53 +0200)]
file: remove duplicate checks of the same variable

... as it doesn't change in between. Deteced by PVS Studio.

Reported-by: Alexis La Goutte
8 years agoopenssl: Fix compilation warnings
Marcel Raad [Wed, 30 Mar 2016 15:23:02 +0000 (17:23 +0200)]
openssl: Fix compilation warnings

When compiling with OpenSSL 1.1.0 (so that the HAVE_X509_GET0_SIGNATURE
&& HAVE_X509_GET0_EXTENSIONS pre-processor block is active), Visual C++
14 complains:

warning C4701: potentially uninitialized local variable 'palg' used
warning C4701: potentially uninitialized local variable 'psig' used

8 years agomulti: turn Curl_done into file local multi_done
Daniel Stenberg [Tue, 29 Mar 2016 22:17:02 +0000 (00:17 +0200)]
multi: turn Curl_done into file local multi_done

... as it now is used by multi.c only.

8 years agomulti: multi_reconnect_request is the former Curl_reconnect_request
Daniel Stenberg [Tue, 29 Mar 2016 21:56:22 +0000 (23:56 +0200)]
multi: multi_reconnect_request is the former Curl_reconnect_request

now a file local function in multi.c

8 years agomulti: move Curl_do and Curl_do_done to multi.c and make static
Daniel Stenberg [Tue, 29 Mar 2016 21:53:48 +0000 (23:53 +0200)]
multi: move Curl_do and Curl_do_done to multi.c and make static

... called multi_do and multi_do_done as they're file local now.

8 years agowolfssl: Use ECC supported curves extension
Jay Satiro [Tue, 29 Mar 2016 23:06:55 +0000 (19:06 -0400)]
wolfssl: Use ECC supported curves extension

https://github.com/wolfSSL/wolfssl/issues/366

8 years agobuild-wolfssl: Allow a broader range of ciphers (Visual Studio)
Jay Satiro [Tue, 29 Mar 2016 22:50:12 +0000 (18:50 -0400)]
build-wolfssl: Allow a broader range of ciphers (Visual Studio)

This is an update to the build-time options used to build wolfSSL in
Visual Studio for greater compatibility, and make it behave similar to
the way OpenSSL 1.0.2 behaves. Starting in wolfSSL v3.6.6 static ciphers
and SSLv3 are disabled by default at build time, but we can use both.

- Enable static cipher suites TLS_ECDH_ and TLS_RSA_.

- Enable SSLv3 hello. Though in libcurl we disable it by default at
runtime, we make it available so the user can manually select it if
necessary.

8 years agoGSS: make Curl_gss_log_error more verbose
Isaac Boukris [Tue, 29 Mar 2016 14:13:46 +0000 (17:13 +0300)]
GSS: make Curl_gss_log_error more verbose

Also display the GSS_C_GSS_CODE (major code) when specified instead of
only GSS_C_MECH_CODE (minor code).

In addition, the old code was printing a colon twice after the prefix
and also miscalculated the length of the buffer in between calls to
gss_display_status (the length of ": " was missing).

Also, gss_buffer is not guaranteed to be NULL terminated and thus need
to restrict reading by its length.

Closes #738

8 years agobuild: use roffit 0.11 feature
Daniel Stenberg [Tue, 22 Mar 2016 09:46:08 +0000 (10:46 +0100)]
build: use roffit 0.11 feature

... load file specified as argument.

8 years agohttp2: set correct scheme in handler structs [regression]
Daniel Stenberg [Tue, 29 Mar 2016 14:08:38 +0000 (16:08 +0200)]
http2: set correct scheme in handler structs [regression]

Since commit a5aec58 the handler schemes need to match for the
connections to be reused and for HTTP/2 multiplexing to work, reusing
connections is very important!

Closes #736

8 years agohostip.c: minor white space edit for style
Daniel Stenberg [Tue, 29 Mar 2016 13:19:21 +0000 (15:19 +0200)]
hostip.c: minor white space edit for style

8 years agoTODO: use secure protocol in recently added URL
Viktor Szakats [Sun, 27 Mar 2016 16:03:46 +0000 (18:03 +0200)]
TODO: use secure protocol in recently added URL

Closes #733

8 years agoHTTP2.md: mention libressl and boringssl too
Daniel Stenberg [Tue, 29 Mar 2016 08:23:33 +0000 (10:23 +0200)]
HTTP2.md: mention libressl and boringssl too

8 years agodocs/HTTP-COOKIES: converted to markdown
Daniel Stenberg [Tue, 29 Mar 2016 06:53:40 +0000 (08:53 +0200)]
docs/HTTP-COOKIES: converted to markdown

8 years agoHTTP2: s/polarssl/mbedtls
Daniel Stenberg [Tue, 29 Mar 2016 06:27:23 +0000 (08:27 +0200)]
HTTP2: s/polarssl/mbedtls

8 years agowolfssl: Add ALPN support
Jay Satiro [Mon, 28 Mar 2016 22:18:09 +0000 (18:18 -0400)]
wolfssl: Add ALPN support

8 years agotool_operate: remove mixed declaration
Jay Satiro [Mon, 28 Mar 2016 20:46:26 +0000 (16:46 -0400)]
tool_operate: remove mixed declaration

This is a follow up to the previous commit.

8 years agocurl: warn for --capath use if not supported by libcurl
Daniel Stenberg [Mon, 28 Mar 2016 18:28:23 +0000 (20:28 +0200)]
curl: warn for --capath use if not supported by libcurl

Closes #492

8 years agoTODO: 2.5 Edge-triggered sockets should work
Daniel Stenberg [Mon, 28 Mar 2016 08:59:39 +0000 (10:59 +0200)]
TODO: 2.5 Edge-triggered sockets should work

8 years agoMakefile.am: skip the scripts dir
Daniel Stenberg [Sun, 27 Mar 2016 22:03:42 +0000 (00:03 +0200)]
Makefile.am: skip the scripts dir

Skipping the scripts dir is primarily done for 'make install' so that it
does not attempt to install the zsh completion script as we've not yet
found a proper way to do/run that at install time.

By leaving the script dir's Makefile in place, a user can still opt to
run make install manually in there.

Closes #620

8 years agoCURLMOPT_SOCKETFUNCTION.3: describe the 'what' argument
Daniel Stenberg [Sun, 27 Mar 2016 21:50:36 +0000 (23:50 +0200)]
CURLMOPT_SOCKETFUNCTION.3: describe the 'what' argument

8 years agocurl_multi_socket_action.3: mark the options properly
Daniel Stenberg [Sun, 27 Mar 2016 21:34:25 +0000 (23:34 +0200)]
curl_multi_socket_action.3: mark the options properly

... to make them appear as links on the html version.

8 years agoRELEASE-NOTES: Synced with f0bdd72c10
Steve Holme [Sun, 27 Mar 2016 17:52:42 +0000 (18:52 +0100)]
RELEASE-NOTES: Synced with f0bdd72c10

8 years agohttp_ntlm: Renamed from curl_ntlm.[c|h]
Steve Holme [Sun, 27 Mar 2016 16:58:50 +0000 (17:58 +0100)]
http_ntlm: Renamed from curl_ntlm.[c|h]

Renamed the header and source files for this module as they are HTTP
specific and as such, they should use the naming convention as other
HTTP authentication source files do - this revert commit 260ee6b7bf.

Note: We could also rename curl_ntlm_wb.[c|h], however, the Winbind
code needs separating from the HTTP protocol and migrating into the
vauth directory, thus adding support for Winbind to the SASL based
protocols such as IMAP, POP3 and SMTP.

8 years agodocs: curlinfo_filetime sftp support, new curlopt_quote "statvfs"
marquis-de-muesli [Thu, 25 Feb 2016 01:10:24 +0000 (02:10 +0100)]
docs: curlinfo_filetime sftp support, new curlopt_quote "statvfs"

Closes #677

8 years agoSSH: new CURLOPT_QUOTE command "statvfs"
marquis-de-muesli [Tue, 23 Feb 2016 22:37:14 +0000 (23:37 +0100)]
SSH: new CURLOPT_QUOTE command "statvfs"

usage: "statvfs path"
returns remote file system statistics

8 years agoSSH: support CURLINFO_FILETIME
marquis-de-muesli [Tue, 23 Feb 2016 22:18:31 +0000 (23:18 +0100)]
SSH: support CURLINFO_FILETIME

8 years agosshserver.pl: use quotes for given options
Karlson2k [Mon, 22 Feb 2016 09:30:37 +0000 (12:30 +0300)]
sshserver.pl: use quotes for given options

Fixed failed redirection of stderr with some options. At least on Msys2,
perl fails to redirect stderr if $value contains newline or other weird
characters.

8 years agourl: don't use bad offset in tld_check_name to show error
Jay Satiro [Sat, 26 Mar 2016 18:41:35 +0000 (14:41 -0400)]
url: don't use bad offset in tld_check_name to show error

libidn's tld_check_lz returns an error offset of the first character
that it failed to process, however that offset is not a byte offset and
may not even be in the locale encoding therefore we can't use it to show
the user the character that failed to process.

Bug: https://github.com/curl/curl/issues/731
Reported-by: Karlson2k
8 years agohttp_negotiate: Combine GSS-API and SSPI source files
Steve Holme [Sun, 13 Mar 2016 20:09:15 +0000 (20:09 +0000)]
http_negotiate: Combine GSS-API and SSPI source files

As the GSS-API and SSPI based source files are no longer library/API
specific, following the extraction of that authentication code to the
vauth directory, combine these files rather than maintain two separate
versions.

8 years agovauth: Moved the Negotiate authentication code to the new vauth directory
Steve Holme [Sun, 13 Mar 2016 18:51:46 +0000 (18:51 +0000)]
vauth: Moved the Negotiate authentication code to the new vauth directory

Part 2 of 2 - Moved the GSS-API based Negotiate authentication code.

8 years agovauth: Moved the Negotiate authentication code to the new vauth directory
Steve Holme [Sun, 13 Mar 2016 16:02:42 +0000 (16:02 +0000)]
vauth: Moved the Negotiate authentication code to the new vauth directory

Part 1 of 2 - Moved the SSPI based Negotiate authentication code.

8 years agowarnless.h: Removed spurious character from commit 696bc6b9c9
Steve Holme [Sat, 26 Mar 2016 11:35:07 +0000 (11:35 +0000)]
warnless.h: Removed spurious character from commit 696bc6b9c9

Not picked up by checksrc or Visual Studio but my own code review, this
would haven broken Intel based Unix builds - Perhaps I should learn to
type on my laptop's keyboard before committing!

8 years agoschannel: Fixed compilation warning from commit f8d88a4913
Steve Holme [Sat, 26 Mar 2016 11:14:07 +0000 (11:14 +0000)]
schannel: Fixed compilation warning from commit f8d88a4913

warning C4244: '=': conversion from 'int' to 'unsigned short', possible
                    loss of data

8 years agowarnless?: Added some integer based conversion functions
Steve Holme [Sat, 26 Mar 2016 11:09:01 +0000 (11:09 +0000)]
warnless?: Added some integer based conversion functions

8 years agodocs/TODO: Add feature request for metalink in HTTP headers
Dusty Mabe [Fri, 25 Mar 2016 16:40:48 +0000 (12:40 -0400)]
docs/TODO: Add feature request for metalink in HTTP headers

Closes #729
Closes #728

8 years agobuild: Corrected typos from commit 70e56939aa
Steve Holme [Fri, 25 Mar 2016 18:23:07 +0000 (18:23 +0000)]
build: Corrected typos from commit 70e56939aa

8 years agovauth: Refactored function names after move to new vauth directory
Steve Holme [Sun, 13 Mar 2016 11:28:42 +0000 (11:28 +0000)]
vauth: Refactored function names after move to new vauth directory

Renamed all the SASL functions that moved to the new vauth directory to
include the correct module name.

8 years agovauth: Updated the copyright year after recent changes
Steve Holme [Sun, 13 Mar 2016 11:19:57 +0000 (11:19 +0000)]
vauth: Updated the copyright year after recent changes

As most of this work was performed in 2015 but not pushed until 2016
updated the copyright year to reflect the public facing changes.

8 years agovauth: Moved the OAuth 2.0 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 14:24:44 +0000 (15:24 +0100)]
vauth: Moved the OAuth 2.0 authentication code to the new vauth directory

8 years agovauth: Moved the NTLM authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 13:50:02 +0000 (14:50 +0100)]
vauth: Moved the NTLM authentication code to the new vauth directory

8 years agovauth: Moved the Kerberos V5 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 13:15:09 +0000 (14:15 +0100)]
vauth: Moved the Kerberos V5 authentication code to the new vauth directory

8 years agodigest.c: Fixed checksrc warnings
Steve Holme [Fri, 25 Mar 2016 12:17:34 +0000 (12:17 +0000)]
digest.c: Fixed checksrc warnings

8 years agovauth: Moved the DIGEST authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 12:30:58 +0000 (13:30 +0100)]
vauth: Moved the DIGEST authentication code to the new vauth directory

8 years agovauth: Moved the CRAM-MD5 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 12:02:27 +0000 (13:02 +0100)]
vauth: Moved the CRAM-MD5 authentication code to the new vauth directory

8 years agovauth: Moved the ClearText authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 11:27:38 +0000 (12:27 +0100)]
vauth: Moved the ClearText authentication code to the new vauth directory

8 years agovauth: Moved Curl_sasl_build_spn() to create the initial vauth source files
Steve Holme [Sat, 12 Sep 2015 10:48:24 +0000 (11:48 +0100)]
vauth: Moved Curl_sasl_build_spn() to create the initial vauth source files

8 years agochecksrc.bat: Added support for checking the new vauth directory
Steve Holme [Sat, 12 Sep 2015 10:19:24 +0000 (11:19 +0100)]
checksrc.bat: Added support for checking the new vauth directory

8 years agobuild: Updated all makefiles and project files for the new vauth directory
Steve Holme [Sat, 12 Sep 2015 10:14:14 +0000 (11:14 +0100)]
build: Updated all makefiles and project files for the new vauth directory

Updated the makefiles and Visual Studio project files to support moving
the authentication code to the new lib/vauth directory that was started
in commit 0d04e859e1.

8 years agoschannel: Add ALPN support
JDepooter [Mon, 21 Mar 2016 06:59:57 +0000 (23:59 -0700)]
schannel: Add ALPN support

Add ALPN support for schannel. This allows cURL to negotiate
HTTP/2.0 connections when built with schannel.

Closes #724

8 years agohttp: Minor update based on CODE_STYLE guidelines
Steve Holme [Thu, 24 Mar 2016 06:35:23 +0000 (06:35 +0000)]
http: Minor update based on CODE_STYLE guidelines

8 years agomulti: fix "Operation timed out after" timer
Daniel Stenberg [Wed, 23 Mar 2016 22:03:08 +0000 (23:03 +0100)]
multi: fix "Operation timed out after" timer

Use the local, reasonably updated, 'now' value when creating the message
string to output for the timeout condition.

Fixes #619

8 years agoopenssl: boringssl provides the same numbering as openssl
Daniel Stenberg [Wed, 23 Mar 2016 13:59:41 +0000 (14:59 +0100)]
openssl: boringssl provides the same numbering as openssl

... so we don't need extra boringssl precautions for for
HAVE_ERR_REMOVE_THREAD_STATE_NOARG.

Pointed-out-by: David Benjamin
8 years agoopenssl: fix ERR_remove_thread_state() for boringssl/libressl
Daniel Stenberg [Wed, 23 Mar 2016 09:04:48 +0000 (10:04 +0100)]
openssl: fix ERR_remove_thread_state() for boringssl/libressl

The removed arg is only done in OpenSSL

Bug: https://twitter.com/xtraemeat/status/712564874098917376

8 years agobump: work on 7.48.1
Daniel Stenberg [Wed, 23 Mar 2016 08:35:23 +0000 (09:35 +0100)]
bump: work on 7.48.1

8 years agoRELEASE-PROCEDURE: mention the github release tag edit
Daniel Stenberg [Wed, 23 Mar 2016 08:32:30 +0000 (09:32 +0100)]
RELEASE-PROCEDURE: mention the github release tag edit

... and update the coming release dates a bit