summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* llist: replace Curl_llist_alloc with Curl_llist_initbagder/remove-llist_allocDaniel Stenberg2017-04-0318-310/+214
| | | | | | No longer allocate the curl_llist head struct for lists separately. Removes 17 (15%) tiny allocations in a normal "curl localhost" invoke.
* docs: added examples for CURLINFO_FILETIME.3 and CURLOPT_FILETIME.3Daniel Stenberg2017-04-032-4/+38
|
* fail-early.d: fix typosJay Satiro2017-03-311-4/+3
|
* docs: Explain --fail-early does not imply --failJay Satiro2017-03-311-2/+6
| | | | Closes https://github.com/curl/curl/pull/1375
* telnet: (win32) fix read callback return variableDaniel Stenberg2017-04-011-6/+6
| | | | | | | | | | | | | | telnet.c(1427,21): warning: comparison of constant 268435456 with expression of type 'CURLcode' is always false telnet.c(1433,21): warning: comparison of constant 268435457 with expression of type 'CURLcode' is always false Reviewed-by: Jay Satiro Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/issues/1225#issuecomment-290340890 Closes #1374
* CTestConfig.cmake: removed, unusedDaniel Stenberg2017-03-311-13/+0
|
* libcurl.def: removed, unusedDaniel Stenberg2017-03-311-53/+0
|
* docs/index.html: removed, was not shipped anywayDaniel Stenberg2017-03-311-20/+0
|
* dist: add missing files to the tarballDaniel Stenberg2017-03-312-9/+13
|
* cmake: fix build with cmake 2.8.12.2Peter Wu2017-03-303-5/+5
| | | | | | | | | For some reason, CMake 2.8.12.2 did not expand the list argument in a single DEPENDS argument. Remove the quotes, so it gets expanded into multiple arguments for add_custom_command and add_custom_target. Fixes https://github.com/curl/curl/issues/1370 Closes #1372
* ssh: fix narrowing conversion warningMarcel Raad2017-03-301-1/+1
| | | | | | | | 'left' is used as time_t but declared as long. MinGW complains: error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion] Changed the declaration to time_t.
* http2: silence unused parameter warningsMarcel Raad2017-03-301-0/+6
| | | | | In release mode, MinGW complains: error: unused parameter 'lib_error_code' [-Werror=unused-parameter]
* curl: fix callback functions to match prototypeHanno Böck2017-03-302-3/+4
| | | | | | | The function tool_debug_cb doesn't match curl_debug_callback in curl.h (unsigned vs. signed char* for 3rd param). Bug: https://curl.haxx.se/mail/lib-2017-03/0120.html
* gcc7: fix ‘*’ in boolean context, suggest ‘&&’ instead ↵Alexis La Goutte2017-03-302-2/+2
| | | | | | [-Wint-in-bool-context] Closes #1371
* schannel: fix unused variable warningMarcel Raad2017-03-301-0/+2
| | | | | If CURL_DISABLE_VERBOSE_STRINGS is defined, hostname is not used in schannel_connect_step3.
* connect: fix unreferenced parameter warningMarcel Raad2017-03-302-4/+4
| | | | | When CURL_DISABLE_VERBOSE_STRINGS is defined, the reason parameter in Curl_conncontrol is not used as the infof macro expands to nothing.
* select: use correct SIZEOF_ constantMarcel Raad2017-03-301-1/+1
| | | | | | | | | | | At least under Windows, there is no SIZEOF_LONG, so it evaluates to 0 even though sizeof(int) == sizeof(long). This should probably have been CURL_SIZEOF_LONG, but the type of timeout_ms changed from long to time_t anyway. This triggered MSVC warning C4668 about implicitly replacing undefined macros with '0'. Closes https://github.com/curl/curl/pull/1362
* cmake: add cmake file in docs/libcurl/opts/ to distDaniel Stenberg2017-03-301-2/+2
|
* cmake: add more missing files to the distDaniel Stenberg2017-03-302-4/+4
|
* docs/Makefile.am: include CMakeLists.txt in the dist tarballDaniel Stenberg2017-03-301-1/+1
|
* NTLM: check for features with #ifdef instead of #ifMarcel Raad2017-03-294-29/+24
| | | | | | | | | Feature defines are normally checked with #ifdef instead of #if in the rest of the codebase. Additionally, some compilers warn when a macro is implicitly evaluated to 0 because it is not defined, which was the case here. Ref: https://github.com/curl/curl/pull/1362#discussion_r108605101 Closes https://github.com/curl/curl/pull/1367
* curl: fix callback argument inconsistencyHanno Böck2017-03-294-4/+4
| | | | | | | As you can see the callback definition uses a char* for the first argument, while the function uses a void*. URL: https://curl.haxx.se/mail/lib-2017-03/0116.html
* RELEASE-NOTES: synced with 556c51a2dfDaniel Stenberg2017-03-291-8/+43
|
* KNOWN_BUGS: typomadblobfish2017-03-291-1/+1
| | | | Closes #1364
* make: use the variable MAKE for recursive callsMaksim Stsepanenka2017-03-294-9/+9
| | | | Closes #1366
* conncache: make hashkey avoid mallocDaniel Stenberg2017-03-291-18/+15
| | | | | | ... to make it much faster. Idea developed with primepie on IRC. Closes #1365
* http: do not treat FTPS over CONNECT as HTTPSKamil Dudka2017-03-281-1/+1
| | | | | | | | | | | | | If we use FTPS over CONNECT, the TLS handshake for the FTPS control connection needs to be initiated in the SENDPROTOCONNECT state, not the WAITPROXYCONNECT state. Otherwise, if the TLS handshake completed without blocking, the information about the completed TLS handshake would be saved to a wrong flag. Consequently, the TLS handshake would be initiated in the SENDPROTOCONNECT state once again on the same connection, resulting in a failure of the TLS handshake. I was able to observe the failure with the NSS backend if curl ran through valgrind. Note that this commit partially reverts curl-7_21_6-52-ge34131d.
* pause: handle mixed types of data when pausedDaniel Stenberg2017-03-288-56/+292
| | | | | | | | | | | | When receiving chunked encoded data with trailers, and the write callback returns PAUSE, there might be both body and header to store to resend on unpause. Previously libcurl returned error for that case. Added test case 1540 to verify. Reported-by: Stephen Toub Fixes #1354 Closes #1357
* http: Fix proxy connection reuse with basic-authIsaac Boukris2017-03-283-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using basic-auth, connections and proxy connections can be re-used with different Authorization headers since it does not authenticate the connection (like NTLM does). For instance, the below command should re-use the proxy connection, but it currently doesn't: curl -v -U alice:a -x http://localhost:8181 http://localhost/ --next -U bob:b -x http://localhost:8181 http://localhost/ This is a regression since refactoring of ConnectionExists() as part of: cb4e2be7c6d42ca0780f8e0a747cecf9ba45f151 Fix the above by removing the username and password compare when re-using proxy connection at proxy_info_matches(). However, this fix brings back another bug would make curl to re-print the old proxy-authorization header of previous proxy basic-auth connection because it wasn't cleared. For instance, in the below command the second request should fail if the proxy requires authentication, but would succeed after the above fix (and before aforementioned commit): curl -v -U alice:a -x http://localhost:8181 http://localhost/ --next -x http://localhost:8181 http://localhost/ Fix this by clearing conn->allocptr.proxyuserpwd after use unconditionally, same as we do for conn->allocptr.userpwd. Also fix test 540 to not expect digest auth header to be resent when connection is reused. Signed-off-by: Isaac Boukris <iboukris@gmail.com> Closes https://github.com/curl/curl/pull/1350
* openssl: exclude DSA code when OPENSSL_NO_DSA is definedJay Satiro2017-03-281-0/+4
| | | | | | | | - Fix compile errors that occur in openssl.c when OpenSSL lib was built without DSA support. Bug: https://github.com/curl/curl/issues/1361 Reported-by: neheb@users.noreply.github.com
* examples/fopen: checksrc complianceJay Satiro2017-03-281-2/+2
|
* schannel: fix variable shadowing warningMarcel Raad2017-03-281-1/+1
| | | | No need to redeclare the variable.
* multi: fix MinGW-w64 compiler warningsMarcel Raad2017-03-271-2/+2
| | | | | error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion]
* .gitattributes: turn off CRLF for *.amMarcel Raad2017-03-271-0/+1
| | | | | | If Makefile.am uses CRLF, buildconf in a Windows checkout fails with: ".ibtoolize: error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4"
* spelling fixesklemens2017-03-2692-165/+165
| | | | Closes #1356
* curl: check for end of input in writeout backslash handlingDaniel Stenberg2017-03-253-3/+38
| | | | | | Reported-by: Brian Carpenter Added test 1442 to verify
* tests/README: make "Run" section foolproofMarcel Raad2017-03-241-4/+4
| | | | | | curl must be built before building the tests. Closes https://github.com/curl/curl/pull/1352
* openssl: fix comparison between signed and unsigned integer expressionsDaniel Stenberg2017-03-231-1/+1
|
* asiohiper: make sure socket is open in event_cbEdward Kimmel2017-03-231-8/+14
| | | | | | Send curl_socket_t to event_cb and make sure it hasn't been closed yet. Closes https://github.com/curl/curl/pull/1318
* openssl: made the error table static constDan Fandrich2017-03-231-1/+1
|
* openssl: fall back on SSL_ERROR_* string when no error detailJay Satiro2017-03-231-8/+33
| | | | | | | | | | | | | - If SSL_get_error is called but no extended error detail is available then show that SSL_ERROR_* as a string. Prior to this change there was some inconsistency in that case: the SSL_ERROR_* code may or may not have been shown, or may have been shown as unknown even if it was known. Ref: https://github.com/curl/curl/issues/1300 Closes https://github.com/curl/curl/pull/1348
* mkhelp: disable compression if the perl gzip module is unavailableDan Fandrich2017-03-231-2/+13
| | | | | This is nowadays included with the base perl distribution, but wasn't prior to about perl 5.14
* tests/README: mention nroff for --manual testsAnders Roxell2017-03-231-0/+1
| | | | | | Signed-off-by: Anders Roxell <anders.roxell@gmail.com> Closes #1342
* CURLINFO_PRIMARY_IP.3: add exampleDaniel Stenberg2017-03-221-2/+20
|
* travis: run tests-nonflaky instead of tests-fullDaniel Stenberg2017-03-221-1/+1
|
* make: introduce 'test-nonflaky' targetDaniel Stenberg2017-03-222-1/+10
| | | | | Running this in the root build dir will invoke the test suite to only run tests not marked as 'flaky'.
* test2033: flakyDaniel Stenberg2017-03-221-0/+1
|
* mbedtls: add support for CURLOPT_SSL_CTX_FUNCTIONAles Mlakar2017-03-213-9/+25
| | | | | | Ref: https://curl.haxx.se/mail/lib-2017-02/0097.html Closes https://github.com/curl/curl/pull/1272
* cmake: add support for building HTML and PDF docsPeter Wu2017-03-213-1/+68
| | | | | | | | | | | | Note that for some reason there is this warning (that also exists with autotools, added since curl-7_15_1-94-ga718cb05f): docs/libcurl/curl_multi_socket_all.3:1: can't open `man3/curl_multi_socket.3': No such file or directory Additionally, adjust the roffit --mandir option to support creating links when doing out-of-tree builds. Ref: https://github.com/curl/curl/pull/1288
* cmake: build manual pages (including curl.1)Peter Wu2017-03-214-6/+24
| | | | | | | | | | | Also make Perl mandatory to allow building the docs. While CMakeLists.txt could probably read the list of manual pages from Makefile.am, actually putting those in CMakeLists.txt is cleaner so that is what is done here. Fixes #1230 Ref: https://github.com/curl/curl/pull/1288