summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* errno: fix non-windows builds after af0216251b94e7Daniel Stenberg2017-07-102-6/+8
|
* make: fix docs build on OpenBSDRyan Winograd2017-07-101-0/+3
| | | | Ref: #1591
* ldap: fix MinGW compiler warningMarcel Raad2017-07-101-2/+1
| | | | | | | | | | ldap_bind_s is marked as deprecated in w32api's winldap.h shipping with the latest original MinGW, resulting in compiler warnings since commit f0fe66f13c93d3d0af45d9fb1231c9164e0f9dc8. Fix this for the non-SSPI case by using ldap_simple_bind_s again instead of ldap_bind_s with LDAP_AUTH_SIMPLE. Closes https://github.com/curl/curl/pull/1664
* curl-compilers.m4: disable warning spam with Cygwin's clangMarcel Raad2017-07-101-1/+9
| | | | | | | | | | | | When building with Cygwin or MinGW, libtool uses a wrapper executable instead of a wrapper script [1], which is written in C and throws missing-variable-declarations warnings. Don't enable these warnings on Cygwin and MinGW in order to avoid warnings for every executable built, which spams the test suite output when using Cygwin's clang. [1] https://www.gnu.org/software/libtool/manual/html_node/Wrapper-executables.html Closes https://github.com/curl/curl/pull/1665
* curl_setup_once: Remove ERRNO/SET_ERRNO macrosJay Satiro2017-07-1014-93/+76
| | | | | | | | | | | | Prior to this change (SET_)ERRNO mapped to GetLastError/SetLastError for Win32 and regular errno otherwise. I reviewed the code and found no justifiable reason for conflating errno on WIN32 with GetLastError/SetLastError. All Win32 CRTs support errno, and any Win32 multithreaded CRT supports thread-local errno. Fixes https://github.com/curl/curl/issues/895 Closes https://github.com/curl/curl/pull/1589
* tool_getparam: fix potentially uninitialized errJay Satiro2017-07-091-1/+2
|
* smb: rename variable to fix shadowing warningMarcel Raad2017-07-091-5/+5
| | | | | | | | | GCC 4.6.3 on travis complains: smb.c: In function ‘get_posix_time’: smb.c:725:13: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow] Fix this by renaming the variable.
* tool_cb_wrt: fix variable shadowing warningMarcel Raad2017-07-091-3/+3
| | | | | | | | | | | GCC 4.4 complains: tool_cb_wrt.c:81: error: declaration of ‘isatty’ shadows a global declaration /usr/include/unistd.h:782: error: shadowed declaration is here Fix this by renaming the variable. Closes https://github.com/curl/curl/pull/1661
* RELEASE-NOTES: synced with be2c999b8Daniel Stenberg2017-07-081-6/+29
|
* travis: install stunnelDaniel Stenberg2017-07-071-0/+1
|
* valgrind.supp: supress OpenSSL false positive seen on travisDaniel Stenberg2017-07-071-0/+21
|
* travis: detect and use valgrind for normal buildsDaniel Stenberg2017-07-071-1/+1
| | | | Closes #1653
* travis: add SMB, DICT, TELNET torture to coverage testDaniel Stenberg2017-07-071-1/+1
|
* cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVCPaul Harris2017-07-072-5/+10
| | | | | | Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere. Closes #1649
* CURLOPT_POSTFIELDS.3: explain the 100-continue magic betterDaniel Stenberg2017-07-071-3/+5
|
* test1452: add telnet negotiationMax Dymond2017-07-076-4/+552
| | | | | | | Add a basic telnet server for negotiating some telnet options before echoing back any data that's sent to it. Closes #1645
* travis: do more tests in the coverage runDaniel Stenberg2017-07-071-2/+3
| | | | I added a selection of torture and event tests that run "fast enough"
* curl_easy_escape.3: mention the (lack of) encodingDaniel Stenberg2017-07-071-1/+10
| | | | | Fixes #1612 Reported-by: Jeroen Ooms
* memdebug: don't setbuf() if the file open failedGisle Vanem2017-07-061-1/+2
| | | | Bug: https://github.com/curl/curl/issues/828#issuecomment-313475151
* appveyor: enable CURL_WERROR on all buildsDaniel Stenberg2017-07-061-1/+1
|
* cmake: add CURL_WERROR for enabling "warning as errors"Daniel Stenberg2017-07-061-0/+11
|
* cmake: remove spurious "-l" from linker flagsHannes Magnusson2017-07-061-1/+1
| | | | Fixes #1552
* test506: skip if threaded-resolverDaniel Stenberg2017-07-061-0/+5
|
* runtests: support "threaded-resolver" as a featureDaniel Stenberg2017-07-062-0/+11
| | | | ... to let tests require it or skip if present
* asyn-thread.c: fix unused variable warnings on macOSDaniel Stenberg2017-07-061-13/+14
|
* http: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLDDaniel Stenberg2017-07-062-4/+9
| | | | | Make the name reflect its use better, and add a short comment describing what it's for.
* cmake: if inet_pton is used, bump _WIN32_WINNTDaniel Stenberg2017-07-051-7/+11
| | | | | | | ... and make sure inet_pton is always checked for when *not* using Windows, which is a regression from 4fc6ebe18. Idea-by: Sergei Nikulov
* select.h: avoid macro redefinition harderDaniel Stenberg2017-07-051-2/+3
| | | | | ... by checking the POLLIN define, as the header file checks don't work on Windows.
* inet_pton: fix include on windows to get prototypeDaniel Stenberg2017-07-051-1/+4
| | | | | | | inet_pton() exists on Windows and gets used by our cmake builds. Make sure the correct header file is included to avoid compiler warnings. Closes #1639
* TODO: 1.10 auto-detect proxyDaniel Stenberg2017-07-051-0/+13
| | | | Closes #1572
* TODO: HTTP proxy CONNECT is non-blocking nowDaniel Stenberg2017-07-051-1/+0
|
* cmake: fix send/recv argument scanner for windowsDaniel Stenberg2017-07-051-6/+6
| | | | | | ... by simply trying the Windows argument types first. Fixes #1640
* RELEASE-NOTES: synced with 596cfb6c0Daniel Stenberg2017-07-051-5/+42
|
* smb: add support for CURLOPT_FILETIMEGisle Vanem2017-07-041-3/+24
| | | | | | Bug: https://curl.haxx.se/mail/lib-2017-07/0005.html Closes #1643
* travis: install nghttp2 on linux buildsDaniel Stenberg2017-07-041-1/+10
| | | | Closes #1642
* smb: fix build for djgpp/MSDOSGisle Vanem2017-07-041-1/+1
| | | | bug: https://curl.haxx.se/mail/lib-2017-07/0005.html
* configure: try ldap/lber in reversed order firstDaniel Stenberg2017-07-041-1/+1
| | | | | | | | | | When scanning for which LDAP libraries to use, try the -lldap -llber combination before the reversed order since it has a greater chance of working when linking with libcurl statically. Fixes #1619 Closes #1634 Reported-by: David E. Narváez
* configure: remove checks for 5 functions never usedDaniel Stenberg2017-07-042-19/+1
| | | | | | fork, getprotobyname, inet_addr, perror, uname closes #1638
* dist: add SMB python deps into the tarballDaniel Stenberg2017-07-041-1/+8
|
* test1451: add SMB support to the testbedMax Dymond2017-07-047-511/+889
| | | | | | | Add test 1451 which does some very basic SMB testing using the impacket SMB server. Closes #1630
* test: add impacket for SMB testingMax Dymond2017-07-0413-0/+18266
| | | | | | | Import impacket 0.9.15 for use in SMB testing. This was generated by doing "pip2.7 install -t . impacket" Unnecessary files for current testing were deleted.
* travis.yml: use --enable-werror on debug buildsDaniel Stenberg2017-07-041-1/+1
| | | | | | ... to better detect and fault on compiler warnings/errors Closes #1637
* tool_sleep: typecast to avoid macos compiler warningDaniel Stenberg2017-07-041-2/+2
| | | | | | tool_sleep.c:54:24: error: implicit conversion loses integer precision: 'long' to '__darwin_suseconds_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
* timeval.c: Use long long constant type for timeval assignmentMartin Kepplinger2017-07-041-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. Bug: https://curl.haxx.se/mail/lib-2017-07/0003.html Closes #1636 Signed-off-by: Martin Kepplinger <martink@posteo.de>
* url: make the original string get used on subsequent transfersDaniel Stenberg2017-07-035-2/+129
| | | | | | | | | | | ... since CURLOPT_URL should follow the same rules as other options: they remain set until changed or cleared. Added test 1551 to verify. Fixes #1631 Closes #1632 Reported-by: Pavel Rochnyak
* gtls: fix build when sizeof(long) < sizeof(void *)Johannes Schindelin2017-07-031-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | - Change gnutls pointer/int macros to pointer/curl_socket_t. Prior to this change they used long type as well. The size of the `long` data type can be shorter than that of pointer types. This is the case most notably on Windows. If C99 were acceptable, we could simply use `intptr_t` here. But we want to retain C89 compatibility. Simply use the trick of performing pointer arithmetic with the NULL pointer: to convert an integer `i` to a pointer, simply take the address of the `i`th element of a hypothetical character array starting at address NULL. To convert back, simply cast the pointer difference. Thanks to Jay Satiro for the initial modification to use curl_socket_t instead of int/long. Closes #1617 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.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