]> granicus.if.org Git - curl/log
curl
9 years agoopenssl: remove #ifdefs for < 0.9.5 support
Daniel Stenberg [Fri, 13 Nov 2015 14:49:49 +0000 (15:49 +0100)]
openssl: remove #ifdefs for < 0.9.5 support

We only support >= 0.9.7

9 years agolib/vtls/openssl: remove unused traces of yassl ifdefs
Daniel Stenberg [Fri, 13 Nov 2015 14:48:04 +0000 (15:48 +0100)]
lib/vtls/openssl: remove unused traces of yassl ifdefs

9 years agounit1603: Demote hash mismatch failure to a warning
dfandrich [Thu, 12 Nov 2015 22:45:56 +0000 (23:45 +0100)]
unit1603: Demote hash mismatch failure to a warning

The hashes can vary between architectures (e.g. Sparc differs from x86_64).
This is not a fatal problem but just reduces the coverage of these white-box
tests, as the assumptions about into which hash bucket each key falls are no
longer valid.

9 years agounit1603: Added unit tests for hash functions
dfandrich [Thu, 12 Nov 2015 19:40:26 +0000 (20:40 +0100)]
unit1603: Added unit tests for hash functions

9 years agounit1602: Fixed failure in torture test
dfandrich [Thu, 12 Nov 2015 18:30:59 +0000 (19:30 +0100)]
unit1602: Fixed failure in torture test

9 years agosasl: Re-introduced XOAUTH2 in the default enabled authentication mechanism
Steve Holme [Thu, 12 Nov 2015 19:45:24 +0000 (19:45 +0000)]
sasl: Re-introduced XOAUTH2 in the default enabled authentication mechanism

Following the fix in commit d6d58dd558 it is necessary to re-introduce
XOAUTH2 in the default enabled authentication mechanism, which was
removed in commit 7b2012f262, otherwise users will have to specify
AUTH=XOAUTH2 in the URL.

Note: OAuth 2.0 will only be used when the bearer is specified.

9 years agosasl_sspi: fix identity memory leak in digest authentication
Stefan Bühler [Thu, 12 Nov 2015 10:10:32 +0000 (11:10 +0100)]
sasl_sspi: fix identity memory leak in digest authentication

9 years agosasl_sspi: fixed unicode build for digest authentication
Stefan Bühler [Thu, 12 Nov 2015 10:09:21 +0000 (11:09 +0100)]
sasl_sspi: fixed unicode build for digest authentication

Closes #525

9 years agooauth2: Re-factored OAuth 2.0 state variable
Steve Holme [Sat, 5 Sep 2015 16:32:37 +0000 (17:32 +0100)]
oauth2: Re-factored OAuth 2.0 state variable

9 years agosasl: Don't choose OAuth 2.0 if mechanism not advertised
Steve Holme [Sat, 5 Sep 2015 16:29:49 +0000 (17:29 +0100)]
sasl: Don't choose OAuth 2.0 if mechanism not advertised

Regression from commit 9e8ced9890 which meant if --oauth2-bearer was
specified but the SASL mechanism wasn't supported by the server then
the mechanism would be chosen.

9 years agoruntests: more compact "System characteristics" output
Daniel Stenberg [Thu, 12 Nov 2015 14:32:48 +0000 (15:32 +0100)]
runtests: more compact "System characteristics" output

- no point in repeating curl features that is already listed as features
  from the curl -V output

- remove the port numbers/unix domain path from the output unless
  verbose is used, as that is rarely interesting to users.

9 years agoruntests: rename conditional curl-features to $has_[name]
Daniel Stenberg [Thu, 12 Nov 2015 13:50:13 +0000 (14:50 +0100)]
runtests: rename conditional curl-features to $has_[name]

9 years agooauth2: Introduced support for host and port details
Steve Holme [Sat, 5 Sep 2015 16:08:54 +0000 (17:08 +0100)]
oauth2: Introduced support for host and port details

