diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2017-02-26 01:10:47 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2017-02-26 01:10:47 +0300 |
commit | 1c8b637cbf827c5fb27ceb80d4f83d9ec3aec366 (patch) | |
tree | bc167e39aaaab5e200cd8505a7572f0ca04541d2 /src | |
parent | d5f04b42234fe369bfac686670837ff3fcb7afc6 (diff) |
Server: rename qlCA to qlIntermediates, to properly reflect its function.
The list doesn't actually contain CA certificates, but intermediates.
So let us name it appropriately.
Diffstat (limited to 'src')
-rw-r--r-- | src/murmur/Cert.cpp | 2 | ||||
-rw-r--r-- | src/murmur/Server.cpp | 2 | ||||
-rw-r--r-- | src/murmur/Server.h | 11 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/murmur/Cert.cpp b/src/murmur/Cert.cpp index 004c11744..1be63a934 100644 --- a/src/murmur/Cert.cpp +++ b/src/murmur/Cert.cpp @@ -115,7 +115,7 @@ void Server::initializeCert() { ql.removeAt(i); } } - qlCA = ql; + qlIntermediates = ql; } #if defined(USE_QSSLDIFFIEHELLMANPARAMETERS) diff --git a/src/murmur/Server.cpp b/src/murmur/Server.cpp index 27f90705c..4178dfab6 100644 --- a/src/murmur/Server.cpp +++ b/src/murmur/Server.cpp @@ -1198,7 +1198,7 @@ void Server::newClient() { sock->setPrivateKey(qskKey); sock->setLocalCertificate(qscCert); sock->addCaCertificate(qscCert); - sock->addCaCertificates(qlCA); + sock->addCaCertificates(qlIntermediates); #if defined(USE_QSSLDIFFIEHELLMANPARAMETERS) QSslConfiguration cfg = sock->sslConfiguration(); diff --git a/src/murmur/Server.h b/src/murmur/Server.h index 0d4d9ef73..f3d51c522 100644 --- a/src/murmur/Server.h +++ b/src/murmur/Server.h @@ -131,9 +131,18 @@ class Server : public QThread { QVariant qvSuggestPositional; QVariant qvSuggestPushToTalk; - QList<QSslCertificate> qlCA; QSslCertificate qscCert; QSslKey qskKey; + + /// qlIntermediates contains the certificates + /// from this virtual server's certificate PEM + // bundle that do not match the virtual server's + // private key. + /// + /// Simply put: it contains any certificates + /// that aren't the main certificate, or "leaf" + /// certificate. + QList<QSslCertificate> qlIntermediates; #if defined(USE_QSSLDIFFIEHELLMANPARAMETERS) QSslDiffieHellmanParameters qsdhpDHParams; #endif |