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

Android seems to build/ship incompatible openssl library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.5.0 FF
    • Network: SSL
    • None
    • Android

    Description

      When running some tests that require a TLS connection, the Android configuration in CI provides multiple warnings like:

      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_init_ssl
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_init_crypto
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve ASN1_STRING_get0_data
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve EVP_CIPHER_CTX_reset
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve EVP_PKEY_param_check
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_new_null
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_push
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_free
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_num
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_pop_free
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OPENSSL_sk_value
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve DH_get0_pqg
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_CTX_get_security_level
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_CTX_set_security_level
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_CTX_set_ciphersuites
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_set_psk_use_session_callback
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_SESSION_is_resumable
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_get_client_random
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve SSL_SESSION_get_master_key
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve TLS_client_method
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve TLS_server_method
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_STORE_CTX_get0_chain
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_getm_notBefore
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_getm_notAfter
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_get_version
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_STORE_set_ex_data
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve X509_STORE_get_ex_data
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve CRYPTO_free
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OpenSSL_version_num
      QWARN  : tst_OAuth2::setSslConfig() : QSslSocket: cannot resolve OpenSSL_version
      QWARN  : tst_OAuth2::setSslConfig() : Incompatible version of OpenSSL
      QWARN  : tst_OAuth2::setSslConfig() : The backend "cert-only" does not support QSslKey
      QWARN  : tst_OAuth2::setSslConfig() : Active TLS backend does not support key creation

      The warnings suggest that a backend without TLS is selected. If the tests do not guard against that, they can fail.

      Some examples:

      qtbase

      integration: https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1668655426

      log: https://testresults.qt.io/coin/api/results/qt/qtbase/b09e4a9907d977b0a404e4e104b2faa4d30a0b22/LinuxRHEL_8_4x86_64AndroidAndroid_ANYx86GCCqtci-linux-RHEL-8.4-x86_64-50-28a55cAndroidTestRun_Sccache_UseConfigure/91c2321ff439cdbff72a8e88a2841a56d8d5e36d/test_1668655491/log.txt.gz

      qtnetworkauth

      integration: https://testresults.qt.io/coin/integration/qt/qtnetworkauth/tasks/1669075273

      log: https://testresults.qt.io/logs/qt/qtnetworkauth/bf3bd5c0a94a11adbfd6b396a3f2ce9c25b2b739/LinuxRHEL_8_4x86_64AndroidAndroid_ANYx86GCCqtci-linux-RHEL-8.4-x86_64-50-28a55cAndroidTestRun_Sccache_UseConfigure/333e61c7044d7a11dd0c14886ab00de65198c989/test_1669075338/log.txt.gz

       

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              ivan.solovev Ivan Solovev
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes