]> granicus.if.org Git - curl/log
curl
9 years agotests: Distribute CMakeLists.txt files in subdirectories
Roger Leigh [Thu, 25 Jun 2015 14:04:41 +0000 (15:04 +0100)]
tests: Distribute CMakeLists.txt files in subdirectories

9 years agoCURLOPT_FAILONERROR.3: mention that it closes the connection
Daniel Stenberg [Wed, 24 Jun 2015 22:26:15 +0000 (15:26 -0700)]
CURLOPT_FAILONERROR.3: mention that it closes the connection

Reported-by: bemoody
Bug: https://github.com/bagder/curl/issues/325

9 years agocurl_multi_setopt.3: alpha sort the options
Daniel Stenberg [Wed, 24 Jun 2015 21:55:12 +0000 (14:55 -0700)]
curl_multi_setopt.3: alpha sort the options

9 years agocurl_multi_setopt.3: add the new push options
Daniel Stenberg [Wed, 24 Jun 2015 21:52:58 +0000 (14:52 -0700)]
curl_multi_setopt.3: add the new push options

9 years agohttp2: Use nghttp2 library error code for error return value
Tatsuhiro Tsujikawa [Sat, 6 Jun 2015 09:10:30 +0000 (18:10 +0900)]
http2: Use nghttp2 library error code for error return value

9 years agohttp2: Harden header validation for curl_pushheader_byname
Tatsuhiro Tsujikawa [Sat, 6 Jun 2015 09:07:00 +0000 (18:07 +0900)]
http2: Harden header validation for curl_pushheader_byname

Since we do prefix match using given header by application code
against header name pair in format "NAME:VALUE", and VALUE part can
contain ":", we have to careful about existence of ":" in header
parameter.  ":" should be allowed to match HTTP/2 pseudo-header field,
and other use of ":" in header must be treated as error, and
curl_pushheader_byname should return NULL.  This commit implements
this behaviour.

9 years agoCURLMOPT_PUSHFUNCTION.3: Remove unused variable
Tatsuhiro Tsujikawa [Sat, 6 Jun 2015 09:06:15 +0000 (18:06 +0900)]
CURLMOPT_PUSHFUNCTION.3: Remove unused variable

9 years agoCURLMOPT_PUSHFUNCTION.3: added example
Daniel Stenberg [Tue, 2 Jun 2015 09:58:39 +0000 (11:58 +0200)]
CURLMOPT_PUSHFUNCTION.3: added example

9 years agohttp2: curl_pushheader_byname now takes a const char *
Daniel Stenberg [Tue, 2 Jun 2015 09:50:00 +0000 (11:50 +0200)]
http2: curl_pushheader_byname now takes a const char *

9 years agohttp2-serverpush.c: example code
Daniel Stenberg [Tue, 2 Jun 2015 09:04:00 +0000 (11:04 +0200)]
http2-serverpush.c: example code

9 years agohttp2: free all header memory after the push callback
Daniel Stenberg [Tue, 2 Jun 2015 09:01:30 +0000 (11:01 +0200)]
http2: free all header memory after the push callback

9 years agohttp2: init the pushed transfer properly
Daniel Stenberg [Tue, 2 Jun 2015 08:34:27 +0000 (10:34 +0200)]
http2: init the pushed transfer properly

9 years agohttp2: fixed the header accessor functions for the push callback
Daniel Stenberg [Mon, 1 Jun 2015 13:52:46 +0000 (15:52 +0200)]
http2: fixed the header accessor functions for the push callback

9 years agohttp2: setup the new pushed stream properly
Daniel Stenberg [Mon, 1 Jun 2015 12:20:57 +0000 (14:20 +0200)]
http2: setup the new pushed stream properly

9 years agohttp2: initial implementation of the push callback
Daniel Stenberg [Mon, 1 Jun 2015 09:45:52 +0000 (11:45 +0200)]
http2: initial implementation of the push callback

