summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Johan van Selst found and fixed a OpenSSL session ref count leak:Daniel Stenberg2010-01-081-2/+10
| | | | | | | | | | | | | ossl_connect_step3() increments an SSL session handle reference counter on each call. When sessions are re-used this reference counter may be incremented many times, but it will be decremented only once when done (by Curl_ossl_session_free()); and the internal OpenSSL data will not be freed if this reference count remains positive. When a session is re-used the reference counter should be corrected by explicitly calling SSL_SESSION_free() after each consecutive SSL_get1_session() to avoid introducing a memory leak. (http://curl.haxx.se/bug/view.cgi?id=2926284)
* removed a parameter from the Curl_http_readwrite_headers() prototype to removeDaniel Stenberg2010-01-073-7/+4
| | | | | the need for the struct forward declaration from http.h which caused problems with gcc 2.96 and quite frankly the parameter wasn't necessary anyway
* removed Curl_http_header_append() prototype as it isn't used anymore, theDaniel Stenberg2010-01-071-5/+1
| | | | function was moved to http.c and was made static and renamed
* - Make sure the progress callback is called repeatedly even during very slowDaniel Stenberg2010-01-061-8/+23
| | | | name resolves when c-ares is used for resolving.
* Julien Chaffraix fixed so that the fragment part in an URL is not sent to ↵Claes Jakobsson2010-01-061-9/+17
| | | | the server anymore
* - Julien Chaffraix eliminated a duplicated initialization in singlesocket().Kamil Dudka2010-01-031-1/+0
|
* update copyright year since we are in 2010 nowDaniel Stenberg2010-01-015-5/+5
|
* - Ingmar Runge enhanced libcurl's FTP engine to support the PRET command. ThisDaniel Stenberg2010-01-015-1/+39
| | | | | | | | | command is a special "hack" used by the drftpd server, but even though it is a custom extension I've deemed it fine to add to libcurl since this server seems to survive and people keep using it and want libcurl to support it. The new libcurl option is named CURLOPT_FTP_USE_PRET, and it is also usable from the curl tool with --ftp-pret. Using this option on a server that doesn't support this command will make libcurl fail.
* turned CURLOPT_MAIL_RCPT into a curl_slist list instead to support multipleDaniel Stenberg2009-12-313-5/+20
| | | | | receivers, and made the command line tool thus support the option specified many times
* modified to get the EHLO domain from the path part of the URL instead of theDaniel Stenberg2009-12-302-6/+16
| | | | user name
* moved the SMTP payload escape function into Curl_smtp_escape_eob and putDaniel Stenberg2009-12-303-56/+68
| | | | it in smtp.c
* (SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLFDaniel Stenberg2009-12-303-2/+78
| | | | | | sequences in uploaded data. The test server doesn't "decode" escaped dot-lines but instead test cases must be written to take them into account. Added test case 803 to verify dot-escaping.
* Oops, should have removed 'not' in previous commit.Yang Tse2009-12-301-5/+5
|
* VMS specific preprocessor symbol checking adjustmentsYang Tse2009-12-3022-27/+27
|
* Replaced stricmp() usage with our portable strequal()Yang Tse2009-12-301-5/+5
|
* move HTTP-specific functions to http.c where they belongDaniel Stenberg2009-12-293-769/+769
|
* first shot at actually doing the SMTP upload as well, not doing the properDaniel Stenberg2009-12-251-6/+5
| | | | end-of-body treatment
* remove some unused codeDaniel Stenberg2009-12-201-32/+1
|
* free the allocated mailbox name at disconnectDaniel Stenberg2009-12-201-0/+2
|
* fixed a precaution check in the cookie code, pointed out by Julien ChaffraixDaniel Stenberg2009-12-191-1/+1
|
* Fix compilation failureYang Tse2009-12-171-1/+1
|
* uh, assign the bool it points to properlyDaniel Stenberg2009-12-171-1/+1
|
* Stop overloading the conn->protocol field with the PROT_MISSING bit. ItDaniel Stenberg2009-12-172-7/+9
| | | | really didn't belong there and had no real point.
* Remove pointless storing of the protocol as a string within the connectdataDaniel Stenberg2009-12-173-25/+29
| | | | struct, and instead use the already stored string in the handler struct.
* - David Byron fixed Curl_ossl_cleanup to actually call ENGINE_cleanup whenDaniel Stenberg2009-12-171-1/+1
| | | | available.
* Follow-up fix for the proxy fix I did for Jon Nelson's bug. It turned out IDaniel Stenberg2009-12-161-60/+79
| | | | | was a bit too quick and broke test case 1101 with that change. The order of some of the setups is sensitive. I now changed it slightly again.
* - Jon Nelson found a regression that turned out to be a flaw in how libcurlDaniel Stenberg2009-12-141-30/+33
| | | | | | | | | | detects and uses proxies based on the environment variables. If the proxy was given as an explicit option it worked, but due to the setup order mistake proxies would not be used fine for a few protocols when picked up from '[protocol]_proxy'. Obviously this broke after 7.19.4. I now also added test case 1106 that verifies this functionality. (http://curl.haxx.se/bug/view.cgi?id=2913886)
* Fix compiler warningYang Tse2009-12-141-1/+1
|
* Fix compiler warningsYang Tse2009-12-144-8/+13
|
* split out more protocol-specific structs from urldata.h into their ownDaniel Stenberg2009-12-124-163/+175
| | | | protocol-specific header files
* introducing IMAP, POP3 and SMTP support (still lots of polish left to do)Daniel Stenberg2009-12-1217-632/+4117
|
* Prevent rewinding unless pipelining.Yang Tse2009-12-111-12/+17
| | | | See http://curl.haxx.se/mail/lib-2009-12/0107.html
* Removed function prototype without implementationYang Tse2009-12-111-4/+1
|
* - Constantine Sapuntzakis figured out a case which would lead to libcurlDaniel Stenberg2009-12-101-19/+28
| | | | | | | | accessing alredy freed memory and thus crash when using HTTPS (with OpenSSL), multi interface and the CURLOPT_DEBUGFUNCTION and a certain order of cleaning things up. I fixed it. (http://curl.haxx.se/bug/view.cgi?id=2891591)
* minor indent changeDaniel Stenberg2009-12-101-2/+2
|
* - Martin Storsjo made libcurl use the Expect: 100-continue header for postsDaniel Stenberg2009-12-071-2/+2
| | | | | with unknown size. Previously it was only used for posts with a known size larger than 1024 bytes.
* lib/nss.c: avoid use of uninitialized valueKamil Dudka2009-12-021-3/+3
|
* - If the Expect: 100-continue header has been set by the application throughDaniel Stenberg2009-12-011-9/+21
| | | | | | curl_easy_setopt with CURLOPT_HTTPHEADER, the library should set data->state.expect100header accordingly - the current code (in 7.19.7 at least) doesn't handle this properly. Martin Storsjo provided the fix!
* s/socklen_t/curl_socklen_t/gYang Tse2009-11-281-2/+2
|
* Fix compiler warning: unused variable `data'Yang Tse2009-11-281-2/+1
|
* - Markus Koetter provided a polished and updated version of Chad Monroe's TFTPDaniel Stenberg2009-11-272-217/+472
| | | | | | | | rework patch that now integrates TFTP properly into libcurl so that it can be used non-blocking with the multi interface and more. BLKSIZE also works. The --tftp-blksize option was added to allow setting the TFTP BLKSIZE from the command line.
* - Extended and fixed the change I did on Dec 11 for the the progressDaniel Stenberg2009-11-261-50/+54
| | | | | | meter/callback during FTP command/response sequences. It turned out it was really lame before and now the progress meter SHOULD get called at least once per second.
* refreshedDaniel Stenberg2009-11-241-19/+12
|
* - Constantine Sapuntzakis identified a write after close, as the sockets wereDaniel Stenberg2009-11-201-3/+5
| | | | | closed by libcurl before the SSL lib were shutdown and they may write to its socket. Detected to at least happen with OpenSSL builds.
* - Jad Chamcham pointed out a bug with connection re-use. If a connection hadDaniel Stenberg2009-11-201-0/+1
| | | | | | CURLOPT_HTTPPROXYTUNNEL enabled over a proxy, a subsequent request using the same proxy with the tunnel option disabled would still wrongly re-use that previous connection and the outcome would only be badness.
* Explicit initialization of all FTP struct members in ftp_init()Yang Tse2009-11-191-6/+10
|
* Fix compiler warning: ISO C90 forbids mixed declarations and codeYang Tse2009-11-181-2/+2
|
* Make memory tracking system intolerant with zero sized malloc(),Yang Tse2009-11-181-3/+14
| | | | calloc() and realloc() function calls.
* Make usage of calloc()'s arguments consistent with rest of code baseYang Tse2009-11-1816-22/+22
|
* - Constantine Sapuntzakis provided another fix for the DNS cache that couldDaniel Stenberg2009-11-171-45/+31
| | | | | | | | | | | | | end up with entries that wouldn't time-out: 1. Set up a first web server that redirects (307) to a http://server:port that's down 2. Have curl connect to the first web server using curl multi After the curl_easy_cleanup call, there will be curl dns entries hanging around with in_use != 0. (http://curl.haxx.se/bug/view.cgi?id=2891591)