Commit Graph

35 Commits

Author SHA1 Message Date
styan 2a67a406ca Fix mimedef parsing & add the `-l' option 2020-06-20 22:44:05 +00:00
styan 0fddfb0dfd Deduplicate error printing 2020-06-20 22:07:15 +00:00
styan 9ff65c7806 Add the ENVIRONMENT VARIABLES section 2020-06-20 12:02:59 +00:00
styan 3ab50da58f Fix a typo 2020-06-20 11:44:34 +00:00
styan 1a87febe90 Silence ENOENT for `-f' 2020-06-20 11:40:59 +00:00
styan 16a5bbc031 Replace strlcpy(3) with strncpy(3) 2020-06-20 11:26:48 +00:00
styan baf189b44c Add PREREQUISITES and REFERENCES sections 2020-06-20 11:08:50 +00:00
styan d467e45de7 Add mimedef fallthrough
If no pipeline is given, fallthrough to the next pipeline.
2020-06-20 10:39:04 +00:00
styan f1bc8a9721 Add gemini-pipe(1) 2020-06-20 08:40:48 +00:00
styan 7e7e35e5d4 Fix missing field in `gemini_init' 2020-06-20 08:39:28 +00:00
styan 5dcddc7077 Add `gemini_envinit', add proxy support, simplfy header handling
Add `gemini_envinit' which initializes some parts of the structure
from the environment.
Add proxy support in the form of a `proxy' field in the structure
that can hold a host string.
Simplfy header handling in `gemini_read', removing the
`GEMINI_STRICT' flag.
Add the `-h' option to gemini-cat(1) to set the proxy host.
Remove the `-e' option from gemini-cat(1).
Add environment variable support to gemini-cat(1), including
`GEMINI_TOFU_WRITE', which will set the corresponding flag.
2020-06-20 04:56:34 +00:00
styan e0d7ff540e Add missing EXIT STATUS section 2020-06-10 23:13:06 +00:00
styan 5b690d061f Fix the default MANDIR 2020-05-17 00:22:48 +00:00
styan 51d9344429 Clean up the Makefile 2020-05-11 01:44:57 +00:00
styan 8cc906d526 Print a warning if input is requested while disabled 2020-05-09 03:10:09 +00:00
styan afc778096e Add missing prerequisites 2020-05-09 03:04:38 +00:00
styan 52a7ddb92c Re-allow line-feeds in META when in strict mode 2020-05-05 11:36:20 +00:00
styan d03242fd28 Allow for line-feed terminated responses
Also, remove old flags from the the `flags' list in `libgeminiclient.3'
2020-05-05 11:25:38 +00:00
styan 02054daa12 Update make(1) targets to match the `README' 2020-05-05 01:33:49 +00:00
styan 7f7cb29305 Fix compiling on Linux 2020-05-05 00:11:59 +00:00
styan fd0cc6daf8 Add the `README' 2020-05-02 23:24:08 +00:00
styan 9737c90fe7 Check that pkg-config(1) exists before use 2020-05-02 23:04:30 +00:00
styan 836d3eac64 Fix doubled error printing 2020-05-01 09:43:54 +00:00
styan 0f7e8cdb8c Fix the redirect counter 2020-05-01 09:43:04 +00:00
styan bf54ebef7e Clarify the use of `socketfd' 2020-05-01 04:38:28 +00:00
styan a96621e3fd Large refactoring and renaming
`gemini_open' is now `gemini_connect'
`gemini_close' is now `gemini_fini'
`gemini_connect' will try to use the `socketfd' struct member, if valid.
`gemini_read' now returns 0 whenever the response header has been read.
`gemini_read' no longer handles user-input (status 10) itself.
`gemini_connect_query' has been added so callers can handle user-input.
`libgeminiclient.c' no longer needs `readpassphrase' and `libbsd'.
2020-05-01 04:22:05 +00:00
styan 3f17926bce Add libgeminiclient.3 2020-04-30 23:26:33 +00:00
styan df1d8b0518 Fix probable NULL dereference 2020-04-30 01:32:02 +00:00
styan 44790d35ba Makefile magic 2020-04-30 01:28:41 +00:00
styan 73abfcc07d Add a LICENSE file 2020-04-29 10:31:23 +00:00
styan fddb209549 Use TOFU even without a file 2020-04-29 10:24:17 +00:00
styan 15db86f766 Support URL's `:port' 2020-04-29 10:17:07 +00:00
styan c02b57c6ae Use libbsd on GNU/Linux 2020-04-29 05:57:54 +00:00
styan dade15ad8e Correct the date 2020-04-29 05:06:44 +00:00
styan f8f55b167c Initial commit 2020-04-29 05:03:38 +00:00