solanum-vs-hackint-and-char.../librb/src
Aaron Jones a90f22c92d OpenSSL: Support configuration of TLSv1.3 ciphersuites
The OpenSSL developers decided, during the OpenSSL 1.1.1 development
phase, to use a different API and different set of lists for TLSv1.3
ciphersuites, than for every TLS version preceeding it.

This is stupid, but we have to work with it.

This commit also improves configuration fault resilience. The reason
is that if you don't pass any valid old-style ciphersuites, OpenSSL
will not negotiate an older protocol at all. However, when they
implemented the new API, they decided that lack of any valid
ciphersuites should result in using the defaults. This means that if
you pass a completely invalid ciphersuite list (like "foo"), OR if
you pass a TLSv1.2-only ciphersuite list, TLSv1.3 continues to work.
This is not mirrored; passing a TLSv1.3-only ciphersuite list will
break TLSv1.2 and below.

Therefore we work around this lack of mirroring by falling back to
the default list for each protocol. This means that if
ssl_cipher_list is complete garbage, the default will be used, and
TLS setup will succeed for both protocols. This is logged, so that
administrators can fix their configuration.

I prefer this approach over explicitly disabling the protocols if
their respective ciphersuite lists are invalid, because it will
result in unusable TLSv1.3 if people run newer solanum with their
older charybdis/solanum configuration files that contain custom
ssl_cipher_list definitions. Hindering TLSv1.3 adoption is not an
option, in my opinion.

The downside of this is that it is no longer possible to disable a
protocol family by not including any of its ciphersuites. This could
be remedied by an ssl_protocol_list configuration directive if it is
decided that this functionality is ultimately necessary.

This work is not required for either of the other TLS backends,
because neither of those libraries yet support TLSv1.3, and in the
event that they eventually do, I expect them to allow configuration
of newer ciphersuites with the existing APIs. This can be revisited
if it turns out not to be the case.

Signed-off-by: Aaron Jones <me@aaronmdjones.net>
Tested-by: Aaron Jones <me@aaronmdjones.net>
2021-02-07 11:52:58 +00:00
..
arc4random.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
balloc.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
commio.c librb: call rb_set_cloexec in rb_setup_fd 2021-01-26 00:03:48 -05:00
crypt.c librb: silence some fairly harmless compiler warnings 2016-06-01 20:54:11 +00:00
devpoll.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
dictionary.c Innovation by sed 2020-10-15 15:52:41 +01:00
epoll.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
event.c librb/event: Don't leak event names on completion 2020-04-19 14:22:18 +01:00
export-syms.txt librb: add rb_{set,clear}_cloexec 2021-01-26 00:03:48 -05:00
gnutls.c GNUTLS: Provide a default priority string, disable TLSv1.0 in it 2016-12-30 17:59:35 +00:00
gnutls_ratbox.h Remove hardcoded TLSv1 disables 2020-11-01 04:07:24 +00:00
helper.c librb/helper: call rb_clear_cloexec on child fds 2021-01-26 00:03:48 -05:00
kqueue.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
linebuf.c ircd: send tags on every message 2017-08-06 16:21:29 +01:00
Makefile.am Add basic SCTP listener support that binds to multiple addresses 2017-08-24 20:08:20 +01:00
mbedtls.c Remove hardcoded TLSv1 disables 2020-11-01 04:07:24 +00:00
mbedtls_ratbox.h Innovation by sed 2020-10-15 15:52:41 +01:00
nossl.c librb: Fix nossl 2019-09-15 12:33:56 +01:00
openssl.c OpenSSL: Support configuration of TLSv1.3 ciphersuites 2021-02-07 11:52:58 +00:00
openssl_ratbox.h OpenSSL: Support configuration of TLSv1.3 ciphersuites 2021-02-07 11:52:58 +00:00
patricia.c remove RB_IPV6 2017-08-20 12:54:46 +01:00
poll.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
ports.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
radixtree.c Innovation by sed 2020-10-15 15:52:41 +01:00
rawbuf.c librb: rb_rawbuf_length: do something if soft assert fails 2017-07-29 22:46:10 +01:00
rb_lib.c librb: Fix GCC 8 warning; 640 bytes should be enough 2019-09-15 10:25:25 +01:00
rb_memory.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
select.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
sigio.c Fix Clang 6 compiler warnings 2019-09-15 11:28:48 +01:00
tools.c librb: remove zstring 2017-08-06 18:40:24 +01:00
unix.c librb: Avoid unused variable warning 2019-09-15 11:13:54 +01:00
version.c.SH Innovation by sed 2020-10-15 15:52:41 +01:00
win32.c Innovation by sed 2020-10-15 15:52:41 +01:00