diff options
Diffstat (limited to 'src/murmur/Cert.cpp')
-rw-r--r-- | src/murmur/Cert.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/murmur/Cert.cpp b/src/murmur/Cert.cpp index aaf02fec4..43981ea42 100644 --- a/src/murmur/Cert.cpp +++ b/src/murmur/Cert.cpp @@ -85,6 +85,15 @@ QSslKey Server::privateKeyFromPEM(const QByteArray &buf, const QByteArray &pass) void Server::initializeCert() { QByteArray crt, key, pass, dhparams; + // Clear all exising SSL settings + // for this server. + qscCert.clear(); + qlIntermediates.clear(); + qskKey.clear(); +#if defined(USE_QSSLDIFFIEHELLMANPARAMETERS) + qsdhpDHParams = QSslDiffieHellmanParameters(); +#endif + crt = getConf("certificate", QString()).toByteArray(); key = getConf("key", QString()).toByteArray(); pass = getConf("passphrase", QByteArray()).toByteArray(); |