]> granicus.if.org Git - curl/log
curl
10 years agomk-ca-bundle.pl: add missing $
Daniel Stenberg [Wed, 13 Aug 2014 21:49:01 +0000 (23:49 +0200)]
mk-ca-bundle.pl: add missing $

10 years agomk-ca-bundle.pl: switched to using hg.mozilla.org
Daniel Stenberg [Wed, 13 Aug 2014 21:42:53 +0000 (23:42 +0200)]
mk-ca-bundle.pl: switched to using hg.mozilla.org

... as mxr.mozilla.org is due to be retired.

The new host doesn't support If-Modified-Since nor ETags, meaning that
the script will now defer to download and do a post-transfer checksum
check to see if a new output is to be generated. The new output format
will hold the SHA1 checksum of the source file for that purpose.

We call this version 1.22

Reported-by: Ed Morley
Bug: http://curl.haxx.se/bug/view.cgi?id=1409

10 years agoopenssl: fix version report for the 0.9.8 branch
Jose Alf [Wed, 13 Aug 2014 06:47:56 +0000 (08:47 +0200)]
openssl: fix version report for the 0.9.8 branch

Fixed libcurl to correctly output the newer versions of OpenSSL 0.9.8,
starting from openssl-0.9.8za.

10 years agocreate_conn: prune dead connections
Frank Meier [Sun, 10 Aug 2014 22:06:20 +0000 (00:06 +0200)]
create_conn: prune dead connections

Bringing back the old functionality that was mistakenly removed when the
connection cache was remade. When creating a new connection, all the
existing ones are checked and those that are known to be dead get
disconnected for real and removed from the connection cache. It helps
the cache from holding on to very many stale connections and aids in
keeping down the number of system sockets in wait states.

Help-by: Jonatan Vela <jonatan.vela@ergon.ch>
Bug: http://curl.haxx.se/mail/lib-2014-06/0189.html

10 years agodocs/SSLCERTS: update the section about NSS database
Kamil Dudka [Fri, 1 Aug 2014 13:27:46 +0000 (15:27 +0200)]
docs/SSLCERTS: update the section about NSS database

Bug: http://curl.haxx.se/mail/lib-2014-07/0335.html
Reported-by: David Shaw
10 years agoCurl_poll + Curl_wait_ms: fix timeout return value
Peter Wang [Tue, 29 Jul 2014 04:33:07 +0000 (06:33 +0200)]
Curl_poll + Curl_wait_ms: fix timeout return value

Curl_poll and Curl_wait_ms require the fix applied to Curl_socket_check
in commits b61e8b8 and c771968:

When poll or select are interrupted and coincides with the timeout
elapsing, the functions return -1 indicating an error instead of 0 for
the timeout.

10 years agoconfig-tpf.h: Fixed up line lengths > 79 characters
Steve Holme [Sun, 10 Aug 2014 19:36:11 +0000 (20:36 +0100)]
config-tpf.h: Fixed up line lengths > 79 characters

10 years agoconfig-symbian.h: Fixed up line lengths > 79 characters
Steve Holme [Sun, 10 Aug 2014 19:35:01 +0000 (20:35 +0100)]
config-symbian.h: Fixed up line lengths > 79 characters

10 years agotool_hugehelp.c.cvs: Added copyright
Steve Holme [Sun, 10 Aug 2014 19:33:08 +0000 (20:33 +0100)]
tool_hugehelp.c.cvs: Added copyright

Added copyright due to warning from checksrc.pl.

10 years agoRELEASE-NOTES: Synced with cd6ecf6a89
Steve Holme [Sun, 10 Aug 2014 16:00:57 +0000 (17:00 +0100)]
RELEASE-NOTES: Synced with cd6ecf6a89

10 years agosasl_sspi: Fixed hard coded buffer for response generation
Steve Holme [Sun, 10 Aug 2014 10:01:27 +0000 (11:01 +0100)]
sasl_sspi: Fixed hard coded buffer for response generation

Given the SSPI package info query indicates a token size of 4096 bytes,
updated to use a dynamic buffer for the response message generation
rather than a fixed buffer of 1024 bytes.

