Problem with openssl
-
Hello this is my first time posting here so please forgive me if i make any mistakes.
I am using smtpclient to send emails from a qt application and i get this error.
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 checked previous threads from different people that encountered this problem, i have installed openssl, added it to path, added the dll files (ssleay32.dll and libeay.dll) to the project folder and nothing worked.
and this:qDebug()<<QSslSocket::supportsSsl();
qDebug()<< QSslSocket::sslLibraryVersionString();
qDebug()<< QSslSocket::sslLibraryBuildVersionString();returns this:
false
""
"OpenSSL 1.0.2t 10 Sep 2019"Please i need help with this. (i am using qt 5.9.9)
-
@YassineJ said in Problem with openssl:
i have installed openssl,
Which version?
I think you need OpenSSL 1.0.x version for this Qt version.
OpenSSL 1.1.x you need Qt 5.12+added it to path, added the dll files (ssleay32.dll and libeay.dll)
If it is in the system PATH then the DLLs should be found without copying them.
to the project folder
The should be in the same location as the executable if they are not on the PATH. This is typically not the same as the source folder if you are using any sort of disciplined IDE.