Omar Polo
aa37287565
add newline after usage
2021-02-10 17:58:43 +00:00
Omar Polo
49b73ba1ab
fix "first location" bug
...
reported by devel at datenbrei dot de. The first location would
overwrite the default value for a server, triggering the "`foo' rule
specified more than once" error. This also needed a small tweak on
how we match locations to avoid breaking other tests.
2021-02-10 16:37:08 +00:00
Omar Polo
2898780aea
fix ca generation
2021-02-10 15:09:08 +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
f6b9a079e3
allow epoll_wait
...
fedora 33 issue an epoll_wait instead of pwait.
2021-02-10 14:21:56 +00:00
Omar Polo
2d34f732f1
typo
2021-02-10 13:13:17 +00:00
Omar Polo
002a84a123
improve errors during config parsing
2021-02-10 11:53:05 +00:00
Omar Polo
d3f073c9ed
don't delete valid.ext
2021-02-09 22:40:04 +00:00
Omar Polo
eb59f87e67
sort
2021-02-09 22:38:10 +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
2ff026b09b
add conf for a ca
2021-02-09 22:12:19 +00:00
Omar Polo
31b3662c54
gg: add support for client certs
2021-02-09 15:01:12 +00:00
Omar Polo
57ec3e776e
refactor apply_block_return
...
move the strip and fmt logic to their own function
2021-02-08 20:50:30 +00:00
Omar Polo
747b35d0da
align
2021-02-08 18:54:34 +00:00
Omar Polo
b9231167fb
mention libevent
2021-02-08 18:47:36 +00:00
Omar Polo
c214d1ab67
allow sigreturn and sigaction on linux
2021-02-08 18:39:23 +00:00
Omar Polo
df58efff26
fix seccomp for the new event loop
...
add/remove syscalls from the BPF filter and move sandbox() after
libevent initialisation
2021-02-08 12:46:46 +00:00
Omar Polo
d090dc8491
define config_path as global variable
2021-02-08 12:44:34 +00:00
Omar Polo
319b7fa909
define conf in the test program, not in puny.c
2021-02-08 12:43:36 +00:00
Omar Polo
1516fd4dad
fix detection on non-openbsd systems
2021-02-08 10:28:56 +00:00
Omar Polo
337c74209b
look for libevent
2021-02-08 10:12:04 +00:00
Omar Polo
0b8133c264
add check for libevent
2021-02-08 10:11:23 +00:00
Omar Polo
abc007d2b3
rewrite main loop using libevent
2021-02-08 10:01:45 +00:00
Omar Polo
b63e30ff44
define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
2021-02-07 21:47:01 +00:00
Omar Polo
9f006a2127
[cgi] split the query in words if needed and add them to the argv
2021-02-07 18:55:04 +00:00
Omar Polo
a13739138b
add trailing \n in yyerror
2021-02-07 18:08:50 +00:00
Omar Polo
7e9b7812b3
move logging code to log.c
2021-02-07 16:15:51 +00:00
Omar Polo
3077ce5bee
don't fprintf
2021-02-07 16:10:09 +00:00
Omar Polo
a64959c99a
use log_err instead of fprintf
2021-02-07 16:09:49 +00:00
Omar Polo
3abf91b0b4
improve logs management
2021-02-07 15:30:28 +00:00
Omar Polo
a709ddf5eb
added prefork option
2021-02-07 12:05:32 +00:00
Omar Polo
cfb8a77fd4
handle also EAGAIN together with EWOULDBLOCK
2021-02-07 12:04:11 +00:00
Omar Polo
2564eddee4
add set -e to env script
...
It avoids some long sequences of "echo: IO error" when the client
close the connection before EOF.
2021-02-07 11:32:53 +00:00
Omar Polo
809c4bd0f8
keep original CFLAGS
2021-02-07 11:28:42 +00:00
Omar Polo
eef0492e35
add missing declaration of TENTRYPOINT
2021-02-07 11:27:15 +00:00
Omar Polo
60dbafbf2f
define MANDIR
2021-02-07 09:24:00 +00:00
Omar Polo
1487e11eda
drop sample.conf and add something to the README.md
2021-02-06 19:05:40 +00:00
Omar Polo
2b92a4477a
reorder stuff
2021-02-06 18:50:42 +00:00
Omar Polo
3704b36bda
add script for the regress suite
2021-02-06 18:29:36 +00:00
Omar Polo
6c6f242a54
escape %
2021-02-06 18:28:56 +00:00
Omar Polo
e3ddf39095
add the ``entrypoint'' option
2021-02-06 18:28:43 +00:00
Omar Polo
afc025ff60
restart the daemon instead of kill+start
...
this way we can also test the reload capability!
2021-02-06 17:35:48 +00:00
Omar Polo
cd76162494
swap check in vhost_* fns
...
it's faster (statistically speaking) to first compute if the option is
set and then fnmatch than the inverse. This way we can avoid
unnecessary fnmatch.
2021-02-06 17:31:03 +00:00
Omar Polo
6abda252e9
added `block return'' and
`strip'' options
2021-02-06 17:22:37 +00:00
Omar Polo
daac4a9452
fix auto index precedence
2021-02-06 14:36:26 +00:00
Omar Polo
4125c94fda
make sure @ is allowed, and rephrase another test
2021-02-06 13:57:12 +00:00
Omar Polo
52053e1a61
ensure CGI stdout it's blocking
2021-02-06 09:56:34 +00:00
Omar Polo
19e7bd00a3
[iri] accept also : and @
...
again, to be RFC3986 compliant.
2021-02-06 09:33:48 +00:00
Omar Polo
8404ec301f
don't %-decode the query
2021-02-05 14:31:53 +00:00
Omar Polo
709f4c9447
alter the string, don't advance pointer
...
if we advance the pointer, we crash during reload due to an invalid
address given to free. altering the string is the way.
2021-02-04 20:04:12 +00:00