]> granicus.if.org Git - curl/log
curl
9 years agochecksrc.bat: Check lib\vtls source
Jay Satiro [Fri, 3 Apr 2015 05:11:34 +0000 (01:11 -0400)]
checksrc.bat: Check lib\vtls source

9 years agocyassl: Set minimum protocol version before CTX callback
Jay Satiro [Fri, 3 Apr 2015 06:11:35 +0000 (02:11 -0400)]
cyassl: Set minimum protocol version before CTX callback

This change is to allow the user's CTX callback to change the minimum
protocol version in the CTX without us later overriding it, as we did
prior to this change.

9 years agobuild-openssl.bat: Fix mixed line endings
Jay Satiro [Thu, 2 Apr 2015 15:21:09 +0000 (17:21 +0200)]
build-openssl.bat: Fix mixed line endings

Use LF not CRLF, throughout.  msysgit will only convert a file to CRLF
on checkout if it's not mixed.

9 years agocyassl: Fix certificate load check
Jay Satiro [Thu, 2 Apr 2015 05:51:07 +0000 (01:51 -0400)]
cyassl: Fix certificate load check

SSL_CTX_load_verify_locations can return negative values on fail,
therefore to check for failure we check if load is != 1 (success)
instead of if load is == 0 (failure), the latter being incorrect given
that behavior.

9 years agohttp2: Fix missing nghttp2_session_send call in Curl_http2_switched
Tatsuhiro Tsujikawa [Wed, 1 Apr 2015 15:28:58 +0000 (00:28 +0900)]
http2: Fix missing nghttp2_session_send call in Curl_http2_switched

Previously in Curl_http2_switched, we called nghttp2_session_mem_recv to
parse incoming data which were already received while curl was handling
upgrade.  But we didn't call nghttp2_session_send, and it led to make
curl not send any response to the received frames.  Most likely, we
received SETTINGS from server at this point, so we missed opportunity to
send SETTINGS + ACK.  This commit adds missing nghttp2_session_send call
in Curl_http2_switched to fix this issue.

Bug: https://github.com/bagder/curl/issues/192
Reported-by: Stefan Eissing
9 years agocookie: handle spaces after the name in Set-Cookie
Daniel Stenberg [Wed, 1 Apr 2015 21:25:29 +0000 (23:25 +0200)]
cookie: handle spaces after the name in Set-Cookie

"name =value" is fine and the space should just be skipped.

Updated test 31 to also test for this.

Bug: https://github.com/bagder/curl/issues/195
Reported-by: cromestant
Help-by: Frank Gevaerts
9 years agocyassl: Fix library initialization return value
Jay Satiro [Mon, 30 Mar 2015 23:09:26 +0000 (19:09 -0400)]
cyassl: Fix library initialization return value

(Curl_cyassl_init)
- Return 1 on success, 0 in failure.

Prior to this change the fail path returned an incorrect value and the
evaluation to determine whether CyaSSL_Init had succeeded was incorrect.
Ironically that combined with the way curl_global_init tests SSL library
initialization (!Curl_ssl_init()) meant that CyaSSL having been
successfully initialized would be seen as that even though the code path
and return value in Curl_cyassl_init were wrong.

9 years agoCURLOPT_HTTP200ALIASES.3: Mainly SHOUTcast servers use "ICY 200"
Thomas Ruecker [Tue, 31 Mar 2015 10:07:53 +0000 (13:07 +0300)]
CURLOPT_HTTP200ALIASES.3: Mainly SHOUTcast servers use "ICY 200"

Icecast versions 1.3.0 through 1.3.12 would reply with "ICY 200"
under certain conditions:

    client_wants_icy_headers (connection_t *con)
    {
            const char *val;

            if (!con)
                    return 1;

            val = get_user_agent (con);
            if (!val || !val[0] || strcmp (val, "(null)") == 0)
                    return 1;

            if (con->food.client->use_icy)
                    return 1;
            if (strncasecmp (val, "winamp", 6) == 0)
                    return 1;
            if (strncasecmp (val, "Shoutcast", 9) == 0)
                    return 1;

            return 0;
    }

So mainly if there is no 'user agent' or it is '(null)' or contains
'winamp' or 'Shoutcast'.

No mainstream distribution carries Icecast 1.3.x anymore, after all
it was released in 2002 and superseded by Icecast 2.x.

9 years agoaxtls: add timeout within Curl_axtls_connect
Dan Fandrich [Tue, 31 Mar 2015 00:04:22 +0000 (02:04 +0200)]
axtls: add timeout within Curl_axtls_connect

This allows test 405 to pass on axTLS.

9 years agochecksrc: Windows-specific input fixes
Jay Satiro [Mon, 30 Mar 2015 20:22:58 +0000 (16:22 -0400)]
checksrc: Windows-specific input fixes

lib/config-win32ce.h
- Fix whitespace for checksrc compliance.

lib/checksrc.pl
- Remove trailing carriage returns from input.

projects/checksrc.bat
- Ignore tool_hugehelp.c.

9 years agoconfigure: Use KRB5CONFIG for krb5-config
Dagobert Michelsen [Mon, 30 Mar 2015 12:18:21 +0000 (14:18 +0200)]
configure: Use KRB5CONFIG for krb5-config

Allows the user to easier override its path.

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

9 years agomulti: remove_handle: move pending connections
Daniel Stenberg [Sun, 29 Mar 2015 21:48:32 +0000 (23:48 +0200)]
multi: remove_handle: move pending connections

If the handle removed from the multi handle happens to be the one
"owning" the pipeline other transfers will be waiting indefinitely. Now
we move such handles back to connect to have them race (again) for
getting the connection and thus avoid hanging.

Bug: http://curl.haxx.se/bug/view.cgi?id=1465
Reported-by: Jiri Dvorak
9 years agoKNOWN_BUGS: 89 is bug #1411
Daniel Stenberg [Sun, 29 Mar 2015 21:20:15 +0000 (23:20 +0200)]
KNOWN_BUGS: 89 is bug #1411

Disabling pipelining on multi handle with in-progress pipelined requests
leads to heap corruption and crash

9 years agocyassl: CTX callback cosmetic changes and doc fix
Jay Satiro [Sat, 28 Mar 2015 04:16:08 +0000 (00:16 -0400)]
cyassl: CTX callback cosmetic changes and doc fix

- More descriptive fail message for NO_FILESYSTEM builds.
- Cosmetic changes.
- Change more of CURLOPT_SSL_CTX_* doc to not be OpenSSL specific.

9 years agoRELEASE-NOTES: synced with d2feb71752f
Daniel Stenberg [Fri, 27 Mar 2015 22:46:03 +0000 (23:46 +0100)]
RELEASE-NOTES: synced with d2feb71752f

9 years agotool_operate: only set SSL options if SSL is enabled
Dan Fandrich [Sat, 28 Mar 2015 10:51:05 +0000 (11:51 +0100)]
tool_operate: only set SSL options if SSL is enabled

9 years agoruntests.pl: detect WolfSSL as yassl
Dan Fandrich [Fri, 27 Mar 2015 23:26:45 +0000 (00:26 +0100)]
runtests.pl: detect WolfSSL as yassl

9 years agocyassl: add SSL context callback support for CyaSSL
Kyle L. Huff [Fri, 27 Mar 2015 11:22:32 +0000 (07:22 -0400)]
cyassl: add SSL context callback support for CyaSSL

Adds support for CURLOPT_SSL_CTX_FUNCTION when using CyaSSL, and better
handles CyaSSL instances using NO_FILESYSTEM.

9 years agocyassl: remove undefined reference to CyaSSL_no_filesystem_verify
Kyle L. Huff [Fri, 27 Mar 2015 00:43:22 +0000 (20:43 -0400)]
cyassl: remove undefined reference to CyaSSL_no_filesystem_verify

