Commits


revert previous Somehow the compat for __dead is not working properly on macos (cirrus ci) since it complains that parse_debug() does not return a value in all control paths when it uses usage() (marked as __dead) to catch a wrong usage.


use __dead instead of __attribute__((noreturn))


gg: warn when the TLS layer is not closed properly various servers are not handling correctly the close notify so for the moment don't turn this into an hard error but just warn. Hopefully, given some time, most servers will be fixed. while here, drop the gotos and just use a break to exit the main loop.


avoid arithmetic on void pointers (GNU extension) not really sold on this one, I don't see what other interpretation could be given, but it's not standard so...


call setlocale()


always cast is*() arguments to unsigned char


remove -v from gg undocumented flag to dump to stdout the request before doing it. Not useful, it's debugging leftover.


specify custom version strings for the various cmds


s/whole/all


shuffle the code a bit to improve readability


fix and sync gg usage


reimplement gg This is a better version of gg. Initially it grew with flags directly needed to the specific test cases I wanted to write, so it's ugly to use but handy for tests. This is a new and re-thought implementation that it is (hopefully) easier to use both and "curl-like for gemini" but also for scripts and tests cases. One completely new feature is the proxying support with -P to send the request to the given host.