summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/fetch.c
AgeCommit message (Expand)Author
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
2016-05-27Per the libtls man page, tls_init() must be called prior to any otherJoel Sing
2016-05-06Remove #ifdef INET6 bits, missed in a commit earlier this weekJeremie Courreges-Anglas
2016-01-28Fix a crash when a server sends a non-standard newline ("\n" instead of "\r\n").martijn
2016-01-08Handle redirects to _relative_ URIs containing '://', e.g. for archive.org.Stuart Henderson
2015-10-13ctype functions isxdigit() expect an unsigned char value; add missing castsPhilip Guenther
2015-09-10Unbreak ftp(1) after tls_read()/tls_write() change.Joel Sing
2015-09-10fix after libtls api changesBob Beck
2015-09-09Make sure we check TLS_WRITE_AGAIN when calling tls_read() and ifJoel Sing
2015-07-18Handle short writes and TLS_{READ,WRITE}_AGAIN around tls_write().Alexander Bluhm
2015-02-27Fix URL-encoding of characters with the high order bit set.Jeremie Courreges-Anglas
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2015-01-12Fetching port distfiles with the ftp command from githup did notAlexander Bluhm
2014-11-25set ttyout to line buffered, because the signal handler writes areTheo de Raadt
2014-10-31Update ftp(1) to use libtls instead of libressl.Joel Sing
2014-10-30use ressl constant; from Jan KlemkowTed Unangst
2014-10-08userland reallocarray audit.Doug Hogan
2014-10-06Amend previous commit to unbreak TLS cert validation when using a proxy.Jeremie Courreges-Anglas
2014-10-04Be sure to only path the remote host to ressl_connect_socket(), without aMiod Vallat
2014-08-25you broke the ramdisk builds...Theo de Raadt
2014-08-25When using a proxy for an https connection, validate the cert hostnameJeremie Courreges-Anglas
2014-08-21Fix double free. ok guenther@Jeremie Courreges-Anglas
2014-07-14Convert ftp(1) to libressl, rather than rolling in^W^Whand rolling libssl.Joel Sing
2014-07-11simplify and slightly tweak user agent handlingAlexander Hall
2014-07-11Allow ftp(1) to change its User-Agent for HTTP(S) URL requests using aLawrence Teo
2014-07-05Given an http or https URL with user and password, URL-decode the userPhilip Guenther
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2014-05-19X509_free() the certificate if the server hostname check fails.Jeremie Courreges-Anglas
2014-05-19Explicitely initialize two static variables introduced in the previousJeremie Courreges-Anglas
2014-05-19HTTPS connections may see redirects, so initialize libcrypto and libsslJeremie Courreges-Anglas
2014-04-09If TLS validation is on, retrieve the server TLS certificate andJeremie Courreges-Anglas
2014-03-30SNI support. ok guenther@ sthen@Jeremie Courreges-Anglas
2014-03-30Check the return value from SSL_CTX_set_cipher_list(), for consistency.Jeremie Courreges-Anglas
2014-03-30SSLeay_add_ssl_algorithms() is just a #define for SSL_library_init(), soJeremie Courreges-Anglas