CyaSSL_no_filesystem_verify is not (or no longer) defined by cURL or
CyaSSL. This reference causes build errors when compiling with
NO_FILESYSTEM.

9 years agobuild: Fix libcurl.sln erroneous mixed configurations
Jay Satiro [Sat, 21 Mar 2015 22:55:29 +0000 (18:55 -0400)]
build: Fix libcurl.sln erroneous mixed configurations

Prior to this change some Release configurations had an active
configuration assignment to their Debug counterpart.

9 years agovtls: Don't accept unknown CURLOPT_SSLVERSION values
Jay Satiro [Fri, 27 Mar 2015 06:20:43 +0000 (02:20 -0400)]
vtls: Don't accept unknown CURLOPT_SSLVERSION values

9 years agourl: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined
Jay Satiro [Thu, 26 Mar 2015 06:31:35 +0000 (02:31 -0400)]
url: Don't accept CURLOPT_SSLVERSION unless USE_SSL is defined

9 years agobuild: link curl to openssl libraries when openssl support is enabled
Paul Howarth [Fri, 9 Jan 2015 09:49:20 +0000 (09:49 +0000)]
build: link curl to openssl libraries when openssl support is enabled

This fixes a build failure where openssl and libmetalink are used
together and the system linker does not do implicit linking (e.g.
Fedora 13 and later releases). The MD5 functions required for
metalink support must be pulled in from the openssl crypto library.

This is similar to commit c6e7cbb94e669b85d3eb8e015ec51d0072112133,
which fixes the same sort of problem for NSS builds.

9 years agomulti: on a request completion, check all CONNECT_PEND transfers
Daniel Stenberg [Sat, 21 Mar 2015 21:42:43 +0000 (22:42 +0100)]
multi: on a request completion, check all CONNECT_PEND transfers

... even if they don't have an associated connection anymore. It could
leave the waiting transfers pending with no active one on the
connection.

Bug: http://curl.haxx.se/bug/view.cgi?id=1465
Reported-by: Jiri Dvorak
9 years agoglobbing: fix url number calculation when using range with step
Emil Lerner [Wed, 25 Mar 2015 11:23:42 +0000 (14:23 +0300)]
globbing: fix url number calculation when using range with step

In function glob_range, the number of urls was multiplied by (max - min
+ 1), regardless of step. The correct formula is (max - min) / step + 1

9 years agoREADME.http2: refreshed and added TODO items
Daniel Stenberg [Wed, 25 Mar 2015 11:13:16 +0000 (12:13 +0100)]
README.http2: refreshed and added TODO items

9 years agoglobbing: fix step parsing for character globbing ranges
Emil Lerner [Wed, 25 Mar 2015 04:43:04 +0000 (07:43 +0300)]
globbing: fix step parsing for character globbing ranges

The glob_range function used wrong offset (3 instead of 4) for parsing
integer step inside character range specification, which led to 'bad
range' error when using character ranges with explicitly specified step
(such as '[a-z:2]')

9 years agopolarssl: called mbedTLS in 1.3.10 and later
Daniel Stenberg [Wed, 25 Mar 2015 08:19:57 +0000 (09:19 +0100)]
polarssl: called mbedTLS in 1.3.10 and later

9 years agopolarssl: remove dead code
Daniel Stenberg [Wed, 25 Mar 2015 08:01:11 +0000 (09:01 +0100)]
polarssl: remove dead code

and simplify code by changing if-elses to a switch()

CID 1291706: Logically dead code. Execution cannot reach this statement

9 years agopolarssl: remove superfluous for(;;) loop
Daniel Stenberg [Wed, 25 Mar 2015 07:49:34 +0000 (08:49 +0100)]
polarssl: remove superfluous for(;;) loop

"unreachable: Since the loop increment is unreachable, the loop body
will never execute more than once."

Coverity CID 1291707

9 years agoCurl_ssl_md5sum: return CURLcode
Daniel Stenberg [Wed, 25 Mar 2015 07:32:12 +0000 (08:32 +0100)]
Curl_ssl_md5sum: return CURLcode