10 years agosasl_sspi: Fixed missing free of challenge buffer on SPN failure
Steve Holme [Sun, 10 Aug 2014 09:33:10 +0000 (10:33 +0100)]
sasl_sspi: Fixed missing free of challenge buffer on SPN failure

10 years agohttp_negotiate_sspi: Tidy up to remove the get_gss_name() function
Steve Holme [Sat, 9 Aug 2014 17:00:01 +0000 (18:00 +0100)]
http_negotiate_sspi: Tidy up to remove the get_gss_name() function

Due to the reduction of code in commit 3b924b29 of get_gss_name() the
function isn't necessary anymore.

10 years agohttp_negotiate_sspi: Use a dynamic buffer for SPN generation
Steve Holme [Sat, 9 Aug 2014 16:56:51 +0000 (17:56 +0100)]
http_negotiate_sspi: Use a dynamic buffer for SPN generation

Updated to use a dynamic buffer for the SPN generation via the recently
introduced Curl_sasl_build_spn() function rather than a fixed buffer of
1024 characters, which should have been more than enough, but by using
the new function removes the need for another variable sname to do the
wide character conversion in Unicode builds.

10 years agosasl: Tidy up to rename SPN variable from URI
Steve Holme [Sat, 9 Aug 2014 16:32:12 +0000 (17:32 +0100)]
sasl: Tidy up to rename SPN variable from URI

10 years agosasl: Use a dynamic buffer for SPN generation
Steve Holme [Sat, 9 Aug 2014 16:28:19 +0000 (17:28 +0100)]
sasl: Use a dynamic buffer for SPN generation

Updated Curl_sasl_create_digest_md5_message() to use a dynamic buffer
for the SPN generation via the recently introduced Curl_sasl_build_spn()
function rather than a fixed buffer of 128 characters.

10 years agosasl_sspi: Fixed SPN not being converted to wchar under Unicode builds
Steve Holme [Sat, 9 Aug 2014 16:04:10 +0000 (17:04 +0100)]
sasl_sspi: Fixed SPN not being converted to wchar under Unicode builds

Curl_sasl_create_digest_md5_message() would simply cast the SPN variable
to a TCHAR when calling InitializeSecurityContext(). This meant that,
under Unicode builds, it would not be valid wide character string.

Updated to use the recently introduced Curl_sasl_build_spn() function
which performs the correct conversion for us.

10 years agosasl: Introduced Curl_sasl_build_spn() for building a SPN
Steve Holme [Sat, 9 Aug 2014 15:26:58 +0000 (16:26 +0100)]
sasl: Introduced Curl_sasl_build_spn() for building a SPN

Various parts of the libcurl source code build a SPN for inclusion in
authentication data. This information is either used by our own native
generation routines or passed to authentication functions in third-party
libraries such as SSPI. However, some of these instances use fixed
buffers rather than dynamically allocated ones and not all of those that
should, convert to wide character strings in Unicode builds.

Implemented a common function that generates a SPN and performs the
wide character conversion where necessary.

10 years agosasl_sspi: Fixed memory leak with not releasing Package Info struct
Steve Holme [Sat, 9 Aug 2014 11:34:22 +0000 (12:34 +0100)]
sasl_sspi: Fixed memory leak with not releasing Package Info struct

Curl_sasl_create_digest_md5_message() wouldn't free the Package Info
structure after QuerySecurityPackageInfo() had allocated it.

10 years agodocs: Update SPNEGO and GSS-API related doc sections
Michael Osipov [Sat, 2 Aug 2014 12:51:18 +0000 (13:51 +0100)]
docs: Update SPNEGO and GSS-API related doc sections

Reflect recent changes in SPNEGO and GSS-API code in the docs.
Update them with appropriate namings and remove visible spots for
GSS-Negotiate.

10 years agosspi: Minor code tidy up to standardise coding style
Steve Holme [Fri, 8 Aug 2014 21:39:19 +0000 (22:39 +0100)]
sspi: Minor code tidy up to standardise coding style

Following the recent changes and in attempt to align the SSPI based
authentication code performed the following:

* Use NULL and SECBUFFVERSION rather than hard coded constants.
* Avoid comparison of zero in if statements.
* Standardised the buf and desc setup code.

10 years agoschannel: Fixed compilation warning in vtls.c
Steve Holme [Fri, 8 Aug 2014 20:12:43 +0000 (21:12 +0100)]
schannel: Fixed compilation warning in vtls.c

vtls.c:688:43: warning: unused parameter 'data'

10 years agotool_getparam.c: Fixed compilation warning
Steve Holme [Fri, 8 Aug 2014 11:03:34 +0000 (12:03 +0100)]
tool_getparam.c: Fixed compilation warning

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

10 years agoRELEASE-NOTES: Synced with 159c3aafd8
Steve Holme [Fri, 8 Aug 2014 06:38:05 +0000 (07:38 +0100)]
RELEASE-NOTES: Synced with 159c3aafd8

10 years agocurl_ntlm_msgs: make < 80 columns wide
Daniel Stenberg [Fri, 8 Aug 2014 06:34:51 +0000 (08:34 +0200)]
curl_ntlm_msgs: make < 80 columns wide

10 years agontlm: Fixed hard coded buffer for SSPI based auth packet generation
Steve Holme [Fri, 8 Aug 2014 06:23:38 +0000 (07:23 +0100)]
ntlm: Fixed hard coded buffer for SSPI based auth packet generation

Given the SSPI package info query indicates a token size of 2888 bytes,
and as with the Winbind code and commit 9008f3d56, use a dynamic buffer
for the Type-1 and Type-3 message generation rather than a fixed buffer
of 1024 bytes.

10 years agontlm: Added support for SSPI package info query
Steve Holme [Thu, 7 Aug 2014 19:07:46 +0000 (20:07 +0100)]
ntlm: Added support for SSPI package info query

Just as with the SSPI implementations of Digest and Negotiate added a
package info query so that libcurl can a) return a more appropriate
error code when the NTLM package is not supported and b) it can be of
use later to allocate a dynamic buffer for the Type-1 and Type-3
output tokens rather than use a fixed buffer of 1024 bytes.

10 years agohttp2: added some more logging for debugging stream problems
Daniel Stenberg [Thu, 7 Aug 2014 15:41:14 +0000 (17:41 +0200)]
http2: added some more logging for debugging stream problems

10 years agoHTTP/2: Reset promised stream, not its associated stream.
Tatsuhiro Tsujikawa [Thu, 7 Aug 2014 14:10:21 +0000 (23:10 +0900)]
HTTP/2: Reset promised stream, not its associated stream.

10 years agoHTTP/2: Move :authority before non-pseudo header fields
Tatsuhiro Tsujikawa [Thu, 7 Aug 2014 14:09:25 +0000 (23:09 +0900)]
HTTP/2: Move :authority before non-pseudo header fields

10 years agohttp2: show the received header for better debugging
Daniel Stenberg [Thu, 7 Aug 2014 11:26:02 +0000 (13:26 +0200)]
http2: show the received header for better debugging

10 years agoopenssl: replace call to OPENSSL_config
Daniel Stenberg [Thu, 7 Aug 2014 10:02:34 +0000 (12:02 +0200)]
openssl: replace call to OPENSSL_config

OPENSSL_config() is "strongly recommended" to use but unfortunately that
function makes an exit() call on wrongly formatted config files which
makes it hard to use in some situations. OPENSSL_config() itself calls
CONF_modules_load_file() and we use that instead and we ignore its
return code!

Reported-by: Jan Ehrhardt
Bug: http://curl.haxx.se/bug/view.cgi?id=1401

10 years agoruntests.pl: Pad test case numbers with up to three zeroes
Fabian Keil [Sun, 27 Jul 2014 10:14:50 +0000 (12:14 +0200)]
runtests.pl: Pad test case numbers with up to three zeroes

Test case numbers with four digits have been available for a
while now.

10 years agodocs: Added Negotiate to the SSPI current credentials usage description
Steve Holme [Thu, 7 Aug 2014 07:04:40 +0000 (08:04 +0100)]
docs: Added Negotiate to the SSPI current credentials usage description

10 years agoTODO: HTTP Digest via Windows SSPI
Steve Holme [Wed, 6 Aug 2014 21:54:37 +0000 (22:54 +0100)]
TODO: HTTP Digest via Windows SSPI

10 years agoTODO: FTP GSSAPI via Windows SSPI
Steve Holme [Wed, 6 Aug 2014 20:54:27 +0000 (21:54 +0100)]
TODO: FTP GSSAPI via Windows SSPI

10 years agohttp_negotiate_sspi: Fixed specific username and password not working
Steve Holme [Fri, 11 Jul 2014 20:45:25 +0000 (21:45 +0100)]
http_negotiate_sspi: Fixed specific username and password not working

Bug: http://curl.haxx.se/mail/lib-2014-06/0224.html
Reported-by: Leonardo Rosati
10 years agohttp_negotiate_sspi: Fixed endless unauthorized loop in commit 6bc76194e8
Steve Holme [Tue, 5 Aug 2014 23:12:53 +0000 (00:12 +0100)]
http_negotiate_sspi: Fixed endless unauthorized loop in commit 6bc76194e8

If the server rejects our authentication attempt and curl hasn't
called CompleteAuthToken() then the status variable will be
SEC_I_CONTINUE_NEEDED and not SEC_E_OK.

As such the existing detection mechanism for determining whether or not
the authentication process has finished is not sufficient.

However, the WWW-Authenticate: Negotiate header line will not contain
any data when the server has exhausted the negotiation, so we can use
that coupled with the already allocated context pointer.

10 years agoRELEASE-NOTES: synced with 5b37db44a3eb
Daniel Stenberg [Tue, 5 Aug 2014 07:38:04 +0000 (09:38 +0200)]
RELEASE-NOTES: synced with 5b37db44a3eb

10 years agoparsedate.c: fix the return code for an overflow edge condition
Dan Fandrich [Tue, 5 Aug 2014 06:50:30 +0000 (08:50 +0200)]
parsedate.c: fix the return code for an overflow edge condition

10 years agodarwinssl: don't use strtok()
Toby Peterson [Tue, 5 Aug 2014 06:58:49 +0000 (08:58 +0200)]
darwinssl: don't use strtok()

The GetDarwinVersionNumber() function uses strtok, which is not
thread-safe.

10 years agoCurl_ossl_version: adapted to detect BoringSSL
Daniel Stenberg [Mon, 4 Aug 2014 22:29:37 +0000 (00:29 +0200)]
Curl_ossl_version: adapted to detect BoringSSL

This seems to be the way it should work. Right now we can't build with
BoringSSL and try this out properly due to a minor API breakage.

10 years agoCurl_ossl_version: detect and show libressl
Daniel Stenberg [Mon, 4 Aug 2014 21:54:44 +0000 (23:54 +0200)]
Curl_ossl_version: detect and show libressl

LibreSSL is otherwise OpenSSL API compliant (so far)

10 years agoHTTP/2: Fix infinite loop in readwrite_data()
Tatsuhiro Tsujikawa [Sun, 3 Aug 2014 04:57:57 +0000 (13:57 +0900)]
HTTP/2: Fix infinite loop in readwrite_data()

To prevent infinite loop in readwrite_data() function when stream is
reset before any response body comes, reset closed flag to false once
it is evaluated to true.

10 years agogtls: only define Curl_gtls_seed if Nettle is not being used
Dan Fandrich [Sun, 3 Aug 2014 09:17:33 +0000 (11:17 +0200)]
gtls: only define Curl_gtls_seed if Nettle is not being used

10 years agossl: provide Curl_ssl_backend even if no SSL library is available
Dan Fandrich [Sun, 3 Aug 2014 08:40:36 +0000 (10:40 +0200)]
ssl: provide Curl_ssl_backend even if no SSL library is available

10 years agoHTTP2: Support expect: 100-continue
Tatsuhiro Tsujikawa [Fri, 1 Aug 2014 14:10:10 +0000 (23:10 +0900)]
HTTP2: Support expect: 100-continue

"Expect: 100-continue", which was once deprecated in HTTP/2, is now
resurrected in HTTP/2 draft 14.  This change adds its support to
HTTP/2 code.  This change also includes stricter header field
checking.

10 years agoCURLOPT_SSL_VERIFYPEER.3. add a warning about disabling it
Daniel Stenberg [Sat, 2 Aug 2014 21:09:22 +0000 (23:09 +0200)]
CURLOPT_SSL_VERIFYPEER.3. add a warning about disabling it

