I got a sample projct that uses QSslSocket and QSslCertificate to get information from SSL certificate (Qt 5.7, Windows 10). The 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 all the same mistakes. I downloaded the OpenSSL installer and still the same.
Weird is QSslSocket::sslLibraryBuildVersionString() returns OpenSSL 1.0.2g 1 Mar 2016 , although I compiled and installed OpenSSL_1.1.0.
I know that I do not have enough simple information. Please tell me what it is. Thanks.
c ++ ssl qt openssl
Mustafa chelik
source share