... since the funciton can fail on OOM. Check this return code.

Coverity CID 1291705.

9 years agocyassl: default to highest possible TLS version
Jay Satiro [Wed, 25 Mar 2015 06:40:00 +0000 (02:40 -0400)]
cyassl: default to highest possible TLS version

(cyassl_connect_step1)
- Use TLS 1.0-1.2 by default when available.

CyaSSL/wolfSSL >= v3.3.0 supports setting a minimum protocol downgrade
version.

cyassl/cyassl@322f79f

9 years agocyassl: Check for invalid length parameter in Curl_cyassl_random
Jay Satiro [Wed, 25 Mar 2015 06:37:20 +0000 (02:37 -0400)]
cyassl: Check for invalid length parameter in Curl_cyassl_random

9 years agocyassl: If wolfSSL then identify as such in version string
Jay Satiro [Wed, 25 Mar 2015 06:33:44 +0000 (02:33 -0400)]
cyassl: If wolfSSL then identify as such in version string

9 years agosymbols-in-versions: added CURLOPT_PATH_AS_IS
Dan Fandrich [Tue, 24 Mar 2015 22:45:22 +0000 (23:45 +0100)]
symbols-in-versions: added CURLOPT_PATH_AS_IS

9 years agotestcurl.pl: add the --notes option to supply more info about a build
Dan Fandrich [Tue, 24 Mar 2015 22:43:32 +0000 (23:43 +0100)]
testcurl.pl: add the --notes option to supply more info about a build

Support for notes has been in place for a while, but it required
being added to the setup file manually.

9 years agocurl_memory: make curl_memory.h the second-last header file loaded
Dan Fandrich [Tue, 24 Mar 2015 22:12:03 +0000 (23:12 +0100)]
curl_memory: make curl_memory.h the second-last header file loaded

This header file must be included after all header files except
memdebug.h, as it does similar memory function redefinitions and can be
similarly affected by conflicting definitions in system or dependent
library headers.

9 years agoopenssl: do the OCSP work-around for libressl too
Daniel Stenberg [Tue, 24 Mar 2015 22:39:52 +0000 (23:39 +0100)]
openssl: do the OCSP work-around for libressl too

I tested with libressl git master now (v2.1.4-27-g34bf96c) and it seems to
still require the work-around for stapling to work.

9 years agoopenssl: verifystatus: only use the OCSP work-around <= 1.0.2a
Daniel Stenberg [Tue, 24 Mar 2015 22:05:26 +0000 (23:05 +0100)]
openssl: verifystatus: only use the OCSP work-around <= 1.0.2a

URL: http://curl.haxx.se/mail/lib-2015-03/0205.html
Reported-by: Alessandro Ghedini
9 years agoopenssl: adapt to ASN1/X509 things gone opaque in 1.1
Daniel Stenberg [Tue, 24 Mar 2015 21:59:33 +0000 (22:59 +0100)]
openssl: adapt to ASN1/X509 things gone opaque in 1.1

9 years agocurl_easy_setopt.3: Fix misspelling in CURLOPT_PATH_AS_IS description
Jay Satiro [Tue, 24 Mar 2015 19:02:22 +0000 (15:02 -0400)]
curl_easy_setopt.3: Fix misspelling in CURLOPT_PATH_AS_IS description

9 years agoCURLOPT_HTTPHEADER.3: fix typo in recent commit
Viktor Szakáts [Tue, 24 Mar 2015 16:59:42 +0000 (17:59 +0100)]
CURLOPT_HTTPHEADER.3: fix typo in recent commit

9 years agoCURLOPT_PATH_AS_IS.3: add type 'long' to prototype
Viktor Szakáts [Tue, 24 Mar 2015 16:52:22 +0000 (17:52 +0100)]
CURLOPT_PATH_AS_IS.3: add type 'long' to prototype

