QtNetwork on Windows by default with or without SSL
-
wrote on 1 Dec 2011, 05:40 last edited by
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?
-
wrote on 1 Dec 2011, 05:46 last edited by
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.
-
wrote on 1 Dec 2011, 05:53 last edited by
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] -
wrote on 1 Dec 2011, 17:39 last edited by
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.
-
wrote on 2 Dec 2011, 11:36 last edited by
Thanks Volker, that sounds good. But where do i get this dll's which are linked against 4.8.0 RC?
-
wrote on 2 Dec 2011, 12:46 last edited by
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.
-
wrote on 5 Dec 2011, 13:55 last edited by
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]
-
wrote on 5 Dec 2011, 23:22 last edited by
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.
-
wrote on 6 Dec 2011, 11:49 last edited by
Volker, you are a genius, that worked like a charm. Thank you very much!
4/9