9 years agohttp2: initial HTTP/2 server push types/docs
Daniel Stenberg [Mon, 1 Jun 2015 08:22:41 +0000 (10:22 +0200)]
http2: initial HTTP/2 server push types/docs

9 years agotest1531: verify POSTFIELDSIZE set after add_handle
Daniel Stenberg [Wed, 24 Jun 2015 00:51:03 +0000 (17:51 -0700)]
test1531: verify POSTFIELDSIZE set after add_handle

Following the fix made in 903b6e05565bf.

9 years agopretransfer: init state.infilesize here, not in add_handle
Daniel Stenberg [Wed, 24 Jun 2015 00:48:37 +0000 (17:48 -0700)]
pretransfer: init state.infilesize here, not in add_handle

... to properly support that options are set to the handle after it is
added to the multi handle.

Bug: http://curl.haxx.se/mail/lib-2015-06/0122.html
Reported-by: Stefan Bühler
9 years agotool_help: fix --tlsv1 help text to use >= for TLSv1
Lior Kaplan [Sun, 21 Jun 2015 10:41:07 +0000 (13:41 +0300)]
tool_help: fix --tlsv1 help text to use >= for TLSv1

9 years agoINSTALL: Advise use of non-native SSL for Windows <= XP
Jay Satiro [Sat, 20 Jun 2015 22:45:25 +0000 (18:45 -0400)]
INSTALL: Advise use of non-native SSL for Windows <= XP

Advise that WinSSL in versions <= XP will not be able to connect to
servers that no longer support the legacy handshakes and algorithms used
by those versions, and to use an alternate backend like OpenSSL instead.

Bug: https://github.com/bagder/curl/issues/253
Reported-by: zenden2k <zenden2k@gmail.com>
9 years agocurl_easy_setopt.3: restore contents removed by mistake
Kamil Dudka [Fri, 19 Jun 2015 14:07:32 +0000 (10:07 -0400)]
curl_easy_setopt.3: restore contents removed by mistake

... in commit curl-7_43_0-18-g570076e

9 years agocurl_easy_setopt.3: mention CURLOPT_PIPEWAIT
Daniel Stenberg [Fri, 19 Jun 2015 13:47:06 +0000 (15:47 +0200)]
curl_easy_setopt.3: mention CURLOPT_PIPEWAIT

9 years agocookie: Fix bug in export if any-domain cookie is present
Jay Satiro [Thu, 18 Jun 2015 23:35:04 +0000 (19:35 -0400)]
cookie: Fix bug in export if any-domain cookie is present

In 3013bb6 I had changed cookie export to ignore any-domain cookies,
however the logic I used to do so was incorrect, and would lead to a
busy loop in the case of exporting a cookie list that contained
any-domain cookies. The result of that is worse though, because in that
case the other cookies would not be written resulting in an empty file
once the application is terminated to stop the busy loop.

9 years agoFTP: fixed compiling with --disable-proxy, broken in b88f980a
Dan Fandrich [Thu, 18 Jun 2015 21:20:10 +0000 (23:20 +0200)]
FTP: fixed compiling with --disable-proxy, broken in b88f980a

9 years agotool: always provide negotiate/kerberos options
Daniel Stenberg [Thu, 18 Jun 2015 14:57:38 +0000 (16:57 +0200)]
tool: always provide negotiate/kerberos options

libcurl can still be built with it, even if the tool is not. Maintain
independence!

9 years agoTODO: Support IDNA2008
Daniel Stenberg [Thu, 18 Jun 2015 14:32:47 +0000 (16:32 +0200)]
TODO: Support IDNA2008

9 years agoMakefile.m32: add support for CURL_LDFLAG_EXTRAS
Viktor Szakats [Thu, 18 Jun 2015 12:28:39 +0000 (14:28 +0200)]
Makefile.m32: add support for CURL_LDFLAG_EXTRAS

It is similar to existing CURL_CFLAG_EXTRAS, but for
extra linker option.

9 years agoRTSP: removed another piece of dead code
Daniel Stenberg [Thu, 18 Jun 2015 12:29:57 +0000 (14:29 +0200)]
RTSP: removed another piece of dead code

