Commit 9a7e2ae8 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent b3b6253d
......@@ -53,7 +53,7 @@ set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5IMAP")
add_definitions(-DTRANSLATION_DOMAIN=\"libkimap5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
configure_package_config_file(
......
......@@ -83,7 +83,7 @@ void SslServer::incomingConnection(qintptr handle)
socket->setPrivateKey(ssl_key);
socket->setLocalCertificate(ssl_cert);
socket->setCaCertificates(QList<QSslCertificate>() << ssl_cert);
socket->addCaCertificates(QList<QSslCertificate>() << ssl_cert);
socket->setPeerVerifyMode(QSslSocket::VerifyNone);
socket->ignoreSslErrors();
connect(socket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(sslErrors(QList<QSslError>)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment