Solved Was something changed with OpenSSL in QT 5.13?
-
I have a project that uses WebSocket in QML with WSS protocol (url like 'wss://...") that worked with QT 5.12, but does not work with QT 5.13 on Windows platform.
I copied exactly the same OpenSSL DLLs that were used with QT 5.12
libeay32.dll ssleay32.dll
to QT 5.13 binary directory (from C:\Qt\Qt5.12.2\5.12.2\msvc2017_64\bin to C:\Qt\Qt5.13.0\5.13.0\msvc2017_64\bin), but WebSocket fails to initialize with the message:
SSL Sockets are not supported on this platfrom.
When I start my app with VS2017 debugger Qt5WebSocketsd.dll is loaded:
'MyApp.exe' (Win32): Loaded 'C:\Qt\Qt5.13.0\5.13.0\msvc2017_64\bin\Qt5WebSocketsd.dll'. Cannot find or open the PDB file.
but OpenSSL DLLs are not.
-
@Dmitriano Starting with Qt 5.12.4 you need OpenSSL 1.1 libraries.
Thank the OpenSSL devs that made the API between 1.0 and 1.1 incompatible, so you now need to take care of the correct version.
Regards