Qt and SSL support on Windows
-
Hi,
Currently I am having a "popular" issue related to the SSL libs on Windows. This is the error message I am getting from console:
qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_errorMy environment is Windows 7, using Qt 5.9.10 (everything's 32bit). I have been trying several OpenSSL installers for Windows (32bit too). My Qt libraries are dynamic, so I am trying to use DLL files.
One of the installers I tried was this:
https://indy.fulgan.com/SSL/openssl-1.0.2o-i386-win32.zip
I only found these files from that package:- libeay32.dll
- ssleay32.dll
Also I tried using the files: libssl32.dll and libcrypto.dll, following this post: https://stackoverflow.com/questions/41857883/qsslsocket-cannot-call-unresolved-function
I'm including the SSL libs path into my PATH variable in the same way I set the values of other libraries that are actually working already.
So, what I am doing wrong? What is the OpenSSL version/package I should install on Windows for Qt 5.9.10? (32bit)
I appreciate any hint. -
Hi, maybe a previous post can help
-
I upgraded my Qt version to 5.10.1 and added this line to my code:
QNetworkRequest request; request.setSslConfiguration(QSslConfiguration::defaultConfiguration());
Then I used the SSL dll files from this package: https://indy.fulgan.com/SSL/openssl-1.0.2o-i386-win32.zip
Now everything works. Thanks!