Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSslSocket usage throws errors cannot resolve CRYPTO_num_locks etc.
Forum Update on Monday, May 27th 2025

QSslSocket usage throws errors cannot resolve CRYPTO_num_locks etc.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 4.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sahil_Rangari
    wrote on 21 Jan 2020, 09:34 last edited by
    #1

    Hi,

    We have a Qt 5.5.1 app that uses QSslSocket to connect to a https URL.

    On RHEL 7.x, this works all right.

    However, on RHEL 8 it gives the flowing error:
    21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_num_locks
    21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_set_id_callback
    21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_set_locking_callback
    21.01.2020 14:49:03 QSslSocket: cannot resolve ERR_free_strings
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_new_null
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_push
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_free
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_num
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_pop_free
    21.01.2020 14:49:03 QSslSocket: cannot resolve sk_value
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_library_init
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_load_error_strings
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_get_ex_new_index
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv2_client_method
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv23_client_method
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv2_server_method
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv23_server_method
    21.01.2020 14:49:03 QSslSocket: cannot resolve X509_STORE_CTX_get_chain
    21.01.2020 14:49:03 QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    21.01.2020 14:49:03 QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLeay
    21.01.2020 14:49:03 QSslSocket: cannot resolve SSLeay_version
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSLeay
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_num_locks
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSL_library_init
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSLv23_client_method
    21.01.2020 14:49:03 QSslSocket: cannot call unresolved function sk_num
    21.01.2020 14:49:03 unsupported date format detected

    Do we need any specific TLS package to resolve the above?

    Thanks.

    J 1 Reply Last reply 21 Jan 2020, 10:00
    0
    • S Sahil_Rangari
      21 Jan 2020, 09:34

      Hi,

      We have a Qt 5.5.1 app that uses QSslSocket to connect to a https URL.

      On RHEL 7.x, this works all right.

      However, on RHEL 8 it gives the flowing error:
      21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_num_locks
      21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_set_id_callback
      21.01.2020 14:49:03 QSslSocket: cannot resolve CRYPTO_set_locking_callback
      21.01.2020 14:49:03 QSslSocket: cannot resolve ERR_free_strings
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_new_null
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_push
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_free
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_num
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_pop_free
      21.01.2020 14:49:03 QSslSocket: cannot resolve sk_value
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_library_init
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_load_error_strings
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSL_get_ex_new_index
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv2_client_method
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv23_client_method
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv2_server_method
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLv23_server_method
      21.01.2020 14:49:03 QSslSocket: cannot resolve X509_STORE_CTX_get_chain
      21.01.2020 14:49:03 QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
      21.01.2020 14:49:03 QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLeay
      21.01.2020 14:49:03 QSslSocket: cannot resolve SSLeay_version
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSLeay
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_num_locks
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSL_library_init
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function SSLv23_client_method
      21.01.2020 14:49:03 QSslSocket: cannot call unresolved function sk_num
      21.01.2020 14:49:03 unsupported date format detected

      Do we need any specific TLS package to resolve the above?

      Thanks.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Jan 2020, 10:00 last edited by
      #2

      @Sahil_Rangari Did you install OpenSSL?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 21 Jan 2020, 10:39
      0
      • J jsulm
        21 Jan 2020, 10:00

        @Sahil_Rangari Did you install OpenSSL?

        S Offline
        S Offline
        Sahil_Rangari
        wrote on 21 Jan 2020, 10:39 last edited by
        #3

        @jsulm

        openssl version gives "OpenSSL 1.1.1 FIPS" with date few months back.

        J 1 Reply Last reply 21 Jan 2020, 11:42
        0
        • S Sahil_Rangari
          21 Jan 2020, 10:39

          @jsulm

          openssl version gives "OpenSSL 1.1.1 FIPS" with date few months back.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 21 Jan 2020, 11:42 last edited by
          #4

          @Sahil_Rangari If I'm not mistaken you need OpenSSL 1.0.x for that old Qt version

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • S Offline
            S Offline
            Sahil_Rangari
            wrote on 23 Jan 2020, 09:11 last edited by
            #5

            Hi,

            If I install compat-openssl10.x86_64, the application works as desired.
            Should this be an acceptable solution for RHEL 8.0?

            Thanks.

            J 1 Reply Last reply 23 Jan 2020, 09:19
            0
            • S Sahil_Rangari
              23 Jan 2020, 09:11

              Hi,

              If I install compat-openssl10.x86_64, the application works as desired.
              Should this be an acceptable solution for RHEL 8.0?

              Thanks.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 23 Jan 2020, 09:19 last edited by
              #6

              @Sahil_Rangari The OpenSSL version you need depends on your Qt version. When using older Qt versions you need 1.0.x, with newer versions you need 1.1.x.
              So, yes I think this solution should be OK.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              1/6

              21 Jan 2020, 09:34

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved