summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* timeval.c: Use long long constant type for timeval assignmentbagder/timeval-warningsMartin Kepplinger2017-07-031-2/+2
| | | | | | | | | | | | On a 64 bit host, sparse says: timeval.c:148:15: warning: constant 0x7fffffffffffffff is so big it is long timeval.c:149:12: warning: constant 0x7fffffffffffffff is so big it is long so let's use long long constant types in order to prevent undesired overflow failures. Signed-off-by: Martin Kepplinger <martink@posteo.de>
* unit1399: fix integer overflowRyan Winograd2017-07-031-1/+1
| | | | | Bug: #1616 Closes #1633
* cmake: Added compatibility options for older Windows versionsPer Malmberg2017-07-021-1/+11
| | | | | | CURL_STATIC_CRT and ENABLE_INET_PTON Closes #1621
* unit1399: add logging to time comparisonDaniel Stenberg2017-07-011-1/+5
| | | | | | ... to enable tracking down why autobuilds fail on this Bug: #1616
* make: build the docs subdir only from within srcDaniel Stenberg2017-06-303-8/+6
| | | | | | | | ... and don't build at all in include Prompted-by-work-by: Simon Warta Ref: #1590 Closes #1591
* test1450: fix up DICT server in torture modeMax Dymond2017-06-301-18/+21
| | | | | | | | | As per https://github.com/curl/curl/pull/1615, the DICT server is a little spammy in torture mode due to the sockets being torn down unexpectedly. Fix this by adding some error handling to the handling function. Closes #1629
* test1450: add simple testing for DICTMax Dymond2017-06-306-5/+289
| | | | | | | Add a new server which provides a DICT interface. This is intended to begin coverage testing for lib/dict.c Closes #1615
* test1521: fix out-of-tree builds, broken with 467da3afDan Fandrich2017-06-301-1/+1
| | | | | | | | The test.h file is no longer in the same directory as the source file, so that directory needs to be added to the include path. Fixes #1627 Closes #1628
* http2: handle PING framesMax Dymond2017-06-301-2/+46
| | | | | | | Add a connection check function to HTTP2 based off RTSP. This causes PINGs to be handled the next time the connection is reused. Closes #1521
* handler: refactor connection checkingMax Dymond2017-06-3020-7/+78
| | | | | | Add a new type of callback to Curl_handler which performs checks on the connection. Alter RTSP so that it uses this callback to do its own check on connection health.
* openssl: improve fallback seed of PRNG with a time based hashdmitrykos2017-06-301-17/+26
| | | | Fixes #1620
* progress: prevent resetting t_starttransferRyan Winograd2017-06-305-2/+142
| | | | | | | | | | | | | Prevent `Curl_pgrsTime` from modifying `t_starttransfer` when invoked with `TIMER_STARTTRANSFER` more than once during a single request. When a redirect occurs, this is considered a new request and `t_starttransfer` can be updated to reflect the `t_starttransfer` time of the redirect request. Closes #1616 Bug: https://github.com/curl/curl/pull/1602#issuecomment-310267370
* curl_strequal.3: fix typo in SYNOPSISDaniel Stenberg2017-06-291-2/+2
| | | | | | Reported-by: Jesse Chisholm Fixes #1623
* RELEASE-NOTES: synced with ce2c3ebdaDaniel Stenberg2017-06-281-5/+38
|
* curl --socks5-{basic,gssapi}: control socks5 authKamil Dudka2017-06-289-0/+46
| | | | Closes https://github.com/curl/curl/pull/1454
* CURLOPT_SOCKS5_AUTH: allowed methods for SOCKS5 proxy authKamil Dudka2017-06-287-9/+99
| | | | | | | | | | | | | | | | | | If libcurl was built with GSS-API support, it unconditionally advertised GSS-API authentication while connecting to a SOCKS5 proxy. This caused problems in environments with improperly configured Kerberos: a stock libcurl failed to connect, despite libcurl built without GSS-API connected fine using username and password. This commit introduces the CURLOPT_SOCKS5_AUTH option to control the allowed methods for SOCKS5 authentication at run time. Note that a new option was preferred over reusing CURLOPT_PROXYAUTH for compatibility reasons because the set of authentication methods allowed by default was different for HTTP and SOCKS5 proxies. Bug: https://curl.haxx.se/mail/lib-2017-01/0005.html Closes https://github.com/curl/curl/pull/1454
* socks: deduplicate the code for auth requestKamil Dudka2017-06-281-9/+10
|
* socks: use proxy_user instead of proxy_nameKamil Dudka2017-06-281-16/+16
| | | | ... to make it obvious what the data is used for
* libtest/make: generate lib1521.cDaniel Stenberg2017-06-273-2502/+17
| | | | | | | ... instead of having the generated code checked in. This saves space in the tarball but primarily automatically adapts to newly added options. Closes #1614
* tool_getparam: fix memory leak on test 1147 OOM (torture tests)Jay Satiro2017-06-261-1/+3
| | | | | Bug: https://github.com/curl/curl/pull/1486#issuecomment-310926872 Reported-by: Dan Fandrich
* test1537: fixed memory leak on OOMDan Fandrich2017-06-251-2/+13
|
* test1521: fix compiler warningsMarcel Raad2017-06-252-11/+17
| | | | | | | | | | | | The integer literal 3123123123 doesn't fit into a 32-bit signed integer, so GCC with 32-bit long warns in C90 mode: this decimal constant is unsigned only in ISO C90 [enabled by default] Fix this by using ULONG_MAX, which should fit in any curl_off_t and has the correct suffix to not issue any warnings. Also adds the missing CURLOPT_REQUEST_TARGET from commit 9b167fd090f596eac828817d48c247eeae53407f. Closes https://github.com/curl/curl/pull/1611
* curl/system.h: add check for XTENSA for 32bit gccDaniel Stenberg2017-06-241-1/+2
| | | | | Reported-by: Neil Kolban Fixes: 1598
* winbuild: fix boringssl buildHenrik S. Gaßmann2017-06-241-1/+4
| | | | | | | | | | | | Compile with `WIN32_LEAN_AND_MEAN` which prevents `windows.h` from including too much clutter including `wincrypt.h` which in turn contains some preprocessor macros that clash with boringssl symbols. Detect boringssl by checking the existance of `is_boringssl.h` and set the corresponding `HAVE_BORINGSSL` for compilation which is used in `ldap.c` to undefine the evil macros. Closes #1610
* progress: progress.timespent needs to be usDaniel Stenberg2017-06-241-2/+2
| | | | follow-up to 64ed44a815e4e to fix test 500 failures
* curl-compilers.m4: fix unknown-warning-option on Apple clangMarcel Raad2017-06-241-1/+10
| | | | | | | | | | | | | | | | | | Since 5598b0bd63f690c151074494ce47ef872f004ab4, clang -v is used to detect the clang version. The version number was expected to come after the word "version". For Apple clang, this doesn't work as it has its own versioning scheme. The version number is now first searched after the string "based on LLVM". This works for Apple clang before version 7, and also for e.g. Ubuntu's clang up to version 3.7. If it's not found and the version string contains "Apple LLVM version", clang version 3.7 is assumed, which is the version that comes with Xcode 7. Otherwise, the version number is still expected after the word "version", which works for very old Apple clang versions. Ref: https://trac.macports.org/wiki/XcodeVersionInfo Fixes https://github.com/curl/curl/issues/1606 Closes https://github.com/curl/curl/pull/1607
* progress: fix "time spent", broke in adef394acDaniel Stenberg2017-06-241-4/+4
|
* CURLINFO_REDIRECT_URL.3: mention the CURLOPT_MAXREDIRS caseDaniel Stenberg2017-06-241-0/+3
| | | | ... supported since 7.54.1
* maketgz: switch to -6e for xzDaniel Stenberg2017-06-241-1/+1
| | | | | | | To reduce the memory requirement for decompress, and still do almost as good compression as with -9e. Pointed-out-by: Dan Fandrich
* libtest/Makefile: remove unused lib1541 variablesDaniel Stenberg2017-06-231-4/+0
|
* CONTRIBUTE.md: mention the out-of-tree build test tooDaniel Stenberg2017-06-221-5/+6
|
* maketgz: switch to xz instead of lzmaDaniel Stenberg2017-06-221-6/+6
| | | | | | | | | | | The compressed output size seems to be a tad bit smaller, but generally xz seems more preferred these days and is used directly by for example gentoo instead of bz2. "Users of LZMA Utils should move to XZ Utils" => https://tukaani.org/lzma/ Closes #1604
* --request-target: instead of --strip-path-slashDaniel Stenberg2017-06-2120-49/+49
| | | | | | | | | | | | | | ... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH. This option instead provides the full "alternative" target to use in the request, instead of extracting the path from the URL. Test 1298 and 1299 updated accordingly. Idea-by: Evert Pot Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373 Closes #1593
* lib1521: fix missing-variable-declarations clang warningsMarcel Raad2017-06-212-28/+28
| | | | Declare TU-local variables static.
* travis: enable typecheck-gcc warningsMarcel Raad2017-06-211-5/+5
| | | | | | | | | - switch debug and release configurations so that we get an optimized build with GCC 4.3+ as required by typecheck-gcc - enable warnings-as-errors for release builds (which have warnings disabled) Closes https://github.com/curl/curl/pull/1595
* typecheck-gcc: add support for CURLINFO_OFF_TMarcel Raad2017-06-211-3/+12
| | | | | | | | typecheck-gcc expected curl_socket_t instead of curl_off_t arguments for CURLINFO_OFF_T. Detected by test1521, unfortunately only when run locally. Closes https://github.com/curl/curl/pull/1592
* ci: whitelist branches to avoid testing feature branches twiceSimon Warta2017-06-212-0/+10
|
* lib: fix the djgpp buildGisle Vanem2017-06-211-1/+3
| | | | Bug: https://github.com/curl/curl/commit/73a2fcea0b4adea6ba342cd7ed1149782c214ae3#commitcomment-22655993
* if2ip: fix compiler warning in ISO C90 modeMarcel Raad2017-06-201-3/+3
| | | | | remote_scope_id is only used when both HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID and ENABLE_IPV6 are defined instead of only one of them.
* travis: do the distcheck test build out-of-tree as wellDaniel Stenberg2017-06-201-1/+3
|
* http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASHDaniel Stenberg2017-06-1921-25/+220
| | | | | | | | | | | ... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462
* test1521: test getinfo's OFF_T types tooDaniel Stenberg2017-06-192-0/+23
| | | | Closes #1588
* lib1521: add curl_easy_getinfo calls to the test setDaniel Stenberg2017-06-193-750/+2454
| | | | | Also added return value checks to make sure no unexpected return codes are used.
* automake: use $(MKHELP) variable instead if constant mkhelp.plSimon Warta2017-06-191-1/+1
| | | | this improves symmetry with the rule above
* mkhelp.pl: fix script name in usage textSimon Warta2017-06-191-1/+1
|
* RELEASE-NOTES: synced with 3b80d3ca4Daniel Stenberg2017-06-191-4/+36
|
* getinfo: return sizes as curl_off_tDaniel Stenberg2017-06-1916-20/+473
| | | | | | | | | | | | | | | This change introduces new alternatives for the existing six curl_easy_getinfo() options that return sizes or speeds as doubles. The new versions are named like the old ones but with an appended '_T': CURLINFO_CONTENT_LENGTH_DOWNLOAD_T CURLINFO_CONTENT_LENGTH_UPLOAD_T CURLINFO_SIZE_DOWNLOAD_T CURLINFO_SIZE_UPLOAD_T CURLINFO_SPEED_DOWNLOAD_T CURLINFO_SPEED_UPLOAD_T Closes #1511
* PIPELINING_SERVER_BL: cleanup the internal list useDaniel Stenberg2017-06-195-22/+92
| | | | | | | | | | | The list was freed incorrectly since the llist refactor of cbae73e1dd959. Added test 1550 to verify that it works and avoid future regressions. Reported-by: Pascal Terjan Fixes #1584 Closes #1585
* http2: fix OOM crashDaniel Stenberg2017-06-182-5/+10
| | | | torture mode with test 1021 found it
* CURLOPT_PREQUOTE.3: spellfix man page referenceDaniel Stenberg2017-06-181-1/+1
|