[Qt-interest] [Solved] Is there something special needed for SSL on Windows?
Nikos Chantziaras
realnc at arcor.de
Tue Dec 8 06:27:33 CET 2009
On 12/08/2009 02:46 AM, Nikos Chantziaras wrote:
> I tried to run a small SSL-using app on Windows (using Qt Designer on
> Windows 7 64-bit) but QSslSocket generates
> QAbstractSocket::UnknownSocketError errors.
>
> It works fine in Linux.
>
> Before I start looking into whether the problem lies with my code, are
> there known issues with Qt and SSL on Windows? Do I need OpenSSL
> libaries/headers? The program compiles fine though, no errors or
> warnings about not found libraries/headers. It also is able to run OK
> (no errors about missing DLLs), except for SSL not working, of course.
After a lot of searching, I found out that Qt does not support SSL under
Windows out of the box. One needs to download the libeay32.dll and
ssleay32.dll OpenSSL DLLs and put them in the directory of the
application's .exe.
Another thing I found out is that establishing a connection with
QSslSocket or QTcpSocket is slow as molasses in Windows :P In Linux the
connection happens immediately. In Windows there's a delay of about 1
second before data can be sent.
More information about the Qt-interest-old
mailing list