10 years agoFEATURES: minor update
Daniel Stenberg [Fri, 1 Aug 2014 07:00:06 +0000 (09:00 +0200)]
FEATURES: minor update

10 years agoopenssl: make ossl_send return CURLE_OK better
Daniel Stenberg [Thu, 31 Jul 2014 22:01:02 +0000 (00:01 +0200)]
openssl: make ossl_send return CURLE_OK better

Previously it only returned a CURLcode for errors, which is when it
returns a different size than what was passed in to it.

The http2 code only checked the curlcode and thus failed.

10 years agoRELEASE-NOTES: synced with 7bb4c8cadb5d0
Daniel Stenberg [Thu, 31 Jul 2014 21:24:17 +0000 (23:24 +0200)]
RELEASE-NOTES: synced with 7bb4c8cadb5d0

10 years agoCURLOPT_HEADEROPT.3: typo: do -> to
Michael Wallner [Thu, 31 Jul 2014 12:29:50 +0000 (14:29 +0200)]
CURLOPT_HEADEROPT.3: typo: do -> to

10 years agoschannel: use CryptGenRandom for random numbers
Marcel Raad [Thu, 31 Jul 2014 10:59:46 +0000 (12:59 +0200)]
schannel: use CryptGenRandom for random numbers

This function is available for every Windows version since Windows 95/NT.

reference:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379942.aspx

10 years agocurl_version_info.3: 'ssl_version_num' is always 0
Daniel Stenberg [Thu, 31 Jul 2014 10:27:15 +0000 (12:27 +0200)]
curl_version_info.3: 'ssl_version_num' is always 0

... and has been so since 2005

10 years agossl: generalize how the ssl backend identifier is set
Daniel Stenberg [Thu, 31 Jul 2014 10:19:51 +0000 (12:19 +0200)]
ssl: generalize how the ssl backend identifier is set

Each backend now defines CURL_SSL_BACKEND accordingly. Added the *AXTLS
one which was missing previously.

10 years agoaxtls: define curlssl_random using axTLS's PRNG
Dan Fandrich [Wed, 30 Jul 2014 23:03:30 +0000 (01:03 +0200)]
axtls: define curlssl_random using axTLS's PRNG

10 years agocyassl: fix the test for ASN_NO_SIGNER_E
Dan Fandrich [Wed, 30 Jul 2014 22:31:36 +0000 (00:31 +0200)]
cyassl: fix the test for ASN_NO_SIGNER_E

It's an enum so a macro test won't work. The CyaSSL changelog doesn't
say exactly when this error code was introduced, but it's likely
to be 2.7.0.

10 years agocyassl: use RNG_GenerateBlock to generate a good random number
Dan Fandrich [Wed, 30 Jul 2014 22:09:13 +0000 (00:09 +0200)]
cyassl: use RNG_GenerateBlock to generate a good random number

10 years agoopts: fixed some typos
Dan Fandrich [Wed, 30 Jul 2014 21:36:18 +0000 (23:36 +0200)]
opts: fixed some typos

10 years agosmtp: fixed a segfault during test 1320 torture test
Dan Fandrich [Wed, 30 Jul 2014 21:18:47 +0000 (23:18 +0200)]
smtp: fixed a segfault during test 1320 torture test

Under these circumstances, the connection hasn't been fully established
and smtp_connect hasn't been called, yet smtp_done still calls the state
machine which dereferences the NULL conn pointer in struct pingpong.

10 years agovtls: repair build without TLS support
Daniel Stenberg [Wed, 30 Jul 2014 21:17:41 +0000 (23:17 +0200)]
vtls: repair build without TLS support

... by defining Curl_ssl_random() properly

10 years agopolarssl: provide a (weak) random function
Daniel Stenberg [Wed, 30 Jul 2014 18:59:16 +0000 (20:59 +0200)]
polarssl: provide a (weak) random function

This now provides a weak random function since PolarSSL doesn't have a
quick and easy way to provide a good one. It does however provide the
framework to make one so it _can_ and _should_ be done...

10 years agocurl_tlsinfo -> curl_tlssessioninfo
Michael Wallner [Wed, 30 Jul 2014 09:00:47 +0000 (11:00 +0200)]
curl_tlsinfo -> curl_tlssessioninfo

