Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-06-17 | titan: add missing include | Omar Polo | |
2024-06-17 | titan: introduce xasprintf | Omar Polo | |
2024-06-17 | titan: improve error checking | Omar Polo | |
Not only the reading, but the writing can fail too so bail out early in that case. Also, even if it's just a pro forma, check the error flag on stdin too. | |||
2024-01-08 | titan: accept either one or two positional arguments | Omar Polo | |
2024-01-08 | titan: usage and exit on unknown flags | Omar Polo | |
2023-08-04 | titan: clean up IRI/URI/URL mess; it's a IRI what we parse | Omar Polo | |
2023-08-04 | titan: error if the URI is not titan:// | Omar Polo | |
2023-08-04 | titan: better logging for unexpected EOFs | Omar Polo | |
upon an unexpected EOF, tls_error() returns NULL, so log the real reason iomux returned -1. | |||
2023-08-04 | titan: rename parse_err to errstr | Omar Polo | |
2023-08-04 | titan: iomux: return -1 on EOF without receving anything | Omar Polo | |
otherwise it enters an infinite loop where it tries to read, return zero, and tries again... | |||
2023-08-04 | titan: fix appending of path parameters | Omar Polo | |
the parameters need to be added at the end of the path, not at the end of the URL. | |||
2023-07-24 | titan: parse the response code and exit accordingly | Omar Polo | |
Exit with 0 if the response code was in the 2x or 3x range, or with 2 for other codes. It already exits with 1 upon any other error (including parsing errors.) Print the redirect code on 3x to stdout and the meta to stderr for the 1x, 4x, 5x and 6x ranges. | |||
2023-07-24 | run tls_connect_socket() after dropping the "inet dns" pledge promises | Omar Polo | |
2023-07-24 | read from stdin if no file is given | Omar Polo | |
2023-07-22 | titan: add compat shims to compile on !OpenBSD | Omar Polo | |
2023-07-22 | add titan(1) -- a draft titan client | Omar Polo | |