Reload SSL certificates on signal SIGHUP
authorShane Synan <digitalcircuit36939@gmail.com>
Mon, 5 Sep 2016 19:19:03 +0000 (14:19 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Feb 2018 22:19:58 +0000 (23:19 +0100)
commit4b22388af4ceb1c6c24c8c4436283c1e3c33dd1f
tree93e038e880443608d5e5ddfe265b63dbf71a6d8b
parenta8bbd372dc9c195db60db42083df5e05b43f2af4
Reload SSL certificates on signal SIGHUP

Catch SIGHUP, use it to reload configuration (SSL certs), similar to
nginx and other server programs.  This allows easy automation of
reloading certificates, an important factor with services such as
Let's Encrypt.

If reloading certificates fails, the old certificates are kept to
avoid disrupting new connections until the situation is sorted out.

Resolves GH-208.

(cherry picked from commit 25a3ae50ac0d9835283e4f5f10fcfcc10ed5575d)
src/common/quassel.cpp
src/common/quassel.h
src/core/core.cpp
src/core/core.h
src/core/coreapplication.cpp
src/core/coreapplication.h
src/core/sslserver.cpp
src/core/sslserver.h
src/qtui/monoapplication.cpp
src/qtui/monoapplication.h