I have a simple console app test (win32) that produces ssl errors in the console, even though I do not use ssl
Errors:
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QCoreApplication a(argc, argv);
  4.  
  5. QNetworkAccessManager mgr;
  6. if (! QObject::connect(&mgr, &QNetworkAccessManager::sslErrors, [&](QNetworkReply * reply, const QList<QSslError>&)
  7. {
  8. reply->ignoreSslErrors();
  9. }))
  10. {
  11. return 0;
  12. }
  13.  
  14. QString str = QString("%1apiData.ashx?t=%2&d=%3").arg("localhost:8080/").arg(1).arg(2);
  15. QNetworkRequest req(QUrl(QString("%1").arg(str)));
  16. mgr.get(req);
  17.  
  18. return a.exec();
  19. }
To copy to clipboard, switch view to plain text mode 

Pro file:
Qt Code:
  1. QT += core network xml
  2. QT -= gui
  3.  
  4. CONFIG += c++11
  5. CONFIG += console
  6. CONFIG -= app_bundle
  7. DEFINES += QT_DEPRECATED_WARNINGS QT_LARGEFILE_SUPPORT QT_XML_LIB QT_NETWORK_LIB
To copy to clipboard, switch view to plain text mode 

What could be the problem? My other non-console apps do not produce these errors.

Thanks!