summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/fetch.c
AgeCommit message (Expand)Author
2020-07-04Avoid malloc(3) calls in signal handlerkn
2020-07-04Fix a double free in error pathsJeremie Courreges-Anglas
2020-06-20Avoid one uninitialized warning in file_get()Jeremie Courreges-Anglas
2020-02-22Avoid duplication in the code that sends headersJeremie Courreges-Anglas
2020-02-22Respect userinfo even when built with NOSSL (floppy ramdisks)Jeremie Courreges-Anglas
2020-02-20Backout revision 1.190 partially. That part was an unintended change whichYASUOKA Masahiko
2020-02-19Fix http (not https) auth combined with proxy auth.Jeremie Courreges-Anglas
2020-02-19Don't put the userinfo in request URI. This also makes accessing aYASUOKA Masahiko
2020-02-13Two longjmp(3) vs volatile fixes and improvementsJeremie Courreges-Anglas
2020-02-13Fixes and tweaks for read/write loop in url_get()Jeremie Courreges-Anglas
2020-01-21Fix tls_handshake() usage which was added without checking return valuesBob Beck
2020-01-15Move local file handling out of url_get()Jeremie Courreges-Anglas
2019-12-19Prevent redirections to file: URLsJeremie Courreges-Anglas
2019-12-09Reinstate ftp_printf to log sent HTTP headersJeremie Courreges-Anglas
2019-12-09With NOSSL let url_get() print a nice error message for https urlsJeremie Courreges-Anglas
2019-12-08For chunked transfers always restore the SIGINFO handler (not just on error)Jeremie Courreges-Anglas
2019-12-05Fix #ifndef NOSSL vs SMALL inconsistenciesJeremie Courreges-Anglas
2019-12-02Tweak inaccurate commentJeremie Courreges-Anglas
2019-11-18various knf and whitespace; ok jcaTheo de Raadt
2019-11-14HTTP/1.1 for ftp(1)Jeremie Courreges-Anglas
2019-11-04Apply more 'static' to help the compilerJeremie Courreges-Anglas
2019-11-03Also use stdio for TLS connectionsJeremie Courreges-Anglas
2019-10-23change some error reports to include the failing URL (which we vis, inTheo de Raadt
2019-10-13Also close the server connection before retrying on a 503.Jeremie Courreges-Anglas
2019-10-13Factor out socket cleanup codeJeremie Courreges-Anglas
2019-10-09On a 503, only retry if "Retry-After: 0" is present.Jeremie Courreges-Anglas
2019-10-05Retry request once when receiving a 503Jeremie Courreges-Anglas
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-05-16Revert suni'ls ftp rewrite for now.Florian Obser
2019-05-12Move us from old ftp(1) to Sunil's new ftp(1). The necessary modificationskmos
2018-02-10Add TLS session support to ftp(1).Joel Sing
2018-02-07rename var 's' -> 'fd' to ease finding it in a long functionRichard Procter
2018-02-07eliminate close()/fclose() dance.Richard Procter
2017-09-25Initialize 'out' file descriptor to avoid possibleKenneth R Westerback
2017-03-07tls_close() can return TLS_WANT_POLLIN/TLS_WANT_POLLOUT, handle themSunil Nimmagadda
2017-03-02close ftp(1)'s output file to avoid leaking one FD per request.Stuart Henderson
2017-02-28Use a do{}while loop with ssize_t return value when calling tls_read()Philip Guenther
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
2017-01-20Move a couple of variables that are unused in SMALL under #ifndef SMALL.Kenneth R Westerback
2017-01-14HTTPS proxy support for ftp-ssl.Jeremie Courreges-Anglas
2017-01-10Pledge more strictly. This is only enabled on the ramdisk version of theTheo de Raadt
2017-01-07-#endif /* !SMALL */Theo Buehler
2017-01-03Add a "-w connect_timeout" option in support of URL-fetching. This allowsTheo de Raadt
2016-12-28Split -DSMALL into -DNOSSL, so that a SSL-enabled version of ftp canTheo de Raadt
2016-12-24Correctly handle tls_read()/tls_write().Joel Sing
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
2016-12-08Avoid splitting the "Requesting %s" printf and its trailing newline.Todd C. Miller
2016-12-08Avoid printf of a NULL pointer as a string in debug mode.Todd C. Miller
2016-08-20Use connect(2) + a connect_wait() function instead of connect_sync(),Todd C. Miller
2016-08-18Move connect_sync() to util.c and use it when connecting via httpTodd C. Miller