aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2011-05-05Corrected commentsDaniel Stenberg
closepolicy has been deprecated and unused for years
2011-05-04ConnectionStore: remove unused return codeDaniel Stenberg
2011-05-04indent correctlyDaniel Stenberg
2011-05-01SSH: set non-blocking earlierDaniel Stenberg
Introduce an INIT state for the SSH state machine and set libssh2 non-blocking in that so that it is set properly before libssh2_session_startup() is called. Bug: http://curl.haxx.se/mail/archive-2011-05/0001.html
2011-04-29ConnectionExists: avoid NULL dereferenceDaniel Stenberg
When checking for connections that are bound to a particular device we must make sure we don't compare with a NULL pointer.
2011-04-29resolver_error: remove bad semicolonDaniel Stenberg
2011-04-28gai_strerror: provide private implementationDaniel Stenberg
There are systems (like NetWare) without its own gai_strerror() function.
2011-04-28treaded-resolver: better error messagesDaniel Stenberg
Now use gai_strerror() to get proper error messages when getaddrinfo() has failed. Detect the function in configure. Code based on work and suggestions by Jeff Pohlmeyer and Guenter Knauf
2011-04-28proxy: allow socks:// prefix in proxy stringDaniel Stenberg
Inspired by a patch from OB.Conseil. Added test case 708 to verify.
2011-04-28CMake: improve library search, implement install.Zmey Petroff
Improved library search by check_function_exists_concat() macro: it does not revert the list of libraries any more. Improved OpenSSL library search: first find zlib, then search for openssl libraries that may depend on zlib. For Unix: openssl libraries can now be detected in nonstandard locations. Supply CMAKE_LIBRARY_PATH to CMake on command line. Added installation capability (very basic one yet).
2011-04-28multi-socks: fix connect to proxyDaniel Stenberg
When connecting to a socks or similar proxy we do the proxy handshake at once when we know the TCP connect is completed and we only consider the "connection" complete after the proxy handshake. This fixes test 564 which is now no longer considered disabled. Reported by: Dmitri Shubin Bug: http://curl.haxx.se/mail/lib-2011-04/0127.html
2011-04-28cleanup: remove old unused debug codeDaniel Stenberg
2011-04-27Make checksrc.pl work on out-of-tree buildsDan Fandrich
Source files given with absolute paths do not have the -D directory specifier prepended.
2011-04-27make: add checksrc.pl to distDaniel Stenberg
2011-04-27make: add 'checksrc' as target to check code styleDaniel Stenberg
The make target checksrc now works in the root makefile and in both the src and lib directories. It is also run automatically on "all" if configure --enable-debug was used.
2011-04-27checksrc: add -W to allow a file to be whitelistedDaniel Stenberg
Useful when a known file just doesn't comply and there's no intention to make it do so.
2011-04-27whitespace cleanup: no space first in conditionalsDaniel Stenberg
"if(a)" is our style, not "if( a )"
2011-04-27lib/make: run checksrc.pl once for all filesDaniel Stenberg
Since it now supports multiple files this will be faster and will show problems for more file than one at a time - more convenient.
2011-04-27checksrc: scan many files, more checksDaniel Stenberg
It now scans multiple files and outputs an error+warning count summary at the end in case at least one was detected. -D can be used to specify in which dir the files are located The script now scans for conditions that starts with a space for if/while/for lines.
2011-04-27Makefile: run checksrc if debug enabledDaniel Stenberg
And make the build fail if a warning or error was detected
2011-04-27checksrc: exit error code if warnings or errorsDaniel Stenberg
2011-04-27SSH: move knownhost logic to separate functionDaniel Stenberg
2011-04-27source cleanup: unify look, style and indent levelsDaniel Stenberg
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
2011-04-27Windows native IDN fixes.Guenter Knauf
For now provide prototypes instead of including the non-standard normalisation.h which is only available in the "Internationalized Domain Names Mitigation APIs" download.
2011-04-25Fixed compiler warning in Windows SSPI caseDan Fandrich
2011-04-25Fixed compilation when the synchronous resolver is usedDan Fandrich
2011-04-25Added new resolver sources to Symbian and VC6 build filesDan Fandrich
2011-04-25hostip: comment fixed to state current situationDaniel Stenberg
2011-04-25async resolvers: further cleanupsDaniel Stenberg
asyn-ares.c and asyn-thread.c are two separate backends that implement the same (internal) async resolver API for libcurl to use. Backend is specified at build time. The internal resolver API is defined in asyn.h for asynch resolvers.
2011-04-25asynch resolvers: cleanupDaniel Stenberg
Fixed indents, coding conventions and white space edits. Modified the c-ares completion callback function to again NOT read the conn data when the ares handle is being taken down as then it may have been freed already.
2011-04-25asynch resolvers: unifiedVsevolod Novikov
Introducing an internal API for handling of different async resolver backends.
2011-04-24Enabled OpenWatcom native Windows IDN build.Guenter Knauf
For now we directly import the Idn* symbols with the linker; an upcoming release of OWC will have these added to the import lib normaliz.lib, and prototypes are added to winnnls.h.
2011-04-22NTLM: work with unicodeDaniel Stenberg
Rewritten code from a patch brought by Matteo Rocco.
2011-04-21Include unistd.h to declare close()Dan Fandrich
2011-04-21In lib/, change 'wanna' to 'want to'.Fabian Keil
Found with codespell.
2011-04-21Fix a couple of spelling errors in lib/Fabian Keil
Found with codespell.
2011-04-21transfer.c: Fixed indentation in readwrite_data.Julien Chaffraix
2011-04-20SFTP: close file before postquoteDaniel Stenberg
Make sure that files are closed before the post quote commands run as if they operate on the just transferred file they could otherwise easily fail. Patch by: Rajesh Naganathan (edited)
2011-04-20Curl_http_connect: detect HTTPS properly after CONNECTDaniel Stenberg
libcurl failed to check the correct struct for HTTPS after CONNECT was issued to the proxy, so it didn't do the TLS handshake and subsequently failed the connection. A regression released in 7.21.5 (introduced around commit 8831000bc07de). Bug: http://curl.haxx.se/mail/lib-2011-04/0134.html Reported by: Josue Andrade Gomes
2011-04-20CURL_DOES_CONVERSIONS: fixesGisle Vanem
Made it compile and work again after the code move.
2011-04-20CURL_DOES_CONVERSIONS: cleanupDaniel Stenberg
Massively reduce #ifdefs all over (23 #ifdef lines less so far) Moved conversion-specific code to non-ascii.c
2011-04-19Improve MinGW static makefile builds.Guenter Knauf
It is now possible to use any combination of features without having to 1st add makefile targets to the main makefile. The main makefile now passes the 'mingw32-feat1-feat2' as var CFG, and the ./[lib|src]/Makefile.m32 parses the CFG var to determine the features to be enabled.
2011-04-19Enabled MinGW native Windows IDN build.Guenter Knauf
2011-04-19Windows native IDN fixes.Guenter Knauf
changed windows.h include to system header; changed obsolete 2nd check for str_w to str_utf8 in order to catch malloc() failure and avoid a free(NULL); changed calls to GetLastError() to void to kill unsused var compiler warnings; moved one call to GetLastError() into else case so that its only called when WideCharToMultiByte() really fails.
2011-04-19Windows native IDN fixes.Guenter Knauf
Provide prototype for curl_win32_idn_to_ascii(); remove wrong 3rd parameter from curl_win32_idn_to_ascii() call.
2011-04-19Updated default (recommended) dependency versions.Guenter Knauf
2011-04-18transfer-encoding: document the optionsDaniel Stenberg
The new libcurl and command line options are now described.
2011-04-18transfer-encoding: added new option and cmdlineDaniel Stenberg
Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
2011-04-18CURLE_BAD_CONTENT_ENCODING: now used for transfer encoding tooDaniel Stenberg
2011-04-18TE: do the Connection: headerDaniel Stenberg
When TE: is inserted in the request, we must add a "Connection: TE" as well to be HTTP 1.1 compliant. If a custom Connection: header is passed in, we must use that and only append TE to it. Test case 1125 verifies TE: + custom Connection:.