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>
Tue, 6 Sep 2016 20:41:54 +0000 (22:41 +0200)
commit25a3ae50ac0d9835283e4f5f10fcfcc10ed5575d
tree49187c1e52686bc798ba612dbfd284f321a4be86
parentd414dd5212cc00f1d43615528bb97470a65143b5
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.
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