HTTP example code doesn't work in my app
-
When I run the HTTP example code, it gets the data just fine from the https server I am using. But when I copy the code into my app, I get a bunch of SSL errors:
qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failedI don't see any special SSL handing in the HTTP app. Some kind of setup or something?
-
When I run the HTTP example code, it gets the data just fine from the https server I am using. But when I copy the code into my app, I get a bunch of SSL errors:
qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No functional TLS backend was found qt.network.ssl: No TLS backend is available qt.network.ssl: No functional TLS backend was found qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failedI don't see any special SSL handing in the HTTP app. Some kind of setup or something?
@JonathanA
I believe you have to (a) link with the OpenSSL libraries and (b) have the runtimes found next to executable or onPATH. Is that the case for whatever "HTTP example code" you are referring to but not for your code/app? -
And by "example code", I mean this code:
https://code.qt.io/cgit/qt/qtbase.git/tree/examples/network/http?h=6.4
In both cases, I am building with Qt 6.4.1
-
I have sort of figured it out. The DLLs I'm using are bringing along their own libssl and libcrypto and that seems to be interfering with the Qt SSL evaluation. It may be having a problem loading them and thus just giving up. The weird part now is if I delete all the DLLs from the build_* folder, everything works, until the "install" happens again and copies the DLLs back. But I don't know how it is running at all if I delete the DLLs from the build folder!