Added support to the OAuth 2.0 message function for host and port, in
order to accommodate the official OAUTHBEARER SASL mechanism which is
to be added shortly.

9 years agocurl_setup.h: Removed duplicate CURL_DISABLE_RTSP when HTTP_ONLY defined
Steve Holme [Wed, 11 Nov 2015 22:19:39 +0000 (22:19 +0000)]
curl_setup.h: Removed duplicate CURL_DISABLE_RTSP when HTTP_ONLY defined

9 years agocmake: Add missing feature macros in config header (Part 2)
Steve Holme [Wed, 11 Nov 2015 22:18:24 +0000 (22:18 +0000)]
cmake: Add missing feature macros in config header (Part 2)

In addition to commit a215381c94 added the RTSP, RTMP and SMB protocols.

9 years agocmake: Add missing feature macros in config header
Douglas Creager [Tue, 10 Nov 2015 19:46:49 +0000 (14:46 -0500)]
cmake: Add missing feature macros in config header

The curl_config.h file can be generated either from curl_config.h.cmake
or curl_config.h.in, depending on whether you're building using CMake or
the autotools.  The CMake template header doesn't include entries for
all of the protocols that you can disable, which (I think) means that
you can't actually disable those protocols when building via CMake.

Closes #523

9 years agoBoringSSL: Work with stricter BIO_get_mem_data()
Douglas Creager [Tue, 10 Nov 2015 20:05:18 +0000 (15:05 -0500)]
BoringSSL: Work with stricter BIO_get_mem_data()

BoringSSL implements `BIO_get_mem_data` as a function, instead of a
macro, and expects the output pointer to be a `char **`.  We have to add
an explicit cast to grab the pointer as a `const char **`.

Closes #524

9 years agohttp2: rectify the http2 version #if check
Daniel Stenberg [Tue, 10 Nov 2015 08:10:46 +0000 (09:10 +0100)]
http2: rectify the http2 version #if check

We need 1.0.0 or later. Also verified by configure.

9 years agooauth2: Don't use XAUTH2 in OAuth 2.0 function name
Steve Holme [Wed, 4 Nov 2015 07:20:21 +0000 (07:20 +0000)]
oauth2: Don't use XAUTH2 in OAuth 2.0 function name

9 years agooauth2: Don't use XOAUTH2 in OAuth 2.0 variables
Steve Holme [Fri, 4 Sep 2015 06:11:09 +0000 (07:11 +0100)]
oauth2: Don't use XOAUTH2 in OAuth 2.0 variables

9 years agooauth2: Use OAuth 2.0 rather than XOAUTH2 in comments
Steve Holme [Fri, 4 Sep 2015 05:56:26 +0000 (06:56 +0100)]
oauth2: Use OAuth 2.0 rather than XOAUTH2 in comments

When referring to OAuth 2.0 we should use the official name rather the
SASL mechanism name.

9 years agoimap: avoid freeing constant string
Daniel Stenberg [Mon, 9 Nov 2015 09:54:55 +0000 (10:54 +0100)]
imap: avoid freeing constant string

The fix in 1a614c6c3 was wrong and would leed to free() of a fixed
string.

Pointed-out-by: Kamil Dudka
9 years agoROADMAP: remove two items already done
Daniel Stenberg [Mon, 9 Nov 2015 08:05:43 +0000 (09:05 +0100)]
ROADMAP: remove two items already done

9 years agoRELEASE-NOTES: synced with 2200bf62054
Daniel Stenberg [Mon, 9 Nov 2015 07:56:28 +0000 (08:56 +0100)]
RELEASE-NOTES: synced with 2200bf62054

9 years agoacinclude: Remove check for 16-bit curl_off_t
Jay Satiro [Mon, 9 Nov 2015 07:56:40 +0000 (02:56 -0500)]
acinclude: Remove check for 16-bit curl_off_t

Because it's illogical to check for a 16-bit curl_off_t.

Ref: https://github.com/bagder/curl/issues/425#issuecomment-154964205

9 years agotool: Fixed a memory leak on OOM introduced in 19cb0c4a
Dan Fandrich [Sun, 8 Nov 2015 15:50:25 +0000 (16:50 +0100)]
tool: Fixed a memory leak on OOM introduced in 19cb0c4a

9 years agoimap: Don't check for continuation when executing a CUSTOMREQUEST
Justin Ehlert [Tue, 13 Oct 2015 13:55:05 +0000 (08:55 -0500)]
imap: Don't check for continuation when executing a CUSTOMREQUEST

Bug: https://github.com/bagder/curl/issues/486
Closes https://github.com/bagder/curl/pull/487

9 years agoimap: checksrc: remove space after while before paren
Daniel Stenberg [Sat, 7 Nov 2015 22:21:29 +0000 (23:21 +0100)]
imap: checksrc: remove space after while before paren

9 years agochecksrc.whitelist: "missing space after close paren"
Daniel Stenberg [Sat, 7 Nov 2015 22:20:50 +0000 (23:20 +0100)]
checksrc.whitelist: "missing space after close paren"

... when it was within a string!

9 years agoopts: Corrected TLS protocols list to include POP3S rather than POP3
Steve Holme [Sat, 7 Nov 2015 22:11:04 +0000 (22:11 +0000)]
opts: Corrected TLS protocols list to include POP3S rather than POP3

9 years agoimap: Quote other 'atom-specials' and not just the space character
Steve Holme [Sat, 7 Nov 2015 11:59:32 +0000 (11:59 +0000)]
imap: Quote other 'atom-specials' and not just the space character

Closes #517

9 years agoimap: Fixed double quote in LIST command when mailbox contains spaces
Steve Holme [Sat, 7 Nov 2015 11:20:34 +0000 (11:20 +0000)]
imap: Fixed double quote in LIST command when mailbox contains spaces

9 years agoimap: fix compiler warning
Daniel Stenberg [Fri, 6 Nov 2015 22:44:27 +0000 (23:44 +0100)]
imap: fix compiler warning

imap.c:657:13: error: assignment discards 'const' qualifier from pointer
target type [-Werror=discarded-qualifiers]

9 years agoimap: Don't call imap_atom() when no mailbox specified in LIST command
Steve Holme [Fri, 6 Nov 2015 21:49:26 +0000 (21:49 +0000)]
imap: Don't call imap_atom() when no mailbox specified in LIST command

9 years agocurl.1: remove the overlap --range example
Daniel Stenberg [Fri, 6 Nov 2015 14:03:00 +0000 (15:03 +0100)]
curl.1: remove the overlap --range example

... it is just weird to include by default even if it still works.

9 years agotftp tests: verify sent options too
Daniel Stenberg [Fri, 6 Nov 2015 09:52:19 +0000 (10:52 +0100)]
tftp tests: verify sent options too

The tftpd test server now logs all received options and thus all TFTP
test cases need to match them exactly.

Extended test 283 to use and verify --tftp-blksize.

9 years agogetinfo: CURLINFO_ACTIVESOCKET: fix bad socket value
Jay Satiro [Fri, 6 Nov 2015 05:30:16 +0000 (00:30 -0500)]
getinfo: CURLINFO_ACTIVESOCKET: fix bad socket value

- Set user info param to the socket returned by Curl_getconnectinfo,
regardless of if the socket is bad. Effectively this means the user info
param now will receive CURL_SOCKET_BAD instead of -1 on bad socket.

- Remove incorrect comments.

CURLINFO_ACTIVESOCKET is documented to write CURL_SOCKET_BAD to user
info param but prior to this change it wrote -1.

Bug: https://github.com/bagder/curl/pull/518
Reported-by: Marcel Raad
9 years agocurl_ntlm_core: fix 2 curl_off_t constant overflows.
Patrick Monnerat [Thu, 5 Nov 2015 14:20:43 +0000 (15:20 +0100)]
curl_ntlm_core: fix 2 curl_off_t constant overflows.