10 years agocyassl: use the default (weeker) random
Daniel Stenberg [Wed, 30 Jul 2014 08:08:27 +0000 (10:08 +0200)]
cyassl: use the default (weeker) random

I couldn't find any dedicated function in its API to get a "good" random
with.

10 years agocyassl: made it compile with version 2.0.6 again
Daniel Stenberg [Wed, 30 Jul 2014 08:07:42 +0000 (10:07 +0200)]
cyassl: made it compile with version 2.0.6 again

ASN_NO_SIGNER_E didn't exist back then!

10 years agovtls: make the random function mandatory in the TLS backend
Daniel Stenberg [Tue, 3 Jun 2014 18:04:46 +0000 (20:04 +0200)]
vtls: make the random function mandatory in the TLS backend

To force each backend implementation to really attempt to provide proper
random. If a proper random function is missing, then we can explicitly
make use of the default one we use when TLS support is missing.

This commit makes sure it works for darwinssl, gnutls, nss and openssl.

10 years agolibcurl.m4: include the standard source header
Daniel Stenberg [Mon, 28 Jul 2014 22:06:03 +0000 (00:06 +0200)]
libcurl.m4: include the standard source header

... with permission from David Shaw

10 years agonss: do not check the version of NSS at run time
Kamil Dudka [Mon, 28 Jul 2014 14:27:04 +0000 (16:27 +0200)]
nss: do not check the version of NSS at run time

The minimal required version of NSS is 3.14.x so it does not make sense
to check for NSS 3.12.0+ at run time.

10 years agocurl.h: bring back CURLE_OBSOLETE16
Anthon Pang [Sun, 27 Jul 2014 19:39:12 +0000 (19:39 +0000)]
curl.h: bring back CURLE_OBSOLETE16

Removing defines, even obsolete ones that haven't been used for a very
long time, still break a lot of applications.

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

10 years agotests: Fix a couple of incomplete response lines
Fabian Keil [Tue, 8 Jul 2014 10:47:58 +0000 (12:47 +0200)]
tests: Fix a couple of incomplete response lines

10 years agoruntests.pl: Remove filteroff() which hasn't been used since 2001
Fabian Keil [Thu, 19 Jun 2014 15:31:35 +0000 (17:31 +0200)]
runtests.pl: Remove filteroff() which hasn't been used since 2001

10 years agoruntests.pl: Don't expect $TESTDIR/DISABLED to exist
Fabian Keil [Thu, 19 Jun 2014 14:40:06 +0000 (16:40 +0200)]
runtests.pl: Don't expect $TESTDIR/DISABLED to exist

If a non-standard $TESTDIR is used the file may not be necessary.

Previously a "missing" file resulted in the warning:
readline() on closed filehandle D at ./runtests.pl line 4940.

10 years agogetpart.pm: Fix a comment typo
Fabian Keil [Sun, 15 Jun 2014 15:21:14 +0000 (17:21 +0200)]
getpart.pm: Fix a comment typo

10 years agoc-ares: fix build without IPv6 support
Daniel Stenberg [Fri, 25 Jul 2014 07:25:16 +0000 (09:25 +0200)]
c-ares: fix build without IPv6 support

Bug: http://curl.haxx.se/mail/lib-2014-07/0337.html
Reported-by: Spork Schivago
10 years agoCurl_base64url_encode: unit-tested in 1302
Daniel Stenberg [Fri, 25 Jul 2014 06:38:16 +0000 (08:38 +0200)]
Curl_base64url_encode: unit-tested in 1302

10 years agobase64: added Curl_base64url_encode()
Daniel Stenberg [Fri, 25 Jul 2014 06:24:03 +0000 (08:24 +0200)]
base64: added Curl_base64url_encode()

This is now used by the http2 code. It has two different symbols at the
end of the base64 table to make the output "url safe".

Bug: https://github.com/tatsuhiro-t/nghttp2/issues/62

10 years agoSSPI Negotiate: Fix 3 memory leaks
Marcel Raad [Thu, 24 Jul 2014 16:55:12 +0000 (18:55 +0200)]
SSPI Negotiate: Fix 3 memory leaks

Curl_base64_decode allocates the output string by itself and two other
strings were not freed either.