Coverity CID 1306668

9 years agoopenssl: fix use of uninitialized buffer
Daniel Stenberg [Thu, 18 Jun 2015 12:20:31 +0000 (14:20 +0200)]
openssl: fix use of uninitialized buffer

Make sure that the error buffer is always initialized and simplify the
use of it to make the logic easier.

Bug: https://github.com/bagder/curl/issues/318
Reported-by: sneis
9 years agoexamples: more descriptions
Daniel Stenberg [Thu, 18 Jun 2015 09:38:54 +0000 (11:38 +0200)]
examples: more descriptions

9 years agoexamples: add descriptions with <DESC>
Daniel Stenberg [Thu, 18 Jun 2015 08:17:02 +0000 (10:17 +0200)]
examples: add descriptions with <DESC>

Using this fixed format for example descriptions, we can generate a
better list on the web site.

9 years agolibcurl-errors.3: fix typo
Daniel Stenberg [Wed, 17 Jun 2015 22:17:47 +0000 (00:17 +0200)]
libcurl-errors.3: fix typo

9 years agocurl_easy_setopt.3: option order doesn't matter
Daniel Stenberg [Wed, 17 Jun 2015 22:09:46 +0000 (00:09 +0200)]
curl_easy_setopt.3: option order doesn't matter

9 years agoopenssl: fix build with BoringSSL
Daniel Stenberg [Wed, 17 Jun 2015 22:06:46 +0000 (00:06 +0200)]
openssl: fix build with BoringSSL

OPENSSL_load_builtin_modules does not exist in BoringSSL. Regression
from cae43a1

9 years agoopenssl: Fix build with openssl < ~ 0.9.8f
Paul Howarth [Wed, 17 Jun 2015 14:53:34 +0000 (16:53 +0200)]
openssl: Fix build with openssl < ~ 0.9.8f

The symbol SSL3_MT_NEWSESSION_TICKET appears to have been introduced at
around openssl 0.9.8f, and the use of it in lib/vtls/openssl.c breaks
builds with older openssls (certainly with 0.9.8b, which is the latest
older version I have to try with).

9 years agoFTP: do the HTTP CONNECT for data connection blocking
Daniel Stenberg [Tue, 16 Jun 2015 22:30:06 +0000 (00:30 +0200)]
FTP: do the HTTP CONNECT for data connection blocking

** WORK-AROUND **

The introduced non-blocking general behaviour for Curl_proxyCONNECT()
didn't work for the data connection establishment unless it was very
fast. The newly introduced function argument makes it operate in a more
blocking manner, more like it used to work in the past. This blocking
approach is only used when the FTP data connecting through HTTP proxy.

Blocking like this is bad. A better fix would make it work more
asynchronously.

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

9 years agobump: start the journey toward 7.44.0
Daniel Stenberg [Wed, 17 Jun 2015 11:59:33 +0000 (13:59 +0200)]
bump: start the journey toward 7.44.0

9 years agoCURLOPT_ERRORBUFFER.3: Fix example, escape backslashes
Jay Satiro [Wed, 17 Jun 2015 06:49:14 +0000 (02:49 -0400)]
CURLOPT_ERRORBUFFER.3: Fix example, escape backslashes

9 years agoCURLOPT_ERRORBUFFER.3: Improve example
Jay Satiro [Wed, 17 Jun 2015 06:25:51 +0000 (02:25 -0400)]
CURLOPT_ERRORBUFFER.3: Improve example

9 years agoRELEASE-NOTES: 7.43.0 release curl-7_43_0
Daniel Stenberg [Tue, 16 Jun 2015 07:36:46 +0000 (09:36 +0200)]
RELEASE-NOTES: 7.43.0 release

9 years agoTHANKS: updated with 7.43.0 names
Daniel Stenberg [Tue, 16 Jun 2015 07:51:31 +0000 (09:51 +0200)]
THANKS: updated with 7.43.0 names

