core: Require TLS cert to be loaded if --require-ssl is used
authorphuzion <398094+phuzion@users.noreply.github.com>
Wed, 16 Jun 2021 17:28:38 +0000 (13:28 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 18 Jun 2021 13:45:50 +0000 (15:45 +0200)
commitf20d380a36e11a7591dacbf0a62d7c11d997f9db
tree4ebd93acc651b8b341fd98f9bfa2a5f791bc37c6
parent322bec12418ab267d7b770ec90465a1a1034b17d
core: Require TLS cert to be loaded if --require-ssl is used
If the user specifies --require-ssl, but the core cannot load a
SSL/TLS certificate for any reason, the core will throw an
exception and quit. This fixes a minor security vulnerability
where previously, the core would simply fall back to plaintext
mode and not offer encrypted connections at all.
src/core/sslserver.cpp