10 years agosymbols: CURL_VERSION_GSSNEGOTIATE is deprecated
Daniel Stenberg [Thu, 24 Jul 2014 21:47:32 +0000 (23:47 +0200)]
symbols: CURL_VERSION_GSSNEGOTIATE is deprecated

10 years agotest1013.pl: GSS-Negotiate doesn't exist as a feature anymore
Daniel Stenberg [Thu, 24 Jul 2014 21:46:11 +0000 (23:46 +0200)]
test1013.pl: GSS-Negotiate doesn't exist as a feature anymore

10 years agolibtest: fixed duplicated line in Makefile
Sergey Nikulov [Thu, 24 Jul 2014 10:26:42 +0000 (14:26 +0400)]
libtest: fixed duplicated line in Makefile

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

10 years agoGSSAPI: remove useless *_MECHANISM defines.
Patrick Monnerat [Wed, 23 Jul 2014 16:56:19 +0000 (18:56 +0200)]
GSSAPI: remove useless *_MECHANISM defines.

10 years agofindprotocol: show unsupported protocol within quotes
Daniel Stenberg [Wed, 23 Jul 2014 16:16:38 +0000 (18:16 +0200)]
findprotocol: show unsupported protocol within quotes

... to aid when for example prefixed with a space or other weird
character.

10 years agoGSSAPI: private export mechanisms OIDs. OS400: Make RPG binding up to date.
Patrick Monnerat [Wed, 23 Jul 2014 14:15:01 +0000 (16:15 +0200)]
GSSAPI: private export mechanisms OIDs. OS400: Make RPG binding up to date.

10 years agoconncache: fix compiler warning
Marcel Raad [Wed, 23 Jul 2014 10:05:47 +0000 (12:05 +0200)]
conncache: fix compiler warning

warning C4267: '=' : conversion from 'size_t' to 'long', possible loss
of data

The member connection_id of struct connectdata is a long (always a
32-bit signed integer on Visual C++) and the member next_connection_id
of struct conncache is a size_t, so one of them should be changed to
match the other.

This patch the size_t in struct conncache to long (the less invasive
change as that variable is only ever used in a single code line).

Bug: http://curl.haxx.se/bug/view.cgi?id=1399

10 years agoRELEASE-NOTES: synced with 81cd24adb8b
Daniel Stenberg [Wed, 23 Jul 2014 07:52:06 +0000 (09:52 +0200)]
RELEASE-NOTES: synced with 81cd24adb8b

10 years agohttp2: more and better error checking
Daniel Stenberg [Wed, 23 Jul 2014 07:23:56 +0000 (09:23 +0200)]
http2: more and better error checking

1 - fixes the warnings when built without http2 support

2 - adds CURLE_HTTP2, a new error code for errors detected by nghttp2
basically when they are about http2 specific things.

10 years agocyassl.c: return the correct error code on no CA cert
Dan Fandrich [Tue, 22 Jul 2014 22:43:47 +0000 (00:43 +0200)]
cyassl.c: return the correct error code on no CA cert

CyaSSL 3.0.0 returns a unique error code if no CA cert is available,
so translate that into CURLE_SSL_CACERT_BADFILE when peer verification
is requested.

10 years agosymbols-in-versions: new SPNEGO/GSS-API symbols in 7.38.0
Daniel Stenberg [Tue, 22 Jul 2014 09:01:43 +0000 (11:01 +0200)]
symbols-in-versions: new SPNEGO/GSS-API symbols in 7.38.0

10 years agotest1013.pl: remove SPNEGO/GSS-API tweaks
Daniel Stenberg [Tue, 22 Jul 2014 09:01:04 +0000 (11:01 +0200)]
test1013.pl: remove SPNEGO/GSS-API tweaks

No longer necessary after Michael Osipov's rework

10 years agohttp_negotiate: remove unused variable
Daniel Stenberg [Tue, 22 Jul 2014 09:00:43 +0000 (11:00 +0200)]
http_negotiate: remove unused variable

10 years agodocs: Improve inline GSS-API naming in code documentation
Michael Osipov [Mon, 21 Jul 2014 07:53:47 +0000 (09:53 +0200)]
docs: Improve inline GSS-API naming in code documentation

