Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-09 | Reinstate ftp_printf to log sent HTTP headers | Jeremie Courreges-Anglas | |
On SMALL builds ftp_printf is just a #define to avoid a size increase. ok millert@ | |||
2019-12-09 | With NOSSL let url_get() print a nice error message for https urls | Jeremie Courreges-Anglas | |
Input from deraadt@ | |||
2019-12-08 | For chunked transfers always restore the SIGINFO handler (not just on error) | Jeremie Courreges-Anglas | |
Overlooked when shuffling the HTTP/1.1 code. | |||
2019-12-05 | Fix #ifndef NOSSL vs SMALL inconsistencies | Jeremie Courreges-Anglas | |
from Hiltjo Posthuma | |||
2019-12-02 | Tweak inaccurate comment | Jeremie Courreges-Anglas | |
2019-11-18 | various knf and whitespace; ok jca | Theo de Raadt | |
2019-11-14 | HTTP/1.1 for ftp(1) | Jeremie Courreges-Anglas | |
Some sites in ports start to reject HTTP/1.0 requests. Let's move on and implement HTTP/1.1. Should fit in ramdisks. ok sthen@ tb@ | |||
2019-11-04 | Apply more 'static' to help the compiler | Jeremie Courreges-Anglas | |
Results in better code and a size decrease. | |||
2019-11-03 | Also use stdio for TLS connections | Jeremie Courreges-Anglas | |
Set up two wrappers around tls_read/write to be used along with the not-very-portable funopen(). This kills a bunch of local code, always a nice thing for an utility which ends up in bsd.rd. "seems legit" deraadt@, ok kn@ | |||
2019-10-23 | list -N before -n in the options list; | Jason McIntyre | |
2019-10-23 | Add new -N name option, so that calling scripts can change the | Theo de Raadt | |
progname and produce better error messages discussed with aja and jca | |||
2019-10-23 | change some error reports to include the failing URL (which we vis, in | Theo de Raadt | |
case it came via a redirect) some help from jca, discussed with aja | |||
2019-10-15 | When setting the modification time on the retrieved file, use utimensat() | Philip Guenther | |
with UTIME_OMIT for the atime, instead of setting the atime to the current time. ok jca@ cheloha@ | |||
2019-10-13 | Also close the server connection before retrying on a 503. | Jeremie Courreges-Anglas | |
Keeping it around uses both local and remote resources for no good reason. ok job@ | |||
2019-10-13 | Factor out socket cleanup code | Jeremie Courreges-Anglas | |
As a side effect this shuts down the TLS connection before closing the underlying socket for redirectionss. ok job@ | |||
2019-10-09 | On a 503, only retry if "Retry-After: 0" is present. | Jeremie Courreges-Anglas | |
We just bail out if the header is absent or if the server tells us to wait. Prodding from job@, ok sthen@ deraadt@ | |||
2019-10-05 | Retry request once when receiving a 503 | Jeremie Courreges-Anglas | |
Basic implementation: we just retry once, and make no attempt (yet) to parse any Retry-After header. The idea is to work around cdn.openbsd.org sometimes replying with a 503 for reasons unknown. According to juanfra@ it sets "Retry-After: 0" so this minimal implementation should be enough. Different diff from espie@, test case from sthen@, input from millert@, ok millert@ deraadt@ | |||
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo de Raadt | |
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | |||
2019-06-28 | mkstemp() returns -1 on failure | Theo de Raadt | |
2019-05-16 | Revert suni'ls ftp rewrite for now. | Florian Obser | |
We are juggling too many things at the moment and we can't deal with the differences in behaviour right now. | |||
2019-05-15 | Display "bytes received" like the csrg ftp used to when the progressbar | Florian Obser | |
is disabled. Difference pointed out by deraadt OK kurtm, sunil | |||
2019-05-15 | Add the -m flag to the ftp.1 man page. | kmos | |
Adjust the usage message of ftp(1) to reflect its two operating modes and list missing flags. OK florian@ jmc@ | |||
2019-05-14 | do not intermingle direct io (write), and potentially buffered io (stdio) | Theo de Raadt | |
against the same outputs ok kmos florian | |||
2019-05-14 | Document -v | Florian Obser | |
2019-05-14 | -v forces verbose mode even if stdin is not a terminal | Florian Obser | |
Found the hard way by bluhm Debugged with deraadt & bluhm | |||
2019-05-14 | Enable TLSv1.0 and TLSv1.1 | Jeremie Courreges-Anglas | |
Like the old ftp. Discussed with at least with tedu@ "We should match existing behavior at least for now" | |||
2019-05-14 | Remove an unused and leftover label. | Sunil Nimmagadda | |
2019-05-14 | tls_write(3): Handle short writes. | Sunil Nimmagadda | |
Ok jca@ | |||
2019-05-13 | ephermal -> ephemeral | Theo Buehler | |
From Hiltjo Posthuma | |||
2019-05-12 | Fix double free by nulling out pointers after free. | Theo Buehler | |
from florian, ok jca | |||
2019-05-12 | Make the "xx bytes received in y time" message go to the right place | kmos | |
by using the login_info() function the other messages use. OK florian@ | |||
2019-05-12 | zap confusing unneeded parameters | Marc Espie | |
okay jca@, jasper@ | |||
2019-05-12 | Repair ftp -o - and thus pkg_add: print informational messages on stderr | Jeremie Courreges-Anglas | |
ok florian@ espie@ | |||
2019-05-12 | It will show up in 6.6. | Florian Obser | |
2019-05-12 | add rcs ids | Jasper Lievisse Adriaanse | |
2019-05-12 | Move us from old ftp(1) to Sunil's new ftp(1). The necessary modifications | kmos | |
have been made to make it behave. Any new misbehaviors can be fixed in tree. OK florian@ deraadt@ "Have you committed ftp yet?" | |||
2019-05-09 | ftp makes a new connection for each auto-fetch file. Remove a lie claiming | Christian Weisgerber | |
otherwise. ok tb@ tedu@ | |||
2018-02-10 | Add TLS session support to ftp(1). | Joel Sing | |
If a session file is specified via the `-S session=...', ftp(1) will attempt to resume TLS sessions based on the session data contained within this file. Upon completion of a successful TLS handshake the session file will be updated with new session data, if available. Discussed with deraadt@ and beck@. Requested by and input from espie@. | |||
2018-02-07 | rename var 's' -> 'fd' to ease finding it in a long function | Richard Procter | |
ok tb@ deraadt@ | |||
2018-02-07 | eliminate close()/fclose() dance. | Richard Procter | |
ok tb@ deraadt@ | |||
2018-01-24 | Use closefrom(3) instead of manually closing all file descriptors | Theo Buehler | |
between 3 and 19. ok martijn, millert, jca | |||
2017-12-23 | Use the monotonic clock for logging progress in cdio(1) and ftp(1). | cheloha | |
Keeps the progress log from blipping or stalling if, e.g., the system time is changed in the midst of a rip or a transfer. ok tb@ jca@ | |||
2017-09-25 | Initialize 'out' file descriptor to avoid possible | Kenneth R Westerback | |
uninitialized use. Spotted by clang during 'make release', triggered when both NOSSL and SMALL are defined. ok bluhm@ deraadt@ | |||
2017-09-05 | Avoid a possible leak in progressmeter | Jeremie Courreges-Anglas | |
From Scott Cheloha, ok bluhm@ | |||
2017-08-01 | Remove self assignment. | anton | |
ok deraadt@ | |||
2017-03-07 | tls_close() can return TLS_WANT_POLLIN/TLS_WANT_POLLOUT, handle them | Sunil Nimmagadda | |
appropriately. Ok jca@ | |||
2017-03-02 | close ftp(1)'s output file to avoid leaking one FD per request. | Stuart Henderson | |
ok deraadt | |||
2017-02-28 | Use a do{}while loop with ssize_t return value when calling tls_read() | Philip Guenther | |
problem noted by and ok jsg@ | |||
2017-01-25 | cetificate -> certificate; | Jason McIntyre | |
2017-01-24 | Add -S noverifytime to ftp to permit an unvalidated TLS connection when | Bob Beck | |
you don't knwo what time it is |