Commit Graph

1288 Commits

Author SHA1 Message Date
Omar Polo
104a2059e6 make `serve-gemini' use gemexp (from repo) instead of gmid
the standalone / config-less mode was removed from gmid and put
into gemexp time ago...
2024-01-08 08:32:19 +00:00
Omar Polo
822125ca3f add more endian.h macros implementation for macos 2024-01-07 19:01:40 +00:00
Omar Polo
08e6d6ed7a mark private function as static 2024-01-07 18:59:10 +00:00
Omar Polo
0c5dd8ffe9 remove explicit #include endian.h
unfortunately that's not portable.  config.h will include the right
stuff however.
2024-01-07 18:58:26 +00:00
Omar Polo
ebfc578491 sync libtls 2024-01-07 18:52:51 +00:00
Omar Polo
12eb29d878 sync imsg 2024-01-07 18:27:41 +00:00
Omar Polo
b8537c1c54 add sentence to contrib.gmi 2024-01-07 17:25:15 +00:00
Omar Polo
59953b20b2 disable -Werror=use-after free for CI
gcc' use after free detection is busted and sees one in vis.c where
it's not possible.
2024-01-07 16:35:02 +00:00
Omar Polo
acc862155d update the quistart for gmid 2.0 2024-01-07 16:22:43 +00:00
Omar Polo
dad248f4cf improve the home page for upcoming 2.0 2024-01-05 20:14:02 +00:00
Omar Polo
6660c0bd41 update faqs 2024-01-05 20:06:02 +00:00
Omar Polo
ac6c76f8a8 fix link 2024-01-05 19:13:59 +00:00
Omar Polo
f522971968 capitalize Titan in .Nd 2023-10-20 15:48:16 +00:00
Omar Polo
d1f84895f7 gmid.8: use a more on-point description 2023-10-20 15:46:42 +00:00
Omar Polo
5bee9bd73e grammar 2023-10-20 15:42:20 +00:00
Omar Polo
797c527a00 minor semplifications to some sentences 2023-10-19 21:33:38 +00:00
Omar Polo
36b2905a68 gmid.conf.5: mention types before servers
There's no strict ordering enforced; yet that list may be used to
structure a configuration and having the types after the list of
server is not something I'd encourage for clarity.
2023-10-19 16:04:44 +00:00
Omar Polo
91b90ad440 some initial touches at the site 2023-10-18 19:29:55 +00:00
Omar Polo
4d51ac4f4a sync manpages; tweak the HTML conversion 2023-10-18 19:29:55 +00:00
Omar Polo
dba9907a71 SEE ALSO for titan(1) 2023-10-18 19:29:55 +00:00
Omar Polo
4c12885779 `make lint' to check titan.1 too 2023-10-18 19:29:55 +00:00
Omar Polo
4645a68a10 SEE ALSO for gg too 2023-10-18 19:29:55 +00:00
Omar Polo
33f2a7f735 add a few Xr in SEE ALSO 2023-10-18 19:29:53 +00:00
Omar Polo
17b7d61fc9 sync changelog 2023-10-18 18:47:35 +00:00
Omar Polo
07d86a0beb tweak certificate generation log messages 2023-10-18 18:07:28 +00:00
Omar Polo
bab32701fb gemexp: add -R to generate an RSA (4096) key instead of an EC one (default) 2023-10-18 18:06:08 +00:00
Omar Polo
adaae5163c rework gencert(); make gemexp generate EC certs
Taking inspiration from acme-client.
2023-10-18 17:47:29 +00:00
Omar Polo
43b38b2dbb copyright++ 2023-10-18 17:15:47 +00:00
Omar Polo
e8b2d8e3f0 gg: prepend "Server says" to the reply code 2023-10-18 17:15:03 +00:00
Omar Polo
7980a5d2a8 gg: print the response header for non-2x replies to standard error 2023-10-18 17:13:51 +00:00
Omar Polo
c7bcd4a8a9 gg: exit with the gemini response code
0 is still used for 2X replies, and "external" failures (e.g.
network, tls, ...) are still using exit code 1.  Gemini non-2x
replies now get their response code reported as-is as status code.
2023-10-15 15:06:34 +00:00
Omar Polo
4db22ea654 pass LDFLAGS before LIBS 2023-10-14 18:53:37 +00:00
Omar Polo
6e4ba8184d copyright# 2023-10-14 18:52:12 +00:00
Omar Polo
60ff0ebcb5 gemexp doesn't have -v; remove from getopt and usage() 2023-08-29 10:44:08 +00:00
Omar Polo
23e92df733 extend/sync .gitignore 2023-08-29 09:39:28 +00:00
Omar Polo
1218bca611 add -e to gencert usage() string 2023-08-29 09:36:36 +00:00
Omar Polo
96515efd27 tweak gemexp logs
gemexp is meant for local testing so I'm not too worried about
changing its log format if it makes sense to do so.
2023-08-29 09:35:07 +00:00
Omar Polo
80745f0411 regress: change naming scheme for certs, add GENCERT_FLAGS knob
Call the certificates .pem and the keys .key; use contrib/gencert
to generate the certificates and provide a GENCERT_FLAGS knob so
that regress can be run with EC keys (GENCERT_FLAGS=-e).  Still no
automatic way of testing with both RSA and EC keys.
2023-08-29 09:30:28 +00:00
Omar Polo
eaca1ed4db sync changelog 2023-08-29 09:26:55 +00:00
Omar Polo
a6d07f09e0 gemexp: save certs to $XDG_DATA_HOME/gemexp, not /gmid 2023-08-29 09:26:14 +00:00
Omar Polo
f31289a8ac gemexp: change the naming scheme for the certificates
Using what the manpage advertised.  The regress adaptations will
follow.  The directory will also change (and the key type too.)
2023-08-29 09:24:14 +00:00
Omar Polo
b894573ad9 fix typo; the size computation is done using len, not ret 2023-08-29 09:18:55 +00:00
Omar Polo
c440a0ded9 log ip address and port when tls_handshake fails
These connection are not otherwise logged and it could be helpful
to track down the bad ip.
2023-08-28 21:42:58 +00:00
Omar Polo
6be41efe33 tweak log_request() comment
gg -> gemexp and better wording.
2023-08-28 21:39:59 +00:00
Omar Polo
a6c8b8051e don't let crypto_dispatch_server handle IMSG_CRYPTO_ECDSA_SIGN
in this codepath.  otherwise we end up with a mismatch where we
expect a request but were sent a response.
2023-08-28 21:38:09 +00:00
Omar Polo
3cba037a11 pre-increment reqid
otherwise we send the request id N and expect to receive N+1
2023-08-28 21:37:27 +00:00
Omar Polo
6c86d810fc typo; was filling the wrong iov_len... 2023-08-28 21:36:58 +00:00
Omar Polo
7bbf17a857 plug a leak
all other rules are freeing the value of `listen_addr'
2023-08-25 12:19:49 +00:00
Omar Polo
c2c051f28e fix automatic guessing of `listen on'
default_host needs to be NULL for getaddrinfo(3) to listen on
everything.
2023-08-25 12:19:00 +00:00
Omar Polo
3cb7e8d7ac ignore some errors from socket(2)
There's no much we can do if we resolv an IPv6 address but its
support is disabled in the current kernel, so ignore and go ahead.
Spotted while testing gmid i n a FreeBSD jail without IPv6.
2023-08-25 09:40:09 +00:00