I got a sample projct that uses QSslSocket
and QSslCertificate
to get information from a SSL certificate (Qt 5.7, Windows 10). QSslSocket::supportsSsl()
function returns false and I get these errors at runtime:
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
So I compiled OpenSSL_1.1.0 and linked it to my project:
INCLUDEPATH += . "C:/OpenSSL-Win32/include/" LIBS +=
-L"C:/OpenSSL-Win32/lib/" -llibcrypto -llibssl
But still same errors. I downloaded OpenSSL installer and still the same.
Weird is QSslSocket::sslLibraryBuildVersionString()
returns OpenSSL 1.0.2g 1 Mar 2016
, even though I compiled and installed OpenSSL_1.1.0.
I know I'm missing a simple detail. Please tell me what is it. Thanks.