aboutsummaryrefslogtreecommitdiff
path: root/titan.c
AgeCommit message (Collapse)Author
2024-01-08titan: accept either one or two positional argumentsOmar Polo
2024-01-08titan: usage and exit on unknown flagsOmar Polo
2023-08-04titan: clean up IRI/URI/URL mess; it's a IRI what we parseOmar Polo
2023-08-04titan: error if the URI is not titan://Omar Polo
2023-08-04titan: better logging for unexpected EOFsOmar Polo
upon an unexpected EOF, tls_error() returns NULL, so log the real reason iomux returned -1.
2023-08-04titan: rename parse_err to errstrOmar Polo
2023-08-04titan: iomux: return -1 on EOF without receving anythingOmar Polo
otherwise it enters an infinite loop where it tries to read, return zero, and tries again...
2023-08-04titan: fix appending of path parametersOmar Polo
the parameters need to be added at the end of the path, not at the end of the URL.
2023-07-24titan: parse the response code and exit accordinglyOmar 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-24run tls_connect_socket() after dropping the "inet dns" pledge promisesOmar Polo
2023-07-24read from stdin if no file is givenOmar Polo
2023-07-22titan: add compat shims to compile on !OpenBSDOmar Polo
2023-07-22add titan(1) -- a draft titan clientOmar Polo