9 years agohttp: do not leak basic auth credentials on re-used connections
Kamil Dudka [Thu, 28 May 2015 18:04:35 +0000 (20:04 +0200)]
http: do not leak basic auth credentials on re-used connections

CVE-2015-3236

This partially reverts commit curl-7_39_0-237-g87c4abb

Reported-by: Tomas Tomecek, Kamil Dudka
Bug: http://curl.haxx.se/docs/adv_20150617A.html

9 years agotest2040: verify basic auth on re-used connections
Kamil Dudka [Tue, 26 May 2015 16:59:39 +0000 (18:59 +0200)]
test2040: verify basic auth on re-used connections

9 years agoSMB: rangecheck values read off incoming packet
Daniel Stenberg [Fri, 22 May 2015 08:28:21 +0000 (10:28 +0200)]
SMB: rangecheck values read off incoming packet

CVE-2015-3237

Detected by Coverity. CID 1299430.

Bug: http://curl.haxx.se/docs/adv_20150617B.html

9 years agoschannel: schannel_recv overhaul
Jay Satiro [Wed, 17 Jun 2015 04:17:03 +0000 (00:17 -0400)]
schannel: schannel_recv overhaul

This commit is several drafts squashed together. The changes from each
draft are noted below. If any changes are similar and possibly
contradictory the change in the latest draft takes precedence.

Bug: https://github.com/bagder/curl/issues/244
Reported-by: Chris Araman
%%
%% Draft 1
%%
- return 0 if len == 0. that will have to be documented.
- continue on and process the caches regardless of raw recv
- if decrypted data will be returned then set the error code to CURLE_OK
and return its count
- if decrypted data will not be returned and the connection has closed
(eg nread == 0) then return 0 and CURLE_OK
- if decrypted data will not be returned and the connection *hasn't*
closed then set the error code to CURLE_AGAIN --only if an error code
isn't already set-- and return -1
- narrow the Win2k workaround to only Win2k

%%
%% Draft 2
%%
- Trying out a change in flow to handle corner cases.

%%
%% Draft 3
%%
- Back out the lazier decryption change made in draft2.

%%
%% Draft 4
%%
- Some formatting and branching changes
- Decrypt all encrypted cached data when len == 0
- Save connection closed state
- Change special Win2k check to use connection closed state

%%
%% Draft 5
%%
- Default to CURLE_AGAIN in cleanup if an error code wasn't set and the
connection isn't closed.

%%
%% Draft 6
%%
- Save the last error only if it is an unrecoverable error.

Prior to this I saved the last error state in all cases; unfortunately
the logic to cover that in all cases would lead to some muddle and I'm
concerned that could then lead to a bug in the future so I've replaced
it by only recording an unrecoverable error and that state will persist.

- Do not recurse on renegotiation.

Instead we'll continue on to process any trailing encrypted data
received during the renegotiation only.

- Move the err checks in cleanup after the check for decrypted data.

In either case decrypted data is always returned but I think it's easier
to understand when those err checks come after the decrypted data check.

%%
%% Draft 7
%%
- Regardless of len value go directly to cleanup if there is an
unrecoverable error or a close_notify was already received. Prior to
this change we only acknowledged those two states if len != 0.

- Fix a bug in connection closed behavior: Set the error state in the
cleanup, because we don't know for sure it's an error until that time.

- (Related to above) In the case the connection is closed go "greedy"
with the decryption to make sure all remaining encrypted data has been
decrypted even if it is not needed at that time by the caller. This is
necessary because we can only tell if the connection closed gracefully
(close_notify) once all encrypted data has been decrypted.

- Do not renegotiate when an unrecoverable error is pending.

%%
%% Draft 8
%%
- Don't show 'server closed the connection' info message twice.

- Show an info message if server closed abruptly (missing close_notify).

9 years agoFix typo in docs
Paul Oliver [Tue, 16 Jun 2015 10:11:36 +0000 (12:11 +0200)]
Fix typo in docs

s/curret/current/

