gmid/compat
Omar Polo f9ab77a898 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.
2023-08-23 17:38:49 +00:00
..
libtls bundle libtls 2023-08-23 17:38:49 +00:00
vis drop the __bounded__ attribute 2023-08-07 17:54:34 +00:00
Makefile bundle libtls 2023-08-23 17:38:49 +00:00
arc4random.c bundle libtls 2023-08-23 17:38:49 +00:00
arc4random.h bundle libtls 2023-08-23 17:38:49 +00:00
chacha_private.h bundle libtls 2023-08-23 17:38:49 +00:00
err.c fix various error in compat/err.c 2021-02-23 13:43:53 +01:00
explicit_bzero.c include config.h first 2021-02-12 12:49:36 +00:00
freezero.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
getdtablecount.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
getdtablesize.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
getentropy.c bundle libtls 2023-08-23 17:38:49 +00:00
getprogname.c fix getprogname shim 2022-07-04 13:43:27 +00:00
imsg-buffer.c update imsg 2023-07-02 08:55:38 +00:00
imsg.c update imsg 2023-07-02 08:55:38 +00:00
imsg.h update imsg 2023-07-02 08:55:38 +00:00
memmem.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
queue.h tests and compat for imsg 2021-02-23 13:43:14 +01:00
reallocarray.c add compat for reallocarray 2021-04-25 12:50:19 +00:00
recallocarray.c sync recallocarary.c 2022-03-19 14:52:11 +00:00
setproctitle.c include config.h first 2021-02-12 12:49:36 +00:00
setresgid.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
setresuid.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
strlcat.c include config.h first 2021-02-12 12:49:36 +00:00
strlcpy.c include config.h first 2021-02-12 12:49:36 +00:00
strtonum.c include config.h first 2021-02-12 12:49:36 +00:00
timingsafe_memcmp.c bundle libtls 2023-08-23 17:38:49 +00:00
tree.h add compat for sys/tree.h 2021-10-07 11:36:25 +00:00
vasprintf.c include config.h first 2021-02-12 12:49:36 +00:00
vis.c add missing include of config.h in vis.c 2023-08-07 17:57:24 +00:00