I am running Qt 5.7.1 (MSVC 2015, 32 bit) with Qt Creator 4.2.0. I have a problem with QSslSocket
. I am getting the following errors:
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_error
I have gone to the following location openssl github and downloaded the zip file. I have moved the "libeay32.dll" and "ssleay32.dll" files to my release directory, and I am still getting these errors. Is there anyone who has gotten the QSslSocket
working that can give me steps to get the socket working or has any suggestions?
You need to Add support to OppenSSL manually, since android dropped the support of it, and i am using QT 5.9 and its not make it for you so its your mission to create openSSL lib
You can download it directly here https://wiki.openssl.org/index.php/Binaries
or here https://indy.fulgan.com/SSL/
and then copy these filed and include them to your project
libcrypto.so
libssl.so
That should work correctly
Or you can generate your libcrypto.so
and libssl.so
using this script
, just follow it step by step
https://github.com/ekke/android-openssl-qt