X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=7356d5b430ad73c3c711aeb47c3437939f389839;hb=2a89d1b0c473f92c5cf9fb803d99e8b51b2c68e7;hp=4b2824f56a7bccea089da3c5c813041ad23b7e40;hpb=4c4aec75c42dc212b6725cf1cb42ab61fb09e8fd;p=quassel.git
diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp
index 4b2824f5..7356d5b4 100644
--- a/src/core/coreauthhandler.cpp
+++ b/src/core/coreauthhandler.cpp
@@ -101,6 +101,11 @@ void CoreAuthHandler::handle(const RegisterClient &msg)
// TODO: only in compat mode
bool useSsl = false;
#ifdef HAVE_SSL
+ if (Quassel::isOptionSet("require-ssl") && !msg.sslSupported) {
+ _peer->dispatch(ClientDenied(tr("SSL is required!
You need to use SSL in order to connect to this core.")));
+ _peer->close();
+ return;
+ }
if (Core::sslSupported() && msg.sslSupported)
useSsl = true;
#endif