Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtNetwork on Windows by default with or without SSL



  • I just figured out that the Qt 4.7.4 comes with SSL compiled and 4.8.0 RC comes without SSL compiled in the Qt SDK.

    What is the default? Should they always be without or with SSL enabled?



  • I don't think SSL will ever be the default form of a socket system, but if 4.8.0 is as you say, I would like to know the answer too.



  • You just got me wrong, i said 4.7.4 has it enabled and 4.8.0 has it not enabled. It is the opposite than you understood me.
    [quote author="veeeee_d" date="1322718408"]I don't think SSL will ever be the default form of a socket system, but if 4.8.0 is as you say, I would like to know the answer too.[/quote]



  • SSL support in Qt is implemented by using external libraries like OpenSSL. For licensing reasons, Qt can neither ship with OpenSSL nor be linked directly against it. It uses a load-the-DLL-at-runtime approach to test whether SSL libs are installed on your system. Thus, the OpenSSL libs need to be stored in a path that is accessible by the application.



  • Thanks Volker, that sounds good. But where do i get this dll's which are linked against 4.8.0 RC?



  • Sorry, I don't know that. If it does not work with the RC I would suggest opening a bug report on the public "Jira":https://bugreports.qt.nokia.com - or search there whether it has been reported.

    But make sure, that the OpenSSL libs are available to your application. Either install them in a system directory like C:/windows/... or in the directory containing your .exe.



  • Hi Volker, I would like to know which libs i need for Windows and where i can get them, before i raise a bug report?
    [quote author="Volker" date="1322829981"]Sorry, I don't know that. If it does not work with the RC I would suggest opening a bug report on the public "Jira":https://bugreports.qt.nokia.com - or search there whether it has been reported.

    But make sure, that the OpenSSL libs are available to your application. Either install them in a system directory like C:/windows/... or in the directory containing your .exe.[/quote]



  • You can get the DLLs from "here":http://www.slproweb.com/products/Win32OpenSSL.html

    I did not try whether it works with MinGW, thought. That's still on my TODO list.



  • Volker, you are a genius, that worked like a charm. Thank you very much!


Log in to reply