9 years agodocs: update URLs
Viktor Szakats [Mon, 15 Jun 2015 22:47:26 +0000 (00:47 +0200)]
docs: update URLs

9 years agoRELEASE-NOTES: synced with f29f2cbd00dbe5f
Daniel Stenberg [Tue, 16 Jun 2015 07:07:37 +0000 (09:07 +0200)]
RELEASE-NOTES: synced with f29f2cbd00dbe5f

9 years agoREADME: use secure protocol for Git repository
Viktor Szakats [Mon, 15 Jun 2015 19:11:09 +0000 (21:11 +0200)]
README: use secure protocol for Git repository

9 years agoHTTP2.md: use SSL/TLS IETF URLs
Viktor Szakats [Mon, 15 Jun 2015 09:34:14 +0000 (11:34 +0200)]
HTTP2.md: use SSL/TLS IETF URLs

9 years agoLICENSE-MIXING: update URLs
Viktor Szakats [Mon, 15 Jun 2015 09:32:39 +0000 (11:32 +0200)]
LICENSE-MIXING: update URLs

* use SSL/TLS where available
* follow permanent redirects

9 years agoLICENSE-MIXING: refreshed
Daniel Stenberg [Mon, 15 Jun 2015 08:57:43 +0000 (10:57 +0200)]
LICENSE-MIXING: refreshed

9 years agocurl_easy_duphandle: see also *reset
Daniel Stenberg [Mon, 15 Jun 2015 08:37:38 +0000 (10:37 +0200)]
curl_easy_duphandle: see also *reset

9 years agortsp_do: fix DEAD CODE
Daniel Stenberg [Mon, 15 Jun 2015 07:05:07 +0000 (09:05 +0200)]
rtsp_do: fix DEAD CODE

"At condition p_request, the value of p_request cannot be NULL."

Coverity CID 1306668.

9 years agosecurity:choose_mech fix DEAD CODE warning
Daniel Stenberg [Mon, 15 Jun 2015 06:57:31 +0000 (08:57 +0200)]
security:choose_mech fix DEAD CODE warning

... by removing the "do {} while (0)" block.

Coverity CID 1306669

9 years agocurl.1: netrc is in man section 5
Daniel Stenberg [Mon, 15 Jun 2015 06:28:42 +0000 (08:28 +0200)]
curl.1: netrc is in man section 5

9 years agocurl.1: small format fix
Daniel Stenberg [Mon, 15 Jun 2015 06:26:37 +0000 (08:26 +0200)]
curl.1: small format fix

use \fI-style instead of .BR for references

9 years agourldata: store POST size in state.infilesize too
Daniel Stenberg [Sun, 7 Jun 2015 21:52:34 +0000 (23:52 +0200)]
urldata: store POST size in state.infilesize too

... to simplify checking when PUT _or_ POST have completed.

Reported-by: Frank Meier
Bug: http://curl.haxx.se/mail/lib-2015-06/0019.html

9 years agotest1530: added http to required features
Dan Fandrich [Sun, 14 Jun 2015 20:38:39 +0000 (22:38 +0200)]
test1530: added http to required features

9 years agobuild: Fix typo from OpenSSL 1.0.2 version detection fix
Drake Arconis [Sun, 14 Jun 2015 19:52:42 +0000 (15:52 -0400)]
build: Fix typo from OpenSSL 1.0.2 version detection fix

9 years agobuild: Properly detect OpenSSL 1.0.2 when using configure
Drake Arconis [Sun, 14 Jun 2015 17:51:06 +0000 (13:51 -0400)]
build: Properly detect OpenSSL 1.0.2 when using configure

9 years agocurl_multi_info_read.3: fix example formatting
Jay Satiro [Sun, 14 Jun 2015 03:25:07 +0000 (23:25 -0400)]
curl_multi_info_read.3: fix example formatting

9 years agoBINDINGS: there's a new R binding in town!
Daniel Stenberg [Sat, 13 Jun 2015 21:10:23 +0000 (23:10 +0200)]
BINDINGS: there's a new R binding in town!

