Omar Polo
df5058c919
provide a more usual fatal
...
fatal usually appends the error string. Add 'fatalx' that doesn't.
Fix callers and move the prototypes to log.h
2023-06-05 17:07:52 +00:00
Omar Polo
7b27af8388
log when the certificate was successfully generated
2022-04-12 17:40:58 +00:00
Omar Polo
4842c72d9f
fmt
2021-10-18 10:05:55 +00:00
Omar Polo
1eb3631d10
certificate generation (bugfix and improvement)
...
don't add gmid as organisation when generating the certificate, and
set the version to 3, so it's compatible with java/android clients.
Found by Gnuserland, thanks!
2021-05-12 17:37:22 +00:00
Omar Polo
b8e64ccd44
list instead of fixed-size array for vhosts and locations
...
saves some bytes of memory and removes the limit on the maximum number
of vhosts and location blocks.
2021-03-31 16:32:18 +00:00
Omar Polo
bc99d868bc
refactoring: imsg everywhere
...
use imsg to handle ALL kinds of IPC in gmid. This simplifies and shorten the
code, and makes everything more uniform too.
2021-03-19 19:21:29 +00:00
Omar Polo
5b6dc93c8a
kill debug printf
2021-02-12 12:51:47 +00:00
Omar Polo
52418c8d82
fix various compilation errors
...
Include gmid.h as first header in every file, as it then includes
config.h (that defines _GNU_SOURCE for instance).
Fix also a warning about unsigned vs signed const char pointers in
openssl.
2021-02-12 12:47:20 +00:00
Omar Polo
4283d65fc1
don't allocate BIGNUM on the stack
...
on fedora 33 the BIGNUM type is opaque. Allocate always to avoid headaches.
2021-02-10 14:25:39 +00:00
Omar Polo
02be96c6dd
add `require client ca' rule to require certs signed by a CA
2021-02-09 22:30:04 +00:00
Omar Polo
3abf91b0b4
improve logs management
2021-02-07 15:30:28 +00:00
Omar Polo
ca21e10043
reload configuration on SIGHUP
2021-02-04 13:23:15 +00:00
Omar Polo
9b8f5ed2c0
revert commit 346f28eeaa
...
keep mark_nonblock in utils.c, as otherwise the build for the regress
suite will fail (mark_nonblock needs fatal which is in gmid.c, and
we can't link gmid.o with the regress suite...)
2021-02-03 14:16:39 +00:00
Omar Polo
346f28eeaa
move mark_nonblock to utils.c
2021-02-02 23:03:33 +00:00
Omar Polo
bcf5d929e6
ensure absolute paths in config-less mode
2021-02-01 11:07:57 +00:00
Omar Polo
d2b941f34b
correct copyright date
2021-01-28 16:24:03 +00:00
Omar Polo
44ee1bac8b
use starts_with in puny.c
2021-01-27 15:35:09 +00:00