Commit Briefs

Omar Polo

resurrect landlock support

this time targetting ABI level 3; partially based on how claudio@ handled it in rpki-client. Fun how this bit of code has come full circle (gmid inspired what I wrote for got, which inspired what was written for rpki-client, which has come back.)


Omar Polo

fix build of regress


Omar Polo

adding forgotten file


Omar Polo

fix previous; check for getentropy only when arc4random is missing

on macos we have the situation where we have arc4random available but no getentropy().


Omar Polo

comment out seed_from_prngd

it's not used (we define OPENSSL_PRNG_ONLY) and fails the build with -Werror. Keep the function commented instead of deleting it just in case we need to undefine OPENSSL_PRNG_ONLY in the future.


Omar Polo

typo


Omar Polo

enable privsep crypto on all systems

now that we have a bundled libtls we can actually do this. Retain the knob to disable it "just in case".


Omar Polo

bundle libtls

gmid (like all other daemons that want to do privsep crypto) has a very close relationship with libtls and need to stay in sync with it. OpenBSD' libtls was recently changed to use OpenSSL' EC_KEY_METHOD instead of the older ECDSA_METHOD, on the gmid side we have to do the same otherwise failures happens at runtime. In a similar manner, privsep crypto is silently broken in the current libretls (next version should fix it.) The proper solution would be to complete the signer APIs so that applications don't need to dive into the library' internals, but that's a mid-term goal, for the immediate bundling the 'little' libtls is the lesser evil. The configure script has gained a new (undocumented for the time being) flag `--with-libtls=bundled|system' to control which libtls to use. It defaults to `bundled' except for OpenBSD where it uses the `system' one. Note that OpenBSD versions before 7.3 (inclusive) ought to use --with-libtls=bundled too since they still do ECDSA_METHOD.


Omar Polo

sync DISTFILES


Omar Polo

sync have/* files


Omar Polo

sync changelog



Omar Polo

fix INSTALL handling

Set a sane default for INSTALL, allow it to be changed either as environment variable or configure argument, and propagate it correctly to the generated config.mk. Issue reported by xavi, thanks!


Omar Polo

fix comment (ge -> gemexp)


Omar Polo

getcwd(NULL) is an extension; don't rely on it

also, while here, add some error checking too