9 years agoBINDINGS: added the Xojo binding
Daniel Stenberg [Thu, 11 Jun 2015 21:33:49 +0000 (23:33 +0200)]
BINDINGS: added the Xojo binding

9 years agoschannel: Add support for optional client certificates
Joel Depooter [Thu, 11 Jun 2015 19:52:25 +0000 (15:52 -0400)]
schannel: Add support for optional client certificates

Some servers will request a client certificate, but not require one.
This change allows libcurl to connect to such servers when using
schannel as its ssl/tls backend. When a server requests a client
certificate, libcurl will now continue the handshake without one,
rather than terminating the handshake. The server can then decide
if that is acceptable or not. Prior to this change, libcurl would
terminate the handshake, reporting a SEC_I_INCOMPLETE_CREDENTIALS
error.

9 years agocurl_easy_cleanup.3: provide more SEE ALSO
Daniel Stenberg [Thu, 11 Jun 2015 06:32:11 +0000 (08:32 +0200)]
curl_easy_cleanup.3: provide more SEE ALSO

9 years agodebug: remove http2 debug leftovers
Daniel Stenberg [Wed, 10 Jun 2015 21:16:17 +0000 (23:16 +0200)]
debug: remove http2 debug leftovers

9 years agoVERSIONS: now using markdown
Daniel Stenberg [Tue, 9 Jun 2015 22:21:06 +0000 (00:21 +0200)]
VERSIONS: now using markdown

9 years agoRELEASE-PROCEDURE: remove ascii logo at the top of file
Daniel Stenberg [Tue, 9 Jun 2015 22:16:48 +0000 (00:16 +0200)]
RELEASE-PROCEDURE: remove ascii logo at the top of file

9 years agoINTERNALS: absorbed docs/LIBCURL-STRUCTS
Daniel Stenberg [Tue, 9 Jun 2015 22:11:54 +0000 (00:11 +0200)]
INTERNALS: absorbed docs/LIBCURL-STRUCTS

9 years agoINTERNALS: cat lib/README* >> INTERNALS
Daniel Stenberg [Tue, 9 Jun 2015 21:57:22 +0000 (23:57 +0200)]
INTERNALS: cat lib/README* >> INTERNALS

and a conversion to markdown. Removed the lib/README.* files. The idea
being to move toward having INTERNALS as the one and only "book" of
internals documentation.

Added a TOC to top of the document.

9 years agoopenssl: LibreSSL and BoringSSL do not use TLS_client_method
Jay Satiro [Tue, 9 Jun 2015 03:42:11 +0000 (23:42 -0400)]
openssl: LibreSSL and BoringSSL do not use TLS_client_method

Although OpenSSL 1.1.0+ deprecated SSLv23_client_method in favor of
TLS_client_method LibreSSL and BoringSSL didn't and still use
SSLv23_client_method.

Bug: https://github.com/bagder/curl/commit/49a6642#commitcomment-11578009
Reported-by: asavah@users.noreply.github.com
9 years agoRELEASE-NOTES: synced with 20ac3458068
Daniel Stenberg [Mon, 8 Jun 2015 22:33:23 +0000 (00:33 +0200)]
RELEASE-NOTES: synced with 20ac3458068

9 years agoCURLOPT_OPENSOCKETFUNCTION: return error at once
Daniel Stenberg [Mon, 8 Jun 2015 22:22:02 +0000 (00:22 +0200)]
CURLOPT_OPENSOCKETFUNCTION: return error at once

When CURL_SOCKET_BAD is returned in the callback, it should be treated
as an error (CURLE_COULDNT_CONNECT) if no other socket is subsequently
created when trying to connect to a server.

Bug: http://curl.haxx.se/mail/lib-2015-06/0047.html

9 years agofopen.c: fix a few compiler warnings
Daniel Stenberg [Mon, 8 Jun 2015 11:47:33 +0000 (13:47 +0200)]
fopen.c: fix a few compiler warnings