9 years agoos400: adjust specific code to support new options.
Patrick Monnerat [Thu, 5 Nov 2015 13:41:22 +0000 (14:41 +0100)]
os400: adjust specific code to support new options.

9 years agorawstr: Speed up Curl_raw_toupper by 40%
Lauri Kasanen [Mon, 2 Nov 2015 20:18:03 +0000 (21:18 +0100)]
rawstr: Speed up Curl_raw_toupper by 40%

Rationale: when starting up a curl-using app, all cookies from the jar
are checked against each other. This was causing a startup delay in the
Fifth browser.

All tests pass.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
9 years agohttp redirects: %-encode bytes outside of ascii range
Daniel Stenberg [Mon, 2 Nov 2015 11:48:03 +0000 (12:48 +0100)]
http redirects: %-encode bytes outside of ascii range

Apparently there are sites out there that do redirects to URLs they
provide in plain UTF-8 or similar. Browsers and wget %-encode such
headers when doing a subsequent request. Now libcurl does too.

Added test 1138 to verify.

Closes #473

9 years agoRELEASE-NOTES: synced with cba5bc585410
Daniel Stenberg [Mon, 2 Nov 2015 09:16:21 +0000 (10:16 +0100)]
RELEASE-NOTES: synced with cba5bc585410

9 years agosymbols-in-version: add all CURL_HTTPPOST_* symbols
Daniel Stenberg [Mon, 2 Nov 2015 07:40:57 +0000 (08:40 +0100)]
symbols-in-version: add all CURL_HTTPPOST_* symbols

9 years agoformadd: support >2GB files on windows
Daniel Stenberg [Fri, 23 Oct 2015 22:52:25 +0000 (00:52 +0200)]
formadd: support >2GB files on windows

Closes #425

9 years agocurl.h: s/HTTPPOST_/CURL_HTTPOST_
Daniel Stenberg [Sat, 31 Oct 2015 21:48:21 +0000 (22:48 +0100)]
curl.h: s/HTTPPOST_/CURL_HTTPOST_

Fixes a name space pollution at the cost of programs using one of these
defines will no longer compile. However, the vast majority of libcurl
programs that do multipart formposts use curl_formadd() to build this
list.

Closes #506

9 years agombedtls: fix "Structurally dead code"
Daniel Stenberg [Thu, 29 Oct 2015 21:59:27 +0000 (22:59 +0100)]
mbedtls: fix "Structurally dead code"

CID 1332129

9 years agombedtls: fix "Logically dead code"
Daniel Stenberg [Thu, 29 Oct 2015 21:57:09 +0000 (22:57 +0100)]
mbedtls: fix "Logically dead code"

CID 1332128

9 years agoRevert "openssl: engine: remove double-free"
Daniel Stenberg [Thu, 29 Oct 2015 13:59:11 +0000 (14:59 +0100)]
Revert "openssl: engine: remove double-free"

This reverts commit 370ee919b37cc9a46c36428b2bb1527eae5db2bd.

Issue #509 has all the details but it was confirmed that the crash was
not due to this, so the previous commit was wrong.

9 years agocurl.1: -E: s/private certificate/client certificate
Daniel Stenberg [Wed, 28 Oct 2015 12:17:54 +0000 (13:17 +0100)]
curl.1: -E: s/private certificate/client certificate

... as the certificate is strictly speaking not private.

Reported-by: John Levon
9 years agoopenssl: engine: remove double-free
Daniel Stenberg [Tue, 27 Oct 2015 12:45:25 +0000 (13:45 +0100)]
openssl: engine: remove double-free

After a successful call to SSL_CTX_use_PrivateKey(), we must not call
EVP_PKEY_free() on the key.

Reported-by: nased0
Closes #509

9 years agosocks: Fix incorrect port numbers in failed connect messages
Jay Satiro [Tue, 27 Oct 2015 06:39:00 +0000 (02:39 -0400)]
socks: Fix incorrect port numbers in failed connect messages

