Results 1 to 4 of 4

Thread: Server connection problem using OpenSSL with android

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2012
    Posts
    6
    Qt products
    Qt4

    Default Re: Server connection problem using OpenSSL with android

    Thank you for your reply.
    It's good to know I'm not the only one concerned by this issue.

    I'm still trying to solve this problem. I'll let you know if I achieve to do it

  2. #2
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: Server connection problem using OpenSSL with android

    Well, the good news is that after updating to 5.9, I no longer have any issues downloading files on either of the Android devices mentioned.

    The bad news is that after updating to 5.9, downloading fails on my iOS device with the error: "SSL handshake failed".

    update: Here is one solution for the now-broken iOS downloads:

    Qt Code:
    1. QNetworkRequest request(url);
    2. #if QT_VERSION == QT_VERSION_CHECK(5, 9, 0) && defined Q_OS_IOS
    3. QSslConfiguration sslConf = request.sslConfiguration();
    4. sslConf.setPeerVerifyMode(QSslSocket::VerifyNone);
    5. request.setSslConfiguration(sslConf);
    6. #endif
    To copy to clipboard, switch view to plain text mode 

    (care of the discussion here: https://stackoverflow.com/questions/...ndshake-failed)

    Unrelated: for anyone updating to 5.9 (or from any version to any version, really), remember to review your UI. After updating to 5.9, my views look different (and not in a good way). >.<
    Last edited by Urthas; 27th June 2017 at 18:28.

Similar Threads

  1. Libusb device Connection In Qt-Android-Emulator
    By saad_saadi in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th June 2015, 02:53
  2. How to create a SIP connection with Qt for Android?
    By rostamiani in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 11th June 2015, 08:05
  3. Replies: 2
    Last Post: 21st August 2014, 19:36
  4. Replies: 0
    Last Post: 11th November 2011, 19:18
  5. web server connection
    By sattu in forum Qt Programming
    Replies: 2
    Last Post: 3rd March 2011, 11:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.