9 years agodocs: Spelling fixes
Ville Skyttä [Mon, 8 Jun 2015 11:22:54 +0000 (14:22 +0300)]
docs: Spelling fixes

9 years agodocs: man page indentation and syntax fixes
Ville Skyttä [Mon, 8 Jun 2015 11:14:18 +0000 (14:14 +0300)]
docs: man page indentation and syntax fixes

9 years agohelp: Add --proxy-service-name and --service-name to the --help output
Linus Nielsen [Mon, 8 Jun 2015 08:00:11 +0000 (10:00 +0200)]
help: Add --proxy-service-name and --service-name to the --help output

9 years agoopenssl: Fix verification of server-sent legacy intermediates
Jay Satiro [Sat, 30 May 2015 05:29:48 +0000 (01:29 -0400)]
openssl: Fix verification of server-sent legacy intermediates

- Try building a chain using issuers in the trusted store first to avoid
problems with server-sent legacy intermediates.

Prior to this change server-sent legacy intermediates with missing
legacy issuers would cause verification to fail even if the client's CA
bundle contained a valid replacement for the intermediate and an
alternate chain could be constructed that would verify successfully.

https://rt.openssl.org/Ticket/Display.html?id=3621&user=guest&pass=guest

9 years agoBINDINGS: update several URLs
Daniel Stenberg [Fri, 5 Jun 2015 07:15:40 +0000 (09:15 +0200)]
BINDINGS: update several URLs

Stop linking to the curl.haxx.se anchor pages, they are usually only
themselves pointers to the real page so better point there directly
instead.

9 years agoBINDINGS: the curl-rust binding
Daniel Stenberg [Fri, 5 Jun 2015 06:55:19 +0000 (08:55 +0200)]
BINDINGS: the curl-rust binding

9 years agocurl.h: add CURL_HTTP_VERSION_2
Daniel Stenberg [Fri, 5 Jun 2015 06:26:47 +0000 (08:26 +0200)]
curl.h: add CURL_HTTP_VERSION_2

The protocol is named "HTTP/2" after all. It is an alias for the
existing CURL_HTTP_VERSION_2_0 enum.

9 years agoopenssl: removed error string #ifdef
Daniel Stenberg [Thu, 4 Jun 2015 22:12:56 +0000 (00:12 +0200)]
openssl: removed error string #ifdef

ERR_error_string_n() was introduced in 0.9.6, no need to #ifdef anymore

9 years agoopenssl: removed USERDATA_IN_PWD_CALLBACK kludge
Daniel Stenberg [Thu, 4 Jun 2015 22:11:32 +0000 (00:11 +0200)]
openssl: removed USERDATA_IN_PWD_CALLBACK kludge

Code for OpenSSL 0.9.4 serves no purpose anymore!

9 years agoopenssl: remove SSL_get_session()-using code
Daniel Stenberg [Thu, 4 Jun 2015 22:09:25 +0000 (00:09 +0200)]
openssl: remove SSL_get_session()-using code

It was present for OpenSSL 0.9.5 code but we only support 0.9.7 or
later.

9 years agoopenssl: remove dummy callback use from SSL_CTX_set_verify()
Daniel Stenberg [Thu, 4 Jun 2015 22:02:17 +0000 (00:02 +0200)]
openssl: remove dummy callback use from SSL_CTX_set_verify()

The existing callback served no purpose.

9 years agoLIBCURL-STRUCTS: clarify for multiplexing
Daniel Stenberg [Thu, 4 Jun 2015 20:43:36 +0000 (22:43 +0200)]
LIBCURL-STRUCTS: clarify for multiplexing

9 years agocookie: Stop exporting any-domain cookies
Jay Satiro [Thu, 4 Jun 2015 01:48:47 +0000 (21:48 -0400)]
cookie: Stop exporting any-domain cookies

Prior to this change any-domain cookies (cookies without a domain that
are sent to any domain) were exported with domain name "unknown".

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