9 years agoDISTRO-DILEMMA: removed
Daniel Stenberg [Mon, 26 Oct 2015 15:31:03 +0000 (16:31 +0100)]
DISTRO-DILEMMA: removed

Out of date and not kept accurate. It was sort of a problem of the past
anyway.

9 years agoMacOSX-Framework: sdk regex fix for sdk 10.10 and later
xiangbin li [Sun, 25 Oct 2015 11:35:16 +0000 (12:35 +0100)]
MacOSX-Framework: sdk regex fix for sdk 10.10 and later

closes #507

9 years agobuild: Fix support for PKG_CONFIG
Jay Satiro [Sat, 24 Oct 2015 07:31:57 +0000 (03:31 -0400)]
build: Fix support for PKG_CONFIG

- Allow the user to use PKG_CONFIG but not PKGCONFIG.

Background:

Last week in 14d5a86 a change was made to allow the user to set the
PKGCONFIG variable. Today in 72d99f2 I supplemented that to allow the
more common PKG_CONFIG as an alternative if PKGCONFIG is not set.

Neither of those changes worked as expected because PKGCONFIG is
occasionally reset in configure and by the CURL_CHECK_PKGCONFIG macro.
Instead in this commit I take the approach that the user may set
PKG_CONFIG only.

9 years agobuild: Fix mingw ssl gdi32 order
Jay Satiro [Fri, 23 Oct 2015 21:17:54 +0000 (17:17 -0400)]
build: Fix mingw ssl gdi32 order

- If mingw ssl make sure -lgdi32 comes after ssl libs

- Allow PKG_CONFIG to set pkg-config location and options

Bug: https://github.com/bagder/curl/pull/501
Reported-by: Kang Lin
9 years agoRELEASE-NOTES: synced with 03b6e078163f
Daniel Stenberg [Fri, 23 Oct 2015 14:40:44 +0000 (16:40 +0200)]
RELEASE-NOTES: synced with 03b6e078163f

9 years agopolarssl/mbedtls: fix name space pollution
Daniel Stenberg [Fri, 23 Oct 2015 14:14:29 +0000 (16:14 +0200)]
polarssl/mbedtls: fix name space pollution

Global private symbols MUST start with Curl_!

9 years agombedTLS: THREADING_SUPPORT compilation fix
Dmitry S. Baikov [Fri, 23 Oct 2015 22:46:03 +0000 (15:46 -0700)]
mbedTLS: THREADING_SUPPORT compilation fix

Closes #505

9 years agotest1137: verify --ignore-content-length for FTP
Daniel Stenberg [Fri, 23 Oct 2015 13:24:56 +0000 (15:24 +0200)]
test1137: verify --ignore-content-length for FTP

9 years agocurl.1: --ignore-content-length now works for FTP too
Daniel Stenberg [Fri, 23 Oct 2015 13:24:31 +0000 (15:24 +0200)]
curl.1: --ignore-content-length now works for FTP too

9 years agoftp: allow CURLOPT_IGNORE_CONTENT_LENGTH to ignore size
Kurt Fankhauser [Fri, 23 Oct 2015 12:57:30 +0000 (14:57 +0200)]
ftp: allow CURLOPT_IGNORE_CONTENT_LENGTH to ignore size

This allows FTP transfers with growing (or shrinking) files without
causing a transfer error.

Closes #480

9 years agoCURLOPT_STREAM_WEIGHT.3: call argument 'weight' too
Daniel Stenberg [Fri, 23 Oct 2015 07:23:46 +0000 (09:23 +0200)]
CURLOPT_STREAM_WEIGHT.3: call argument 'weight' too

... and add a little example of what the weight actually means. "Relative
proportion of bandwidth".

9 years agohttp2: add stream options to dist and curl_easy_setopt.3
Daniel Stenberg [Fri, 23 Oct 2015 07:16:00 +0000 (09:16 +0200)]
http2: add stream options to dist and curl_easy_setopt.3

