Commits


switch to phos_uri Initially I took the IRI parser from gmid, stripped of the UTF-8 things and transformed back into a URI parser. Then I've added some functions to resolve URIs, but it wasn't enough. gmid parser is aimed at servers, and so it doesn't handle very well relative links. This makes use of the libphos uri parser, which was coded to follow the RFC more strictly, and to fully support all kinds of URIs. It'll need to be expanded in the future and be improved for sure


drop pid from the proc title


switch yornp_cb data back to an unsigned int it bothers me to keep alive a pointer inside a struct tab.


save session and reload it on startup


add extra parameter to yornp


free page contents on do_load_link to do that, move empty_vlist to wrap.c and provide a similar function for struct line*s.


add y-or-n-p; ask user when encountering invalid certs


big refactor: introduce the window abstraction - commands now take a struct window* instead of a raw tab - the struct ui_state is gone - using a window for the minibuffer too helps avoid code duplication - it will let us having more than one window on a tab! :DD It doesn't seem to have broken anything...


fix warnings


take an initial URL as first positional argument


don't include <err.h>, use the compat layer


persist certificate hashes to the known_hosts file


starting to implement TOFU popuplate an hash table with the certs and keep it in memory. Later, store the table in ~/.telescope/known_hosts and re-read back during startup.


(initial) add trust status following gemini://thfr.info/gemini/modified-trust-verify.gmi


de-duplication: factorize dispatch_imsg