X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=0faf769356a01e9fd8e7a957d2e40e67770edc8a;hb=d017fec4290f7585427f78371e7851487b9dc2eb;hp=e57a764ba22575093b6371813a587abf2b5bdc20;hpb=7d6b29cb1c553d0e923489a315fe62431367ee1d;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index e57a764b..0faf7693 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -428,6 +428,18 @@ bool Core::sslSupported() } +bool Core::reloadCerts() +{ +#ifdef HAVE_SSL + SslServer *sslServer = qobject_cast(&instance()->_server); + return sslServer->reloadCerts(); +#else + // SSL not supported, don't mark configuration reload as failed + return true; +#endif +} + + bool Core::startListening() { // in mono mode we only start a local port if a port is specified in the cli call