9 years agohttp2: s/priority/weight
Daniel Stenberg [Wed, 21 Oct 2015 20:47:24 +0000 (22:47 +0200)]
http2: s/priority/weight

9 years agohttp2: on_frame_recv: trust the conn/data input
Daniel Stenberg [Wed, 21 Oct 2015 13:45:07 +0000 (15:45 +0200)]
http2: on_frame_recv: trust the conn/data input

Removed wrong assert()s

The 'conn' passed in as userdata can be used and there can be other
sessionhandles ('data') than the single one this checked for.

9 years agohttp2: added three stream prio/deps options
Daniel Stenberg [Sun, 13 Sep 2015 14:07:05 +0000 (16:07 +0200)]
http2: added three stream prio/deps options

CURLOPT_STREAM_DEPENDS

CURLOPT_STREAM_DEPENDS_E

CURLOPT_STREAM_PRIORITY

9 years agoRELEASE-NOTES: synced with ace68fdc0cfed83d
Daniel Stenberg [Thu, 22 Oct 2015 16:40:53 +0000 (18:40 +0200)]
RELEASE-NOTES: synced with ace68fdc0cfed83d

9 years agombedtls:new profile with RSA min key len = 1024.
m-gardet [Wed, 21 Oct 2015 07:30:31 +0000 (09:30 +0200)]
mbedtls:new profile with RSA min key len = 1024.

Closes #502

9 years agochecksrc: add crude // detection
Daniel Stenberg [Wed, 21 Oct 2015 11:46:03 +0000 (13:46 +0200)]
checksrc: add crude // detection

9 years agobuild: fix for MSDOS/djgpp
Gisle Vanem [Wed, 21 Oct 2015 16:59:43 +0000 (12:59 -0400)]
build: fix for MSDOS/djgpp

- Add a VPATH-statement for the vtls/*.c files.

- Due to 'vtls/*.c', remove that subdir part from $(OBJECTS).

9 years agocopyrights: update Gisle Vanem's email
Daniel Stenberg [Tue, 20 Oct 2015 11:33:01 +0000 (13:33 +0200)]
copyrights: update Gisle Vanem's email

9 years agovtls: fix compiler warning for TLS backends without sha256
Daniel Stenberg [Tue, 20 Oct 2015 06:12:44 +0000 (08:12 +0200)]
vtls: fix compiler warning for TLS backends without sha256

... noticed with mbedTLS.

9 years agovtls: added support for mbedTLS
Jonas Minnberg [Mon, 19 Oct 2015 12:25:34 +0000 (14:25 +0200)]
vtls: added support for mbedTLS

closes #496

9 years agocmake: Fix for add_subdirectory(curl) use-case
Javier G. Sogo [Mon, 19 Oct 2015 14:09:14 +0000 (16:09 +0200)]
cmake: Fix for add_subdirectory(curl) use-case

- Use CURL_BINARY_DIR instead of CMAKE_BINARY_DIR.

When including CURL using add_subdirectory the variables
CMAKE_BINARY_DIR and CURL_BINARY_DIR hold different paths.

Closes https://github.com/bagder/curl/pull/488
Closes https://github.com/bagder/curl/pull/498

9 years agoRELEASE-NOTES: synced with 4c773bcb474e
Daniel Stenberg [Sun, 18 Oct 2015 21:48:07 +0000 (23:48 +0200)]
RELEASE-NOTES: synced with 4c773bcb474e

9 years agotests/FILEFORMAT: mention PSL as a valid feture to check for
Daniel Stenberg [Sun, 18 Oct 2015 21:25:26 +0000 (23:25 +0200)]
tests/FILEFORMAT: mention PSL as a valid feture to check for

For example in test 1136

9 years agoteste1136: only run when PSL is enabled
Daniel Stenberg [Sun, 18 Oct 2015 21:20:08 +0000 (23:20 +0200)]
teste1136: only run when PSL is enabled

9 years agocurl: slist_wc: remove curl_memory.h inclusion
Daniel Stenberg [Sat, 17 Oct 2015 22:43:37 +0000 (00:43 +0200)]
curl: slist_wc: remove curl_memory.h inclusion

... that's for the library only.

9 years agoconfigure: add PSL to the list of features
Daniel Stenberg [Sat, 17 Oct 2015 22:11:13 +0000 (00:11 +0200)]
configure: add PSL to the list of features

... to make test 1014 work again after e77b5b7453.

9 years agotool: Generate easysrc with last cache linked-list
Daniel Hwang [Sat, 17 Oct 2015 21:57:58 +0000 (23:57 +0200)]
tool: Generate easysrc with last cache linked-list

Using a last cache linked-list improves the performance of easysrc
generation.

Bug: https://github.com/bagder/curl/issues/444
Ref: https://github.com/bagder/curl/issues/429

Closes #452

9 years agocookies: Add support for Mozilla's Publix Suffix List
Tim Rühsen [Tue, 29 Sep 2015 09:33:01 +0000 (11:33 +0200)]
cookies: Add support for Mozilla's Publix Suffix List

Use libpsl to check the domain value of Set-Cookie headers (and cookie
jar entries) for not being a Publix Suffix.

The configure script checks for "libpsl" by default. Disable the check
with --without-libpsl.

Ref: https://publicsuffix.org/
Ref: https://github.com/publicsuffix/list
Ref: https://github.com/rockdaboot/libpsl

9 years agocurlbuild.h: Fix non-configure compiling to mips and sh4 targets
Richard Hosking [Fri, 16 Oct 2015 20:29:29 +0000 (21:29 +0100)]
curlbuild.h: Fix non-configure compiling to mips and sh4 targets

9 years agohttp2: Don't pass unitialized name+len pairs to nghttp2_submit_request
Anders Bakken [Fri, 16 Oct 2015 18:51:12 +0000 (11:51 -0700)]
http2: Don't pass unitialized name+len pairs to nghttp2_submit_request

bug introduced by 18691642931e5c7ac8af83ac3a84fbcb36000f96.

Closes #493

9 years agotest1601: fix compilation with --enable-debug and --disable-crypto-auth
Dan Fandrich [Fri, 16 Oct 2015 19:43:56 +0000 (21:43 +0200)]
test1601: fix compilation with --enable-debug and --disable-crypto-auth

9 years agomulti: fix off-by-one finit[] array size
Daniel Stenberg [Fri, 16 Oct 2015 20:42:30 +0000 (22:42 +0200)]
multi: fix off-by-one finit[] array size

introduced in c6aedf680f6. It needs to be CURLM_STATE_LAST big since it
must hande the range 0 .. CURLM_STATE_MSGSENT (18) and CURLM_STATE_LAST
is 19 right now.

Reported-by: Dan Fandrich
Bug: http://curl.haxx.se/mail/lib-2015-10/0069.html

9 years agofread_func: move callback pointer from set to state struct
Daniel Stenberg [Mon, 5 Oct 2015 18:39:10 +0000 (20:39 +0200)]
fread_func: move callback pointer from set to state struct

... and assign it from the set.fread_func_set pointer in the
Curl_init_CONNECT function. This A) avoids that we have code that
assigns fields in the 'set' struct (which we always knew was bad) and
more importantly B) it makes it impossibly to accidentally leave the
wrong value for when the handle is re-used etc.

Introducing a state-init functionality in multi.c, so that we can set a
specific function to get called when we enter a state. The
Curl_init_CONNECT is thus called when switching to the CONNECT state.

Bug: https://github.com/bagder/curl/issues/346

Closes #346

9 years agotest1531: case the size to fix the test on non-largefile builds
Dan Fandrich [Wed, 14 Oct 2015 20:00:09 +0000 (22:00 +0200)]
test1531: case the size to fix the test on non-largefile builds

9 years agoacinclude: remove PKGCONFIG override
Daniel Stenberg [Tue, 13 Oct 2015 10:56:42 +0000 (12:56 +0200)]
acinclude: remove PKGCONFIG override

... and allow it to get set by a caller easier.

Reported-by: Rainer Jung
Bug: http://curl.haxx.se/mail/lib-2015-10/0035.html

9 years agodocs/INSTALL: Updated example minimal binary sizes
Dan Fandrich [Mon, 12 Oct 2015 21:47:10 +0000 (23:47 +0200)]
docs/INSTALL: Updated example minimal binary sizes

9 years agoopenssl: Fix set up of pkcs12 certificate verification chain
Erik Johansson [Fri, 9 Oct 2015 19:02:13 +0000 (21:02 +0200)]
openssl: Fix set up of pkcs12 certificate verification chain

sk_X509_pop will decrease the size of the stack which means that the loop would
end after having added only half of the certificates.

Also make sure that the X509 certificate is freed in case
SSL_CTX_add_extra_chain_cert fails.

9 years agontlm: error out without 64bit support as the code needs it
Daniel Stenberg [Fri, 9 Oct 2015 21:51:54 +0000 (23:51 +0200)]
ntlm: error out without 64bit support as the code needs it

It makes it a clearer message for developers reaching that point without
the necessary support.

Thanks-by: Jay Satiro
Closes #78

9 years agocurl_global_init: set the memory function pointers correct
Daniel Stenberg [Fri, 9 Oct 2015 14:13:54 +0000 (16:13 +0200)]
curl_global_init: set the memory function pointers correct

follow-up from 6f8ecea0

9 years agocurl_global_init_mem: set function pointers before doing init
Daniel Stenberg [Fri, 9 Oct 2015 14:04:11 +0000 (16:04 +0200)]
curl_global_init_mem: set function pointers before doing init

... as in the polarssl TLS backend for example it uses memory functions.

9 years agohttp2: Fix http2_recv to return -1 if recv returned -1
Jay Satiro [Thu, 8 Oct 2015 06:48:44 +0000 (02:48 -0400)]
http2: Fix http2_recv to return -1 if recv returned -1

If the underlying recv called by http2_recv returns -1 then that is the
value http2_recv returns to the caller.

9 years agocurl_easy_recv.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET
Svyatoslav Mishyn [Thu, 8 Oct 2015 16:28:30 +0000 (19:28 +0300)]
curl_easy_recv.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET

Closes #479

9 years agocurl_easy_send.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET
Svyatoslav Mishyn [Thu, 8 Oct 2015 16:26:47 +0000 (19:26 +0300)]
curl_easy_send.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET

9 years agoCURLOPT_CONNECT_ONLY.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET
Svyatoslav Mishyn [Thu, 8 Oct 2015 15:14:18 +0000 (18:14 +0300)]
CURLOPT_CONNECT_ONLY.3: CURLINFO_LASTSOCKET => CURLINFO_ACTIVESOCKET

9 years agoCURLOPT_CERTINFO.3: fix reference to CURLINFO_CERTINFO
Daniel Stenberg [Thu, 8 Oct 2015 11:47:52 +0000 (13:47 +0200)]
CURLOPT_CERTINFO.3: fix reference to CURLINFO_CERTINFO

9 years agontlm: get rid of unconditional use of long long
Daniel Stenberg [Thu, 8 Oct 2015 10:30:22 +0000 (12:30 +0200)]
ntlm: get rid of unconditional use of long long

... since some compilers don't have it and instead use other types, such
as __int64.

Reported by: gkinseyhpw
Closes #478

9 years agodes: Fix header conditional for Curl_des_set_odd_parity
Anders Bakken [Wed, 7 Oct 2015 19:40:23 +0000 (12:40 -0700)]
des: Fix header conditional for Curl_des_set_odd_parity

Follow up to 613e502.