Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add an EXAMPLES section. | trhodes | 2003-06-10 | 1 | -0/+22 |
| | | | | | PR: 43899 Reviewed by: des, ru | ||||
* | Assorted mdoc(7) fixes. | ru | 2003-05-22 | 1 | -1/+1 |
| | | | | Approved by: re (blanket) | ||||
* | Retire the useless NOSECURE knob. | des | 2003-05-19 | 1 | -1/+1 |
| | | | | Approved by: re (scottl) | ||||
* | Mark libfetch as c99-clean. Always build at WARNS level 2 rather than | des | 2003-05-01 | 1 | -2/+2 |
| | | | | | juggling with levels 2 and 3, as this has lead to world breakage for NOCRYPT users in the past. | ||||
* | Don't dereference flags if NULL (see http.c rev 1.87) | des | 2003-03-29 | 1 | -1/+1 |
| | |||||
* | The flags passed in to _ftp_get_proxy may be null | mtm | 2003-03-19 | 1 | -1/+1 |
| | | | | Approved by: des, markm (mentor)(implicit) | ||||
* | Don't parse the proxy URL unless we're actually going to use it. No real | des | 2003-03-11 | 2 | -8/+16 |
| | | | | functional difference, but debugging output will be less confusing. | ||||
* | Add and document support for a FETCH_BIND_ADDRESS environment variable | des | 2003-03-03 | 3 | -4/+37 |
| | | | | | | specifying a local address to bind sockets to. Caveat: lightly tested. PR: bin/37572 | ||||
* | No need for the OPENSSL_NO_KRB5 switch anymore. | markm | 2003-01-31 | 1 | -1/+1 |
| | | | | Fixed by: nectar | ||||
* | Adjust for OpenSSL 0.9.7. | markm | 2003-01-28 | 1 | -1/+1 |
| | |||||
* | style(9): add parentheses to sizeof even when not strictly required. | des | 2003-01-28 | 5 | -22/+22 |
| | | | | MFC after: 3 days | ||||
* | Fix signed/unsigned comparison warning/error from 'make release' | jwd | 2003-01-28 | 1 | -4/+4 |
| | |||||
* | Document .netrc support. | des | 2003-01-22 | 1 | -0/+8 |
| | |||||
* | Hook in the .netrc code + don't use pointers as if they were booleans. | des | 2003-01-22 | 1 | -4/+6 |
| | |||||
* | Experimental support for .netrc. | des | 2003-01-22 | 2 | -0/+92 |
| | |||||
* | Initialization paranoia. | des | 2003-01-22 | 1 | -0/+8 |
| | |||||
* | A negative offset means "get it all". | des | 2003-01-22 | 1 | -2/+2 |
| | |||||
* | Set auto-retry mode to avoid some spurious errors. | des | 2003-01-03 | 1 | -0/+1 |
| | | | | | Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com> MFC after: 7 days | ||||
* | english(4) police. | schweikh | 2002-12-27 | 1 | -2/+2 |
| | |||||
* | Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64. | jake | 2002-12-04 | 1 | -1/+1 |
| | | | | | | | This may only be turning up now to changes in the cpp predefines for sparc64, which may be turning on more strict alignment checking. Approved by: re | ||||
* | Implement and document support for an HTTP_REFERER environment variable. | des | 2002-11-28 | 2 | -12/+26 |
| | | | | | | | PR: 28171 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Approved by: re (bmah) MFC after: 1 week | ||||
* | Fix two typos. | fenner | 2002-11-08 | 1 | -2/+2 |
| | |||||
* | Use __func__ and break a long line. | des | 2002-10-30 | 1 | -5/+4 |
| | |||||
* | Fix a bug in fenner's _fetch_writev() patch (rev 1.36) | des | 2002-10-30 | 1 | -1/+6 |
| | | | | Submitted by: fenner | ||||
* | Recognize the (incorrect) error code a MediaHawk server sends in reply to | des | 2002-10-30 | 1 | -0/+1 |
| | | | | | | unrecognized commands such as MDTM. Requested by: Stephen Roome <stephen_roome@pepcross.com> | ||||
* | Clarify my feelings towards fetch / libfetch. | des | 2002-10-30 | 1 | -1/+0 |
| | |||||
* | Recommit the non-broken parts of 1.34 and 1.37. | des | 2002-10-30 | 1 | -6/+11 |
| | | | | Change the type and name of a variable introduced in 1.33. | ||||
* | Don't forget to set the error flag when _fetch_read() returns -1. | des | 2002-10-30 | 1 | -2/+6 |
| | |||||
* | Reinstate revs 1.35-36 and 1.38. Revisions 1.34 and 1.37 were specifically | imp | 2002-10-30 | 1 | -12/+38 |
| | | | | | | | | the root cause of the bus errors I was experiencing. Submitted by: fenner Tested by: obrien Prompted by: peter | ||||
* | Fix `pkg_add -r' by backing out revs 1.34-1.38. | obrien | 2002-10-29 | 1 | -52/+19 |
| | | | | | Revs 1.37-8 produce a bus error in some environments. Revs 1.34-6 do not bus error, but write corrupted files. | ||||
* | libfetch is now WARNS5 clean in the non-SSL case. | des | 2002-10-28 | 1 | -1/+1 |
| | |||||
* | Fix an off-by-one error (> where >= should have been used) which caused | des | 2002-10-28 | 1 | -6/+5 |
| | | | | | | | | | _fetch_writev() to incorrectly report EPIPE in certain cases. Also fix a number of const warnings by using __DECONST(), plus a signed / unsigned comparison by casting the rhs to ssize_t. Submitted by: fenner, Craig Rodrigues <rodrigc@attbi.com> | ||||
* | Up WARNS to 3 if not building with crypto. | fenner | 2002-10-28 | 1 | -1/+3 |
| | | | | Approved by: des | ||||
* | Slight amendment to rev 1.34: instead of considering any short read an | des | 2002-10-27 | 1 | -6/+8 |
| | | | | | | error, only report an error if no data was read at all (unless len was 0 to start with). Otherwise, the final read of practically any transfer will end in a fatal error. | ||||
* | Introduce _fetch_writev(), which is the conn_t version of writev(2). In | des | 2002-10-27 | 2 | -7/+38 |
| | | | | | | | | | | | | | | the SSL case, it is no different from the old _fetch_write(), but in the non-SSL case it uses writev(2) to send the entire vector as a single packet (provided it can fit in one packet). Implement _fetch_write() and _fetch_putln() in terms of _fetch_writev(). This should improve performance in the non-SSL case (by reducing protocol overhead) and solve the problem where too-smart-for-their-own-good firewalls reject FTP packets that do not end in CRLF. PR: bin/44123 Submitted by: fenner | ||||
* | Eliminate two cases of undefined behaviour: total in _fetch_write() was | des | 2002-10-27 | 2 | -0/+2 |
| | | | | | | | | not initialized before use, and _http_growbuf() did not return a value on success. Reported by: Peter Edwards <pmedwards@eircom.net> MFC after: 2 weeks | ||||
* | Back out the previous commit, and fix the bug rather than try to hide its | des | 2002-10-27 | 1 | -10/+18 |
| | | | | | | | symptoms: make timeouts and short transfers fatal, and set errno to an appropriate value (ETIMEDOUT for a timeout, EPIPE for a short transfer). MFC after: 2 weeks | ||||
* | The FTP connection caching needs a better interface -- connections are | njl | 2002-10-25 | 1 | -0/+4 |
| | | | | | | | | | | | | | closed through _fetch_close() which is the only one who knows the connection REALLY was closed (since ref -> 0). However, FTP keeps its own local cached_connection and checks if it is valid by comparing it to NULL. This is bogus since it may have been freed elsewhere by _fetch_close(). This change checks if we are closing the cached_connection and the ref is 1 (soon to be 0). If so, set cached_connection to NULL so we don't accidentally reuse it. The REAL fix should be to move connection caching to the common.c level (_fetch_* functions) and NULL the cache(s) in _fetch_close(). Then all layers could benefit from caching. | ||||
* | Use a warns setting we can catch regressions with. | obrien | 2002-10-20 | 1 | -3/+1 |
| | |||||
* | When recycling a cached connection, increment the reference count so that | tjr | 2002-10-20 | 1 | -1/+1 |
| | | | | | the heap block does not get freed and reused. This should fix the pkg_add -r crashes that have been happening for months. | ||||
* | HTTP authentication got broken in rev. 1.49. | ru | 2002-10-03 | 1 | -4/+4 |
| | |||||
* | Zap now-unused SHLIB_MINOR | peter | 2002-09-28 | 1 | -1/+0 |
| | |||||
* | Fix an infinite loop when _fetch_read() can return 0 (if the | alfred | 2002-09-20 | 1 | -1/+5 |
| | | | | | connection is broken), take this into account and return at this point. | ||||
* | Make _fetch_connect() always set the error code. | fenner | 2002-09-17 | 2 | -4/+5 |
| | | | | Tell ftp that _fetch_connect() always sets the error code (http already knew) | ||||
* | Surround prototypes with __BEGIN_DECLS / __END_DECLS. | des | 2002-07-22 | 1 | -0/+4 |
| | | | | | PR: misc/40399 MFC after: 3 days | ||||
* | Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach | ume | 2002-07-02 | 1 | -0/+1 |
| | | | | | | | scope identifier). Approved by: des MFC after: 3 weeks | ||||
* | Reintroduce debugging code that somehow got lost in a previous revision. | des | 2002-06-24 | 1 | -0/+2 |
| | |||||
* | Fix incorrect library ordering. I thought I'd committed this already... | des | 2002-06-21 | 1 | -2/+2 |
| | |||||
* | Don't try to dereference conn when we know it's NULL. | des | 2002-06-19 | 1 | -2/+5 |
| | |||||
* | Add a reference count to struct fetchconn so we don't prematurely close and | des | 2002-06-11 | 3 | -1/+22 |
| | | | | free a cached FTP connection. |