Qt - SLL error on Windows

My application throws the following errors in windows:

QSslSocket: cannot call unresolved SSLv3_client_method function

QSslSocket: cannot call unresolved SSL_CTX_new function

QSslSocket: cannot call unresolved SSL_library_init function

QSslSocket: cannot call unresolved function ERR_get_error

QSslSocket: cannot call unresolved function ERR_error_string

I already installed VS-C ++ Redistributables and OpenSSL, but I have no idea how to tell Qt to dynamically link to openSSL. I am using the LGPL version for Qt binaries and Qt Creator for Windows 7 (Linux build works fine)

+4
source share
2 answers

For some reason, Qt did not do very well with DLLs loaded from the Win32 OpenSSL Installation Project. Since I noticed that the application runs smoothly on machines with Tortoise Svn installed, I just copied the dlls provided using Tortoise and it worked very well for me.

I know, it’s strange that these dlls worked, and those from the Win32 OpenSSL installation project did not work, but now copying the DLL from the Tortoise Svn installation folder solved my problem.

+4
source

Download the latest OpenSSL pre-build files from this site .

I used Win32 OpenSSL v0.9.8r Light , as there is some debate about the release of v1. [Client tools are fine, you do not need a full distribution]

Make sure you install the DLLs so that they are visible in the window path. Or;

  • windows / system32 directory
  • application catalog
  • or add the location of the DLLs to the environment variable

This works for me with Qt v4.6.2

+4
source

All Articles