Omar Polo
91d7870bb7
typo
2021-01-30 14:38:32 +00:00
Omar Polo
1b246dbd3c
remove unused target
...
"test" was replaced by "regress" a while ago
2021-01-30 14:37:57 +00:00
Omar Polo
39a7b61145
sync date
2021-01-30 12:16:18 +00:00
Omar Polo
e99923477a
sync
2021-01-30 12:13:49 +00:00
Omar Polo
b59f3cdd27
typo
2021-01-30 12:12:37 +00:00
Omar Polo
6016a593a3
invert the location precedence: first match wins
...
It's how httpd(8) does it, and it allows us to call fnmatch less time
2021-01-30 12:04:20 +00:00
Omar Polo
601bc1cc37
readme updates
2021-01-30 11:49:48 +00:00
Omar Polo
714685c10c
manpage improvements
2021-01-30 11:49:27 +00:00
Omar Polo
e7c7f19c4e
more IRI tests
...
ensure non-encoded and pct-encoded hostnames are parsed correctly
2021-01-29 18:52:36 +00:00
Omar Polo
cef60084e6
fix puny-test build
2021-01-29 18:51:35 +00:00
Omar Polo
dceca3b69d
sync
2021-01-29 17:29:21 +00:00
Omar Polo
a8d4a89770
don't ignore punycode errors when decoding SNI-provided servname
2021-01-29 17:29:14 +00:00
Omar Polo
4a3ab60928
const-ify var + missing argument
2021-01-29 17:26:56 +00:00
Omar Polo
117ac52cdd
accept a wider range of UNICODE codepoints while parsing hostnames
2021-01-29 17:26:23 +00:00
Omar Polo
a2fd801327
puny_decode: set an error string
2021-01-29 17:11:03 +00:00
Omar Polo
22a742e4cb
typo
2021-01-29 17:07:26 +00:00
Omar Polo
32693ee6db
include string.h
...
openbsd and freebsd yacc include string.h in the generated sources,
bison (tested on alpine at least) don't
2021-01-28 17:50:22 +00:00
Omar Polo
415ac7a229
fix build
2021-01-28 16:33:20 +00:00
Omar Polo
75fbb1789e
manual improvements & add section about MIME
2021-01-28 16:29:06 +00:00
Omar Polo
90cb9eea8a
don't log the SNI & matching
...
I'll re-enable this when i'll improve the logging
2021-01-28 16:28:44 +00:00
Omar Polo
8ef09de3d0
don't include err.h, gmid.h (via config.h) does that
2021-01-28 16:28:10 +00:00
Omar Polo
cbeee4cad1
warn about punycode in server definition
2021-01-28 16:27:40 +00:00
Omar Polo
9a672b3712
legibility: use p[n] instead of (*(p + n))
2021-01-28 16:26:49 +00:00
Omar Polo
35cf19e3f3
punycode: refactoring
...
use the correct term "label" instead of "component" when speaking
about the parts of a hostname. Also, fix the sizes for max hostname
and label.
2021-01-28 16:25:59 +00:00
Omar Polo
473e4531d5
delete unused constant
2021-01-28 16:24:48 +00:00
Omar Polo
d2b941f34b
correct copyright date
2021-01-28 16:24:03 +00:00
Omar Polo
ef0f2ae88c
remove unused function
2021-01-28 14:21:57 +00:00
Omar Polo
8904fa0e64
-v for verbose logging
2021-01-27 23:14:16 +00:00
Omar Polo
08a2fee055
the daemon option was removed
2021-01-27 17:02:45 +00:00
Omar Polo
747f13af33
add certificate generation in features list
2021-01-27 16:59:54 +00:00
Omar Polo
13ed2fb63f
improve configuration parsing error
2021-01-27 16:45:45 +00:00
Omar Polo
40dc608f1f
adjust CFLAGS detection
2021-01-27 16:05:55 +00:00
Omar Polo
fe5967cd02
const-ify strings in struct location
2021-01-27 15:53:30 +00:00
Omar Polo
0cd6675437
compiler warnings
2021-01-27 15:41:33 +00:00
Omar Polo
b736ca35f2
drop unused variable
2021-01-27 15:35:55 +00:00
Omar Polo
44ee1bac8b
use starts_with in puny.c
2021-01-27 15:35:09 +00:00
Omar Polo
22c6d6334d
log info about SNI, punycode and matched vhost
2021-01-27 15:06:15 +00:00
Omar Polo
caad03081b
some null checks
2021-01-27 15:05:50 +00:00
Omar Polo
c4f682f855
trim_req_iri: set error string
2021-01-27 15:05:16 +00:00
Omar Polo
72bbed9136
make configless mode works again. also accept every host
2021-01-27 15:00:55 +00:00
Omar Polo
58173ca20e
customizable servname & verbose + misc tweaks
...
* add -H for explicit servname (for SNI)
* add -v to print also the request
* misc tweaks: move *flag variables to global scope (initialisation to
0 for free!) and explicit handshake.
2021-01-27 14:48:23 +00:00
Omar Polo
286c4f40a5
readme tweaks
...
fix features list and talk about I18N
2021-01-27 14:42:40 +00:00
Omar Polo
46af8c6cfe
drop the daemon config in favour of the -f flag
...
Now it daemonize by default when running with a config, unless the -f
flag is given.
2021-01-27 12:04:37 +00:00
Omar Polo
7957cbd9aa
const-ify puny_decode (and add puny.c)
2021-01-27 11:21:23 +00:00
Omar Polo
42650adec0
sync deps and sandbox info
2021-01-27 10:52:37 +00:00
Omar Polo
909ea500a4
typo
2021-01-27 10:52:11 +00:00
Omar Polo
3300cbe06a
initial punycode support
2021-01-27 10:47:49 +00:00
Omar Polo
390a611893
sane defaults for the config-less mode
2021-01-27 10:43:55 +00:00
Omar Polo
2d3f837ac5
[seccomp] allow getrandom
2021-01-25 15:25:04 +00:00
Omar Polo
333a671107
gen compat for getprogname
2021-01-25 15:09:18 +00:00