9 years agovtls: fix compile with --disable-crypto-auth but with SSL
Dan Fandrich [Tue, 24 Mar 2015 20:41:22 +0000 (21:41 +0100)]
vtls: fix compile with --disable-crypto-auth but with SSL

This is a strange combination of options, but is allowed.

9 years agoos400: define new options in ILE/RPG binding.
Patrick Monnerat [Tue, 24 Mar 2015 11:18:31 +0000 (12:18 +0100)]
os400: define new options in ILE/RPG binding.

9 years agoRELEASE-NOTES: synced with f6878609361
Daniel Stenberg [Tue, 24 Mar 2015 10:14:35 +0000 (11:14 +0100)]
RELEASE-NOTES: synced with f6878609361

9 years agocurl_easy_setopt.3: Add CURLOPT_PATH_AS_IS
Daniel Stenberg [Tue, 24 Mar 2015 10:06:38 +0000 (11:06 +0100)]
curl_easy_setopt.3: Add CURLOPT_PATH_AS_IS

9 years agoCURLOPT_PATH_AS_IS: added
Daniel Stenberg [Mon, 23 Mar 2015 09:51:49 +0000 (10:51 +0100)]
CURLOPT_PATH_AS_IS: added

--path-as-is is the command line option

Added docs in curl.1 and CURLOPT_PATH_AS_IS.3

Added test in test 1241

9 years agocurl_easy_recv/send: make them work with the multi interface
Yamada Yasuharu [Mon, 23 Mar 2015 21:46:58 +0000 (22:46 +0100)]
curl_easy_recv/send: make them work with the multi interface

By making sure Curl_getconnectinfo() uses the correct connection cache
to find the last connection.

9 years agohttp2: move the init too for when its actually needed
Daniel Stenberg [Mon, 23 Mar 2015 09:25:18 +0000 (10:25 +0100)]
http2: move the init too for when its actually needed

... it would otherwise lead to memory leakage if we never actually do
the switch.

9 years agodict: rename byte to avoid compiler shadowed declaration warning
Dan Fandrich [Mon, 23 Mar 2015 09:16:10 +0000 (10:16 +0100)]
dict: rename byte to avoid compiler shadowed declaration warning

This conflicted with a WolfSSL typedef.

9 years agocyassl: include version.h to ensure the version macros are defined
Dan Fandrich [Mon, 23 Mar 2015 09:10:03 +0000 (10:10 +0100)]
cyassl: include version.h to ensure the version macros are defined

9 years agotest1513: eliminated race condition in test run
Dan Fandrich [Sat, 21 Mar 2015 22:57:32 +0000 (23:57 +0100)]
test1513: eliminated race condition in test run

It seems that some systems (e.g. fairly consistently in some recent
Solaris autobuilds) would manage to get to the connect phase before the
progress callback was called, resulting in a CURLE_COULDNT_CONNECT
error. Reworked the test to point at a test server that never returns a
full result so the progress callback always gets a chance to be called
before the transfer can complete in some other way.

9 years agodarwinsssl: add support for TLS False Start
Nick Zitzmann [Sat, 21 Mar 2015 17:22:56 +0000 (12:22 -0500)]
darwinsssl: add support for TLS False Start

TLS False Start support requires iOS 7.0 or later, or OS X 10.9 or later.

9 years agogtls: add check of return code
Daniel Stenberg [Sat, 21 Mar 2015 15:50:51 +0000 (16:50 +0100)]
gtls: add check of return code

Coverity CID 1291167 pointed out that 'rc' was received but never used when
gnutls_credentials_set() was used. Added return code check now.

9 years agogtls: dereferencing NULL pointer
Daniel Stenberg [Sat, 21 Mar 2015 15:47:22 +0000 (16:47 +0100)]
gtls: dereferencing NULL pointer

Coverity CID 1291165 pointed out 'chainp' could be dereferenced when
NULL if gnutls_certificate_get_peers() had previously failed.

9 years agogtls: avoid uninitialized variable.
Daniel Stenberg [Sat, 21 Mar 2015 15:44:17 +0000 (16:44 +0100)]
gtls: avoid uninitialized variable.

