Unsolved "HTTP Example" not working in 5.8 android.
-
The example "HTTP Example" http://doc.qt.io/qt-5/qtnetwork-http-example.html does not seem to work OOTB in 5.8 on android. I get a "Diffie-Hellman parameters are not valid" when I run it.
This important to me because I use similar code in my android app and get the same error. I also use the Firebase rest API which has also stopped working in 5.8.
I notice a new QSslDiffieHellmanParameters class which might have something to do with it. However, I cannot find any explanation I can follow.
Any help would be appreciated.
-
HI,
Which version of Android is it ? If recent, you may have to provide an OpenSSL build with your application.
-
Thanks for your help.
I am testing on a TIMMY M20 Pro Android 6.0. It worked fine with 5.7, would you expect that?
So I should follow the instructions in http://doc.qt.io/qt-5/opensslsupport.html?
-
I'll start by there but also take a look at the bug report system to see if you find something related to that.
-
Hi
I have the same problem with Qt 5.8 release version. With Qt 5.7 my code works, so my Android has an SSL Library.
Do I still have to provide the openSSL library?
-
Hi,
Like I wrote to @Sriep, check the bug report system to see if there's something related to that. But in any case, keep the warning of the Android dev in mind, they won't provide OpenSSL in more recent versions of Android.
-
Providing the openSSL libraries solved the problem.
Since I didn't update mit Android phone between testing with QT 5.7 and 5.8, Qt definetly changed something here (e.g. introducing the class QSslDiffieHellmanParameters).
Anyway, now I works.
Cheers