Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.10.0
-
None
Description
Hi, I've got a problem to use latest OpenSSL 1.1 with Qt 5.10 (MinGW, Windows 10).
I use precompiled OpenSSL libs from: https://slproweb.com/products/Win32OpenSSL.html
They were always working great
The main problem is that I can't create SSL connections ("Error creating SSL context() url: https..")
.pro file:
INCLUDEPATH += $${color:#800080}PWD/openssl
DEPENDPATH += $${color:#800080}PWD/openssl
win32: LIBS += -L$${color:#800080}PWD/openssl/lib/ -llibcrypto-1_1
win32: LIBS += -L$${color:#800080}PWD/openssl/lib/ -llibssl-1_1
and dll in project directory: libcrypto-1_1.dll, libssl-1_1.dll
Everything looks alright, but QSslSocket::sslLibraryVersionString() returns bad OpenSSL version...
qDebug() << QSslSocket::supportsSsl(); //true
qDebug() << QSslSocket::sslLibraryBuildVersionString(); //"OpenSSL 1.0.2j 26 Sep 2016" qDebug() << QSslSocket::sslLibraryVersionString(); //"OpenSSL 1.0.2m 2 Nov 2017"
It should return OpenSSL 1.1x so the main problem is that Qt is looking for older version that uses deprecated libs: libeay32.dll, libssl32.dll and ssleay32.dll so libcrypto-1_1.dll, libssl-1_1.dll aren't detected properly.