Coverity CID 1291166 pointed out that we could read this variable
uninitialized.

9 years agotests/certs: rebuild certificates with modified key usage bits
Dan Fandrich [Sat, 21 Mar 2015 15:20:34 +0000 (16:20 +0100)]
tests/certs: rebuild certificates with modified key usage bits

The certificates were missing the digitalSignature and keyAgreement
usage types, of which at least digitalSignature was checked by CyaSSL.
This caused the test server in test 310 (among others) to fail the
startup verification and therefore run (see
http://curl.haxx.se/mail/lib-2014-07/0303.html).

9 years agotests/certs: added make target to rebuild certificates
Dan Fandrich [Sat, 21 Mar 2015 13:23:00 +0000 (14:23 +0100)]
tests/certs: added make target to rebuild certificates

The certificate generation scripts were also updated to better match the
format of the certificates currently checked in.

9 years agox509asn1: add /* fallthrough */ in switch() case
Daniel Stenberg [Sat, 21 Mar 2015 15:29:58 +0000 (16:29 +0100)]
x509asn1: add /* fallthrough */ in switch() case

9 years agox509asn1: minor edit to unconfuse Coverity
Daniel Stenberg [Sat, 21 Mar 2015 15:21:01 +0000 (16:21 +0100)]
x509asn1: minor edit to unconfuse Coverity

CID 1202732 warns on the previous use, although I cannot fine any
problems with it. I'm doing this change only to make the code use a more
familiar approach to accomplish the same thing.

9 years agotestcurl: Allow '=' in values given on command line
Dagobert Michelsen [Sat, 21 Mar 2015 14:38:56 +0000 (15:38 +0100)]
testcurl: Allow '=' in values given on command line

9 years agonss: error: unused variable 'connssl'
Daniel Stenberg [Sat, 21 Mar 2015 14:47:03 +0000 (15:47 +0100)]
nss: error: unused variable 'connssl'

9 years agotest938: added missing closing tags
Dan Fandrich [Sat, 21 Mar 2015 00:27:44 +0000 (01:27 +0100)]
test938: added missing closing tags

9 years agocyassl: use new library version macro when available
Dan Fandrich [Fri, 20 Mar 2015 22:49:53 +0000 (23:49 +0100)]
cyassl: use new library version macro when available

9 years agocurl: add --false-start option
Alessandro Ghedini [Sat, 14 Feb 2015 17:17:04 +0000 (18:17 +0100)]
curl: add --false-start option

9 years agonss: add support for TLS False Start
Alessandro Ghedini [Sat, 14 Feb 2015 15:59:01 +0000 (16:59 +0100)]
nss: add support for TLS False Start

9 years agourl: add CURLOPT_SSL_FALSESTART option
Alessandro Ghedini [Sat, 14 Feb 2015 15:57:07 +0000 (16:57 +0100)]
url: add CURLOPT_SSL_FALSESTART option

This option can be used to enable/disable TLS False Start defined in the RFC
draft-bmoeller-tls-falsestart.

9 years agogtls: implement CURLOPT_CERTINFO
Alessandro Ghedini [Fri, 20 Mar 2015 18:03:53 +0000 (19:03 +0100)]
gtls: implement CURLOPT_CERTINFO

9 years agoopenssl: try to avoid accessing OCSP structs when possible
Alessandro Ghedini [Fri, 20 Mar 2015 12:24:08 +0000 (13:24 +0100)]
openssl: try to avoid accessing OCSP structs when possible

9 years agoCURLOPT_URL.3: spelling!
Daniel Stenberg [Fri, 20 Mar 2015 12:49:14 +0000 (13:49 +0100)]
CURLOPT_URL.3: spelling!

Reported-by: Frank Gevaerts
9 years agoCURLOPT_URL.3: Added "SECURITY CONCERNS"
Daniel Stenberg [Fri, 20 Mar 2015 11:14:40 +0000 (12:14 +0100)]
CURLOPT_URL.3: Added "SECURITY CONCERNS"

9 years agoCURLOPT_HTTPHEADER.3: add a "SECURITY CONCERNS" section
Daniel Stenberg [Fri, 20 Mar 2015 11:03:09 +0000 (12:03 +0100)]
CURLOPT_HTTPHEADER.3: add a "SECURITY CONCERNS" section

9 years agocyassl: detect the library as renamed wolfssl
Dan Fandrich [Thu, 19 Mar 2015 22:41:10 +0000 (23:41 +0100)]
cyassl: detect the library as renamed wolfssl

This change was made in CyaSSL/WolfSSL ver. 3.4.0

9 years agoHTTP: don't switch to HTTP/2 from 1.1 until we get the 101
Daniel Stenberg [Thu, 19 Mar 2015 12:44:18 +0000 (13:44 +0100)]
HTTP: don't switch to HTTP/2 from 1.1 until we get the 101

We prematurely changed protocol handler to HTTP/2 which made things very
slow (and wrong).

Reported-by: Stefan Eissing
Bug: https://github.com/bagder/curl/issues/169

9 years agoaxtls: version 1.5.2 now requires that config.h be manually included
Dan Fandrich [Thu, 19 Mar 2015 09:11:17 +0000 (10:11 +0100)]
axtls: version 1.5.2 now requires that config.h be manually included

9 years agometalink: fix resource leak in OOM
Daniel Stenberg [Thu, 19 Mar 2015 08:07:11 +0000 (09:07 +0100)]
metalink: fix resource leak in OOM

Coverity CID 1288826

9 years agodocs/libcurl: clean up libcurl-symbols.3
Dan Fandrich [Wed, 18 Mar 2015 22:54:36 +0000 (23:54 +0100)]
docs/libcurl: clean up libcurl-symbols.3

9 years agodocs/libcurl: check that all options with man pages are referenced
Dan Fandrich [Wed, 18 Mar 2015 22:21:46 +0000 (23:21 +0100)]
docs/libcurl: check that all options with man pages are referenced

If a man page exists in the opts/ directory, it must also be referenced
either in curl_easy_setopt.3 or curl_multi_setopt.3

9 years agocurl_easy_setopt.3: added a few missing options
Dan Fandrich [Wed, 18 Mar 2015 22:20:49 +0000 (23:20 +0100)]
curl_easy_setopt.3: added a few missing options

9 years agonss: explicitly tell NSS to disable NPN/ALPN
Kamil Dudka [Wed, 18 Mar 2015 18:38:32 +0000 (19:38 +0100)]
nss: explicitly tell NSS to disable NPN/ALPN

... if disabled at libcurl level.  Otherwise, we would allow to
negotiate NPN despite curl was invoked with the --no-npn option.

9 years agomkhelp: Remove trailing carriage return from every line of input
Jay Satiro [Wed, 18 Mar 2015 05:44:48 +0000 (01:44 -0400)]
mkhelp: Remove trailing carriage return from every line of input

- Get rid of this flood of warnings in Windows mingw build:
warning: missing terminating " character

The warning is due to the carriage return. When msysgit checks out files
from the repo by default it converts the line endings to CRLF. Prior to
this change when mkhelp.pl processed the MANUAL and curl.1 in CRLF
format the trailing carriage returns caused unnecessary CR in the
output.

9 years agoRELEASE-NOTES: synced with e539f01567
Daniel Stenberg [Wed, 18 Mar 2015 07:37:54 +0000 (08:37 +0100)]
RELEASE-NOTES: synced with e539f01567

9 years agodocs/libcurl: make portability fix
Christian Weisgerber [Wed, 18 Mar 2015 07:31:06 +0000 (08:31 +0100)]
docs/libcurl: make portability fix

Using $< in a non-suffix rule context is a GNU make idiom.  This bug was
introduced in 7.41.0.

9 years agochecksrc: Fix whitelist on out-of-tree builds
Dan Fandrich [Tue, 17 Mar 2015 22:26:48 +0000 (23:26 +0100)]
checksrc: Fix whitelist on out-of-tree builds

9 years agoCurl_sh_entry: remove unused 'timestamp'
Stefan Bühler [Tue, 17 Mar 2015 07:28:36 +0000 (08:28 +0100)]
Curl_sh_entry: remove unused 'timestamp'

9 years agoHTTP: don't use Expect: headers when on HTTP/2
Daniel Stenberg [Tue, 17 Mar 2015 14:09:34 +0000 (15:09 +0100)]
HTTP: don't use Expect: headers when on HTTP/2

Reported-by: Stefan Eissing
Bug: https://github.com/bagder/curl/issues/169

9 years agochecksrc: detect and remove space before trailing semicolons
Daniel Stenberg [Tue, 17 Mar 2015 13:06:48 +0000 (14:06 +0100)]
checksrc: detect and remove space before trailing semicolons

9 years agochecksrc: introduce a whitelisting concept
Daniel Stenberg [Tue, 17 Mar 2015 12:53:12 +0000 (13:53 +0100)]
checksrc: introduce a whitelisting concept

9 years agochecksrc: use space after comma
Daniel Stenberg [Tue, 17 Mar 2015 12:41:49 +0000 (13:41 +0100)]
checksrc: use space after comma

9 years agochecksrc: use space before paren in "return (expr);"
Daniel Stenberg [Tue, 17 Mar 2015 12:05:01 +0000 (13:05 +0100)]
checksrc: use space before paren in "return (expr);"

9 years agoCONTRIBUTE: refer to git log instead of deprecated CHANGES file
Daniel Stenberg [Tue, 17 Mar 2015 08:09:23 +0000 (09:09 +0100)]
CONTRIBUTE: refer to git log instead of deprecated CHANGES file

9 years agoCURLOPT_*.3: more examples and edits
Daniel Stenberg [Tue, 17 Mar 2015 07:57:31 +0000 (08:57 +0100)]
CURLOPT_*.3: more examples and edits

9 years agoCURLOPT_*.3: added lots of small example sections
Daniel Stenberg [Tue, 17 Mar 2015 07:03:46 +0000 (08:03 +0100)]
CURLOPT_*.3: added lots of small example sections

9 years agoCURLOPT_PRIVATE.3: provide an example
Daniel Stenberg [Mon, 16 Mar 2015 22:56:11 +0000 (23:56 +0100)]
CURLOPT_PRIVATE.3: provide an example

9 years agoCURLOPT_*TIMEOUT.3: provide examples
Daniel Stenberg [Mon, 16 Mar 2015 22:51:22 +0000 (23:51 +0100)]
CURLOPT_*TIMEOUT.3: provide examples

9 years agoCURLOPT_USERAGENT.3: added an example
Daniel Stenberg [Mon, 16 Mar 2015 22:41:45 +0000 (23:41 +0100)]
CURLOPT_USERAGENT.3: added an example

9 years agoCURLOPT_STDERR.3: added an example
Daniel Stenberg [Mon, 16 Mar 2015 22:40:52 +0000 (23:40 +0100)]
CURLOPT_STDERR.3: added an example

9 years agocurl_easy_perform.3: remove superfluous close brace from example
Daniel Stenberg [Mon, 16 Mar 2015 22:28:23 +0000 (23:28 +0100)]
curl_easy_perform.3: remove superfluous close brace from example

9 years agofree: instead of Curl_safefree()
Daniel Stenberg [Mon, 16 Mar 2015 14:01:15 +0000 (15:01 +0100)]
free: instead of Curl_safefree()

Since we just started make use of free(NULL) in order to simplify code,
this change takes it a step further and:

- converts lots of Curl_safefree() calls to good old free()
- makes Curl_safefree() not check the pointer before free()

The (new) rule of thumb is: if you really want a function call that
frees a pointer and then assigns it to NULL, then use Curl_safefree().
But we will prefer just using free() from now on.