REFAC(crypto): remove QSslSocket::addDefaultCaCertificates

The function in question has been deprecated in Qt 5.15. Instead it is
recommended to set the CA certificates on the QSslConfiguration object.
According to the docs of QSslConfiguration however the system's CA
certificates is what is used by default anyways.

Quote (from 5.15 docs of QSslConfiguration::systemCaCertificates):
"This function provides the CA certificate database provided by the
operating system. The CA certificate database returned by this function
is used to initialize the database returned by caCertificates() on the
default QSslConfiguration."
This commit is contained in:
Robert Adam 2020-06-10 16:10:27 +02:00
parent 7c67ea33f4
commit b691108d38

View File

@ -108,8 +108,6 @@ out:
}
void MumbleSSL::addSystemCA() {
QSslSocket::addDefaultCaCertificates(QSslConfiguration::systemCaCertificates());
#ifdef Q_OS_WIN
// Work around issue #1271.
// Skype's click-to-call feature creates an enormous