10 years agocurl.h/features: Deprecate GSS-Negotiate macros due to bad naming
Michael Osipov [Mon, 21 Jul 2014 07:53:46 +0000 (09:53 +0200)]
curl.h/features: Deprecate GSS-Negotiate macros due to bad naming

- Replace CURLAUTH_GSSNEGOTIATE with CURLAUTH_NEGOTIATE
- CURL_VERSION_GSSNEGOTIATE is deprecated which
  is served by CURL_VERSION_SSPI, CURL_VERSION_GSSAPI and
  CURUL_VERSION_SPNEGO now.
- Remove display of feature 'GSS-Negotiate'

10 years agoconfigure/features: Add feature and version info for GSS-API and SPNEGO
Michael Osipov [Mon, 21 Jul 2014 07:53:45 +0000 (09:53 +0200)]
configure/features: Add feature and version info for GSS-API and SPNEGO

10 years agoHTTP: Remove checkprefix("GSS-Negotiate")
Michael Osipov [Mon, 21 Jul 2014 07:53:44 +0000 (09:53 +0200)]
HTTP: Remove checkprefix("GSS-Negotiate")

That auth mech has never existed neither on MS nor on Unix side.
There is only Negotiate over SPNEGO.

10 years agocurl_gssapi: Add macros for common mechs and pass them appropriately
Michael Osipov [Mon, 21 Jul 2014 07:53:43 +0000 (09:53 +0200)]
curl_gssapi: Add macros for common mechs and pass them appropriately

Macros defined: KRB5_MECHANISM and SPNEGO_MECHANISM called from
HTTP, FTP and SOCKS on Unix

10 years agoCONNECT: Revert Curl_proxyCONNECT back to 7.29.0 design
Daniel Stenberg [Sat, 19 Jul 2014 21:58:58 +0000 (23:58 +0200)]
CONNECT: Revert Curl_proxyCONNECT back to 7.29.0 design

This reverts commit cb3e6dfa3511 and instead fixes the problem
differently.

The reverted commit addressed a test failure in test 1021 by simplifying
and generalizing the code flow in a way that damaged the
performance. Now we modify the flow so that Curl_proxyCONNECT() again
does as much as possible in one go, yet still do test 1021 with and
without valgrind. It failed due to mistakes in the multi state machine.

Bug: http://curl.haxx.se/bug/view.cgi?id=1397
Reported-by: Paul Saab
10 years agourl.c: use the preferred symbol name: *READDATA
Marcel Raad [Tue, 22 Jul 2014 09:26:16 +0000 (11:26 +0200)]
url.c: use the preferred symbol name: *READDATA

with CURL_NO_OLDIES defined, it doesn't compile because this deprecated
symbol (*INFILE) is used

Bug: http://curl.haxx.se/bug/view.cgi?id=1398

10 years agoCURLOPT_CHUNK_BGN_FUNCTION: fix typo
Alessandro Ghedini [Fri, 18 Jul 2014 09:18:56 +0000 (11:18 +0200)]
CURLOPT_CHUNK_BGN_FUNCTION: fix typo

10 years agobuild: link curl to NSS libraries when NSS support is enabled
Alessandro Ghedini [Thu, 17 Jul 2014 12:37:28 +0000 (14:37 +0200)]
build: link curl to NSS libraries when NSS support is enabled

This fixes a build failure on Debian caused by commit
24c3cdce88f39731506c287cb276e8bf4a1ce393.

Bug: http://curl.haxx.se/mail/lib-2014-07/0209.html

10 years agobuild: Removed unnecessary XML Documentation file directive from VC8 to VC12
Steve Holme [Sat, 28 Jun 2014 12:55:31 +0000 (13:55 +0100)]
build: Removed unnecessary XML Documentation file directive from VC8 to VC12

The curl tool project files for VC8 to VC12 would set this setting to
$(IntDir) which is the Visual Studio default value. To avoid confusion
when viewing settings from within Visual Studio and for consistency
with the libcurl project files removed this setting.

Conflicts:
projects/Windows/VC10/src/curlsrc.tmpl
projects/Windows/VC11/src/curlsrc.tmpl
projects/Windows/VC12/src/curlsrc.tmpl
projects/Windows/VC8/src/curlsrc.tmpl
projects/Windows/VC9/src/curlsrc.tmpl