Commits
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
b8ec3578cd7c8dd902282fa1253fffc74fd615f0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
catch fs_init() and certs_init() failures
- Commit:
71bc16365736f1cc3212d46f3947806c1e33867b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add client_cert_temp flag to the struct tab
This way we can improve unload-certificate prompt. While here,
move the cert handling in make_request().
- Commit:
d163c2104eb8f8603c4dfc4c9ad566511eac143b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move tofu declarations to their own header
While here replace GEMINI_URL_LEN with TOFU_URL_MAX_LEN to avoid a
dependency on telescope.h. Ideally, we should move this stuff to
another header that comes with less dependencies.
- Commit:
f7db6d139bba0fb56f0560533b77af219958ecc0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
some headers cleanup
try to not include headers from headers, and remove some redundant
include.
This helps in modularizing the codebase and also helps during
incremental compilations.
- Commit:
d252d87ccdef3bf3619959f93601a9e74ffcc28f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include cmd.h only where it is really needed
- Commit:
5a39f5931f4b5be1d57d75c7f25cff8adae5f235
- From:
- Omar Polo <op@omarpolo.com>
- Date:
load and optionally remember client certificates
This adds use-certificate, a user function to start using a certificate
or switch to a different one. It asks whether to persist the
certificate, if not it will only be used for the current session.
use-certificate is implicitly called when the server replies with
a 6x status code.
- Commit:
d35e18b31b0e05c6178a6bfa891dd2e2dadf3db1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
first draft of client certificate support
At the moment telescope loads a mapping host:port/path -> certificate
from a file and always uses it, no ways to change it, use a temporary
one, generate a new one, etc are provided yet.
The format of ~/.telescope/certs/certs is
host port path certificate file name
where the certificate file name is the name of a file inside
~/.telescope/certs.
~/.telescope/certs/ is ~/.local/share/telescope/ when using XDG.
- Commit:
d2734f084af031fafd9d269c6f91b70460772e68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move fs_init() closer to config_init()
- Commit:
5014b6a91e4396e591ecf7eded23cc56cdd3c3a0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve error message
- Commit:
ef88dc160098828b9fbdc0a7041b0c3ec8462e3a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
too much -> too many redirects
- Commit:
62cbcdae43d424ecc31a54bd67fd22a7120bf9fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove imsg_borrow_str
it's redundant due to ibuf_borrow_str()
- Commit:
54764e41a11e16a56da805313f209a9937c5173d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
send the reply code and meta in a single imsg
- Commit:
b148be7145ec930043173b11be95bf6327d3b598
- From:
- Omar Polo <op@omarpolo.com>
- Date:
inline dispatch_imsg(); start to use some newer imsg api
- Commit:
b10ba33158d0b4b0454610a76db67e278f909956
- From:
- Omar Polo <op@omarpolo.com>
- Date:
save finger:// and gopher:// URLs to the history
gemini is handled when the 2x reply is received. Gopher and Finger
lack an equivalent, so call history_add() for them at EOF.