Commit Graph

7 Commits

Author SHA1 Message Date
Érico Rolim a39d94dd32 Add very simple gemini client.
Probably won't continue work on this, since I discovered.
https://github.com/MasterQ32/gurl . It also can't use TOFU, depends on
proper certificate chain.

Also fixed up makefile.

The changes here at least make it possible to support protocols other
than HTTP in the receiving functions.
2020-09-18 19:52:42 -03:00
Érico Rolim a99b5380a1 Add configure script to make it work on BSD.
We could use `extern const char *__progname` to work on musl/glibc and
BSDs, but it's not a recommended interface, and they prefer
getprogname(). In the interest of proper platform usage, use
getprogname() on BSD and program_invocation_short_name on musl/glibc.

Supporting arc4random_buf and getrandom is pretty simple.

Hasn't been tested on an actual BSD platform.
2020-09-14 10:20:48 -03:00
Érico Rolim d5ce01c91f Add install target and symlinks.
purr can be symlinked to meow and meowd, in which cases it has special
behavior.
2020-09-14 01:16:14 -03:00
Érico Rolim 593aaabfec Add external libbaseencode. 2020-09-13 01:06:29 -03:00
Érico Rolim 5b7ec3ead5 Implement print_hex to print byte buffers.
Also add tests for it.
2020-09-12 23:30:13 -03:00
Érico Rolim f3069bb932 Split functionality into different files. 2020-09-10 23:33:52 -03:00
Érico Rolim e1ffd24466 Initial commit. 2020-09-10 23:11:38 -03:00