summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* compiler warning: fixYang Tse2011-05-266-2/+30
| | | | Fix compiler warning: conversion may lose significant bits
* socks: fix unaligned memory accessYang Tse2011-05-261-9/+13
|
* create_conn: only switch protocol handler if necessaryDaniel Stenberg2011-05-251-2/+5
| | | | | | | | | When switching to HTTP because a HTTP proxy is being used, the existing handler is now checked if it already is "compatible". This allows the https handler remain while other non-http handlers will be redirected. Bug: http://curl.haxx.se/mail/lib-2011-05/0214.html Reported by: Jerome Robert
* compiler warning: fix followupYang Tse2011-05-251-0/+3
| | | | | | Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
* compiler warning: fixYang Tse2011-05-244-2/+50
| | | | | | Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
* build: inclusion guardYang Tse2011-05-241-0/+4
| | | | Enclose header file in an inclusion guard
* compiler warning: fixYang Tse2011-05-241-2/+5
| | | | Fix compiler warning: expression has no effect
* compiler warning: fixYang Tse2011-05-231-2/+2
| | | | | Fix compiler warning: `keycheck' might be used uninitialized in this function. Fix compiler warning: `keybit' might be used uninitialized in this function.
* compiler warning: fixYang Tse2011-05-231-1/+1
| | | | Fix variable declaration placement
* compiler warning: fixYang Tse2011-05-231-1/+1
| | | | Fix missing semicolon
* compiler warning: fixYang Tse2011-05-231-1/+5
| | | | | | Fix compiler warning: expression has no effect Fix OOM handling
* compiler warning: fixYang Tse2011-05-232-5/+13
| | | | Fix compiler warning: expression has no effect
* compiler warning: fixYang Tse2011-05-231-1/+2
| | | | Fix compiler warning: unused variable 'data'
* compiler warning: fixYang Tse2011-05-211-1/+1
| | | | Fix compiler warning: enumerated type mixed with another type
* compiler warning: fixYang Tse2011-05-211-1/+1
| | | | Fix compiler warning: enumerated type mixed with another type
* compiler warning: fixYang Tse2011-05-211-1/+1
| | | | Fix compiler warning: enumerated type mixed with another type
* compiler warning: fixYang Tse2011-05-214-4/+4
| | | | Fix compiler warning: enumerated type mixed with another type
* compiler warning: fixYang Tse2011-05-211-4/+4
| | | | Fix compiler warning: empty body in an if-statement
* cyassl: build without filesystemOla Mork2011-05-201-0/+6
| | | | | Get cyassl's NO_FILESYSTEM to work with libcurl. Otherwise I'd get linker errors for the missing "SSL_CTX_load_verify_locations" functions.
* version: linkage fixYang Tse2011-05-191-1/+5
| | | | Fix linkage on c-ares enabled Windows static builds
* CLOSESOCKETFUNCTION: use the callbackDaniel Stenberg2011-05-181-3/+4
| | | | Fix the return type of the callback to match close() and make use of it.
* CLOSESOCKETFUNCTION: addedDaniel Stenberg2011-05-189-25/+63
| | | | | | Introduced the initial setup to allow closesocket callbacks by making sure sclose() is only ever called from one place in the libcurl source and still run all test cases fine.
* GnuTLS handshake: fix timeoutDaniel Stenberg2011-05-181-1/+2
| | | | | | | | | Commit cbf4961bf3e garbled the timeout handling while doing SSL handshaking (in an attempt at fixing another bug). This puts sanity back. Bug: http://curl.haxx.se/mail/lib-2011-05/0167.html Reported by: Ethan Glasser Camp
* checksrc: trailing whitespace detection fixDaniel Stenberg2011-05-161-1/+1
|
* negotiate sspi: fix sequential requestsMarcel Roelofs2011-05-161-14/+15
|
* Fixed compilation when RTSP is disabledDan Fandrich2011-05-061-2/+0
|
* Fixed LDAP after RTSP readwrite changeDan Fandrich2011-05-061-0/+2
|
* set_userpass: convert from protocol-specific to genericDaniel Stenberg2011-05-054-6/+9
| | | | | | The protocol handler's flags field now can set that the protocol requires a password, so that the set_userpass function doesn't have to have the specific knowledge of which protocols that do.
* RTSP: cleanupsDaniel Stenberg2011-05-056-23/+19
| | | | | | | | | Made several functions static Made one function defined to nothing when RTSP is disabled to avoid the #ifdefs in code. Removed explicit rtsp.h includes
* RTSP: convert protocol-specific checks to genericDaniel Stenberg2011-05-0518-35/+67
| | | | | Add a 'readwrite' function to the protocol handler struct and use that for the extra readwrite functionality RTSP needs.
* SSL: check for SSL, not specific protocolsDaniel Stenberg2011-05-056-22/+12
| | | | | Code cleanup to check less for protocols and more for the specific relevant feature. Like if SSL is required.
* http_perhapsrewind: remove HTTP checkDaniel Stenberg2011-05-051-4/+3
| | | | No need to check for HTTP as this is now a HTTP-specific function
* http_perhapsrewind:Daniel Stenberg2011-05-051-3/+3
| | | | make it static, remove Curl_ prefix
* remove FILE protocol-specific checksDaniel Stenberg2011-05-053-8/+7
| | | | | Also, convert the BANPROXY flag into NONETWORK for the protocols (file:// only atm) that don't work over networks.
* socks proxy: allow socks5h:// prefix tooDaniel Stenberg2011-05-051-1/+3
| | | | | | Using 'socks5h' as proxy protocol will make it a CURLPROXY_SOCKS5_HOSTNAME proxy which is SOCKS5 and asking the proxy to resolve host names. I found no "standard" protocol name for this.
* Corrected commentsDaniel Stenberg2011-05-051-6/+7
| | | | closepolicy has been deprecated and unused for years
* ConnectionStore: remove unused return codeDaniel Stenberg2011-05-041-5/+2
|
* indent correctlyDaniel Stenberg2011-05-041-8/+8
|
* SSH: set non-blocking earlierDaniel Stenberg2011-05-012-8/+14
| | | | | | | | 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
* ConnectionExists: avoid NULL dereferenceDaniel Stenberg2011-04-291-0/+1
| | | | | When checking for connections that are bound to a particular device we must make sure we don't compare with a NULL pointer.
* resolver_error: remove bad semicolonDaniel Stenberg2011-04-291-1/+1
|
* gai_strerror: provide private implementationDaniel Stenberg2011-04-281-0/+38
| | | | | There are systems (like NetWare) without its own gai_strerror() function.
* treaded-resolver: better error messagesDaniel Stenberg2011-04-281-10/+31
| | | | | | | 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
* proxy: allow socks:// prefix in proxy stringDaniel Stenberg2011-04-283-46/+50
| | | | Inspired by a patch from OB.Conseil. Added test case 708 to verify.
* CMake: improve library search, implement install.Zmey Petroff2011-04-281-0/+2
| | | | | | | | | | | | | 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).
* multi-socks: fix connect to proxyDaniel Stenberg2011-04-282-3/+7
| | | | | | | | | | 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
* cleanup: remove old unused debug codeDaniel Stenberg2011-04-281-10/+0
|
* Make checksrc.pl work on out-of-tree buildsDan Fandrich2011-04-271-2/+3
| | | | | Source files given with absolute paths do not have the -D directory specifier prepended.
* make: add checksrc.pl to distDaniel Stenberg2011-04-271-1/+1
|
* make: add 'checksrc' as target to check code styleDaniel Stenberg2011-04-271-3/+5
| | | | | | | | 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.