9 years agoRELEASE-PROCEDURE: refreshed 'coming dates'
Daniel Stenberg [Wed, 3 Jun 2015 11:53:26 +0000 (13:53 +0200)]
RELEASE-PROCEDURE: refreshed 'coming dates'

9 years agocurl_setup: Change fopen text macros to use 't' for MSDOS
Jay Satiro [Tue, 2 Jun 2015 18:04:00 +0000 (14:04 -0400)]
curl_setup: Change fopen text macros to use 't' for MSDOS

Bug: https://github.com/bagder/curl/pull/258#issuecomment-107915198
Reported-by: Gisle Vanem
9 years agocurl_multi_timeout.3: added example
Daniel Stenberg [Tue, 2 Jun 2015 10:18:10 +0000 (12:18 +0200)]
curl_multi_timeout.3: added example

9 years agocurl_multi_perform.3: added example
Daniel Stenberg [Tue, 2 Jun 2015 10:13:23 +0000 (12:13 +0200)]
curl_multi_perform.3: added example

9 years agocurl_multi_info_read.3: added example
Daniel Stenberg [Tue, 2 Jun 2015 10:00:37 +0000 (12:00 +0200)]
curl_multi_info_read.3: added example

9 years agochecksrc: detect fopen() for text without the FOPEN_* macros
Daniel Stenberg [Tue, 2 Jun 2015 06:28:10 +0000 (08:28 +0200)]
checksrc: detect fopen() for text without the FOPEN_* macros

Follow-up to e8423f9ce150 with discussionis in
https://github.com/bagder/curl/pull/258

This check scans for fopen() with a mode string without 'b' present, as
it may indicate that an FOPEN_* define should rather be used.

9 years agocurl_getdate.3: update RFC reference
Daniel Stenberg [Mon, 1 Jun 2015 08:18:11 +0000 (10:18 +0200)]
curl_getdate.3: update RFC reference

9 years agocurl_setup: Add macros for FOPEN_READTEXT, FOPEN_WRITETEXT
Jay Satiro [Mon, 1 Jun 2015 07:20:18 +0000 (03:20 -0400)]
curl_setup: Add macros for FOPEN_READTEXT, FOPEN_WRITETEXT

- Change fopen calls to use FOPEN_READTEXT instead of "r" or "rt"
- Change fopen calls to use FOPEN_WRITETEXT instead of "w" or "wt"

This change is to explicitly specify when we need to read/write text.
Unfortunately 't' is not part of POSIX fopen so we can't specify it
directly. Instead we now have FOPEN_READTEXT, FOPEN_WRITETEXT.

Prior to this change we had an issue on Windows if an application that
uses libcurl overrides the default file mode to binary. The default file
mode in Windows is normally text mode (translation mode) and that's what
libcurl expects.

Bug: https://github.com/bagder/curl/pull/258#issuecomment-107093055
Reported-by: Orgad Shaneh
9 years agohttp2-upload.c: use PIPEWAIT for playing HTTP/2 better
Daniel Stenberg [Mon, 1 Jun 2015 06:46:18 +0000 (08:46 +0200)]
http2-upload.c: use PIPEWAIT for playing HTTP/2 better

9 years agohttp2-download: check for CURLPIPE_MULTIPLEX properly
Daniel Stenberg [Mon, 1 Jun 2015 06:45:30 +0000 (08:45 +0200)]
http2-download: check for CURLPIPE_MULTIPLEX properly

Bug: http://curl.haxx.se/mail/lib-2015-06/0001.html
Reported-by: Rafayel Mkrtchyan
9 years agoHTTP-NTLM: fail auth on connection close instead of looping
Isaac Boukris [Sun, 31 May 2015 21:21:15 +0000 (23:21 +0200)]
HTTP-NTLM: fail auth on connection close instead of looping

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

9 years ago5.6 Refuse "downgrade" redirects
Daniel Stenberg [Sat, 30 May 2015 22:39:19 +0000 (00:39 +0200)]
5.6 Refuse "downgrade" redirects