Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | libfetch now depends on libcrypto and libssl. | ru | 2002-06-06 | 1 | -5/+6 |
| | |||||
* | Make SSL support conditional on NOCRYPT. | des | 2002-06-05 | 4 | -0/+21 |
| | |||||
* | During buildworld, "regular" libraries are built before crypto stuff, so | des | 2002-06-05 | 1 | -2/+2 |
| | | | | | libfetch can't depend on lib{crypto,ssl}. Move the dependency to fetch until we can figure out how to fix this. | ||||
* | Add SSL support + slight cleanup. | des | 2002-06-05 | 4 | -20/+78 |
| | | | | Submitted by: Henry Whincup <henry@techiebod.com> (in principle) | ||||
* | Wrap everything in struct connection, and enforce timeouts everywhere | des | 2002-06-05 | 4 | -113/+204 |
| | | | | | (except for DNS operations). Always use funopen() for HTTP, to support both timeouts and SSL. | ||||
* | Add the necessary dependencies for SSL. | des | 2002-06-05 | 1 | -0/+2 |
| | |||||
* | Rename struct cookie to struct httpio to avoid confusion (it's not an HTTP | des | 2002-06-05 | 1 | -50/+50 |
| | | | | cookie) and increase symmetry with equivalent FTP code. | ||||
* | Add comments to struct cookie. | des | 2002-06-05 | 1 | -8/+8 |
| | |||||
* | Fix a bug I introduced in the chunk decoder in the previous commit.. | des | 2002-06-05 | 1 | -1/+1 |
| | |||||
* | First step towards SSL support: wrap connections in a 'struct connection' | des | 2002-06-05 | 4 | -196/+255 |
| | | | | | | | | | | which contains the socket descriptor, the input buffer and (yet unused) SSL state variables. This has the neat side effect of greatly improving reentrance (though we're not *quite* there yet) and opening the door to HTTP connection caching. This commit is inspired by email conversations with and patches from Henry Whincup <henry@techiebod.com> last fall. | ||||
* | Do not use __progname directly (except in [gs]etprogname(3)). | markm | 2002-03-29 | 1 | -3/+1 |
| | | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland. | ||||
* | Modernize my email address | phk | 2002-03-25 | 1 | -1/+1 |
| | |||||
* | Switch to a self-starting allocation scheme. | des | 2002-02-05 | 1 | -10/+3 |
| | |||||
* | Reindent, and add parentheses to return statements. Some functions in | des | 2002-02-05 | 8 | -1989/+1997 |
| | | | | | ftp.c and http.c now have exceedingly long lines due to deep nesting; this will be corrected by reorganizing the code in a later revision. | ||||
* | Eliminate a redundant loop. | des | 2002-02-05 | 1 | -2/+1 |
| | |||||
* | Check the return value from read() when reading the CR/LF at the end of a | des | 2002-01-20 | 1 | -2/+4 |
| | | | | | | | chunk. PR: bin/33608 MFC after: 2 weeks | ||||
* | Mark uploads as O_WRONLY, not O_RDONLY. | des | 2002-01-20 | 1 | -2/+6 |
| | | | | | PR: misc/34043 MFC after: 2 weeks | ||||
* | Remove long-obsolete README. | des | 2002-01-01 | 1 | -10/+0 |
| | |||||
* | In verbose mode, display the full error message from the server, stripping | des | 2002-01-01 | 1 | -3/+48 |
| | | | | | | | it of HTML tags and comments. PR: bin/32989 MFC after: 1 week | ||||
* | Remove VT100 escapes from debugging messages now that they're enabled by | des | 2002-01-01 | 4 | -22/+21 |
| | | | | | | | default. PR: 32988 MFC after: 3 days | ||||
* | Don't build with NDEBUG. | des | 2001-12-09 | 1 | -3/+0 |
| | | | | | PR: bin/32615 MFC after: 1 week | ||||
* | Conditionalize some debugging code that didn't use the DEBUG macro. | des | 2001-12-09 | 1 | -8/+10 |
| | | | | MFC after: 1 week | ||||
* | Introduce a fetchDebug global. Change the DEBUG macro so it only runs the | des | 2001-12-09 | 3 | -1/+5 |
| | | | | | | | debugging code if fetchDebug is set. PR: bin/32615 MFC after: 1 week | ||||
* | Properly handle being redirected to an FTP URL. | des | 2001-12-04 | 1 | -1/+10 |
| | | | | | | | | | Also fix a couple of not-so-minor bugs: - missing case for HTTP_SEE_OTHER - incorrect definition of HTTP_NEED_PROXY_AUTH PR: 20259 MFC after: 2 weeks | ||||
* | Add prototype for _ftp_request(). | des | 2001-12-04 | 1 | -4/+8 |
| | |||||
* | Reorganize to reduce code duplication. | des | 2001-12-04 | 1 | -64/+32 |
| | |||||
* | Add NO_WERROR so the build won't die because of discarded qualifiers | des | 2001-10-19 | 1 | -0/+2 |
| | |||||
* | Back out part of previous commit which was gcc-centric | des | 2001-10-19 | 1 | -2/+2 |
| | |||||
* | Tons of type, style and warning fixes that have been rotting in my tree for | des | 2001-10-18 | 5 | -70/+101 |
| | | | | | ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were willing to do something (-fno-builtin) about it. | ||||
* | mdoc(7) police: Use the new .In macro for #include statements. | ru | 2001-10-01 | 1 | -3/+3 |
| | |||||
* | Add __FBSDID()s to libfetch | dillon | 2001-09-30 | 5 | -10/+15 |
| | |||||
* | Use fseeko() instead of fseek() (u->offset is already an off_t), and mark | des | 2001-09-05 | 1 | -4/+4 |
| | | | | some function arguments as unused. | ||||
* | Handle snprintf() returning < 0 (not just -1) | brian | 2001-08-20 | 1 | -1/+1 |
| | | | | MFC after: 2 weeks | ||||
* | Handle snrintf overflows. | brian | 2001-08-20 | 1 | -0/+2 |
| | | | | Spotted by: bde | ||||
* | Handle snprintf() returning -1. | brian | 2001-08-20 | 1 | -1/+2 |
| | | | | MFC after: 2 weeks | ||||
* | The fix for schemeless and hostless URLs (rev. 1.27) broke the schemeless | se | 2001-07-28 | 1 | -1/+2 |
| | | | | | | | | | proxy specification, which seems to be valid according to the man page. Change the logic to consider "hostname:port" a hostname and port instead of a file URL. Approved by: des | ||||
* | Unbreak parsing URLs that have a host part but no document part. | des | 2001-07-17 | 1 | -2/+3 |
| | | | | While we're here, fix a snprintf() usage warning. | ||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -19/+19 |
| | |||||
* | mdoc(7) police: remove extraneous .Pp before and/or after .Sh. | dd | 2001-07-09 | 1 | -1/+0 |
| | |||||
* | Handle shemeless, hostless URLs correctly. | des | 2001-07-08 | 1 | -3/+5 |
| | |||||
* | mdoc(7) police: fixed markup and typo. | ru | 2001-07-05 | 1 | -16/+16 |
| | |||||
* | Don't call _ftp_closefn() upon EOF in _ftp_readfn(); just return 0. This | des | 2001-06-11 | 1 | -1/+1 |
| | | | | fixes a bug in pkg_add(1) (which nobody noticed because of another bug). | ||||
* | Implement a HTTP_USER_AGENT environment variable. | des | 2001-05-27 | 2 | -1/+8 |
| | | | | | PR: 27669 Submitted by: Eoin Lawless <eoin@maths.tcd.ie> | ||||
* | Document the authentication callback interface. | des | 2001-05-26 | 1 | -3/+42 |
| | | | | Update RFC references (should have done that ages ago...) |