Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8896

QT SSL handshake error when OpenSSL reporting successful handshake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.6.2
    • Network
    • None
    • OMAP 3530, Windows CE, OpenSSL .9.8.m, QT 4.6.2 static build

    Description

      On a TI OMAP 3530, running Windows CE 6, R2/R3, and QT 4.5.2 or 4.6.2 in a static build configuration, attempting to call connectToHostEncrypted is resulting in a onHandshakeError signal. Using the same QT code, OpenSSL version, and OS dependencies, this succeeds on a slower, PXA320 CPU. Have reproduced this issue using OpenSSL .9.8.L and .9.8.M. From OpenSSL debug, it can be seen that QT is calling SSL_get_error in a polling fashion. For several seconds, OpenSSL returns SSL_ERROR_WANT_READ. Finally, SSL_connect() returns 1, and QT reports SSLHandshakeFailedError.

      In the passing scenario, from the PXA320, after SSL_get_error returns 1, two subsequent calls to SSL_read can be seen, followed by some more polling of status, and a successful connection reported by QT. Am thinking this may be somewhat related to timing, as the OMAP 3530 is a pretty high performance CPU. This bug is effecting a product under development by our compay which relies on SSL communication and QT for the user-interface. Please contact me for additional information if you cannot reproduce this. Will be happy to assist in which ever way I can. Thanks,

      Nick Velado
      nfvelado@marketspectruminc.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            nfvelado Nick Velado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes