December 1, 2011

Stefan Walter Stefan Walter
Lab Rat
81 posts

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?

8 replies

December 1, 2011

veeeee_d veeeee_d
Lab Rat
53 posts

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.

December 1, 2011

Stefan Walter Stefan Walter
Lab Rat
81 posts

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.

veeeee_d wrote:
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.

December 1, 2011

Volker Volker
Ant Farmer
5331 posts

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.

December 2, 2011

Stefan Walter Stefan Walter
Lab Rat
81 posts

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

December 2, 2011

Volker Volker
Ant Farmer
5331 posts

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 [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.

December 5, 2011

Stefan Walter Stefan Walter
Lab Rat
81 posts

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?

Volker wrote:
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 [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.

December 6, 2011

Volker Volker
Ant Farmer
5331 posts

You can get the DLLs from here [slproweb.com]

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

December 6, 2011

Stefan Walter Stefan Walter
Lab Rat
81 posts

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

 
  ‹‹ How do I block a shortcut?      Convert IplImage to QByteArray ››

You must log in to post a reply. Not a member yet? Register here!