0
votes

I've created a simple dll in qt which starts up a new thread and handles different network request with the QNetworkAccessManager. Working with ordinary HTTP requests works fine but I've gotten some problems when trying to start using HTTPS instead.

I've installed openssl and configured qt to use it with: -openssl -I C:\OpenSSL\include -L C:\OpenSSL\lib

I can compile the dll but when I try to access the dll from my application I get a IniterrorSystem.DllNotFoundException. This error appears as soon as I try to use the QSslSocket class, for example I'm just trying to initiate a variable.

QSslSocket socket; With this initiation the dll crashes with the above error.

//QSslSocket socket; removing the init will let the dll continue but the https request doesn't work and I don't get any error message from the QNetworkAccessManager. I tried connecting to the sslError signal but that never happens as well.

I've put the dlls "libeay32.dll", "libssl32.dll" & "ssleay32.dll" in the same folder as my dll and have OpenSSL successfully installed.

Anyone have any Idea what I'm missing?

1

1 Answers

0
votes

Do you have the Visual C++ Runtime Libraries installed? OpenSSL depends on the msvcr dll on Windows.