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: cannot call unresolved function d2i_DHparams
Forum Updated to NodeBB v4.3 + New Features

QSslSocket: cannot call unresolved function d2i_DHparams

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 5.4k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    MrLibya
    wrote on last edited by
    #1

    hallo all

    i was trying 2 make a program to get a json file from the webserver using QtNetwork
    everytime i try to connect to the website it gives this error :

    qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
    qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
    

    so what is the problem ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MrLibya said in QSslSocket: cannot call unresolved function d2i_DHparams:

      QSslSocket: cannot call unresolved function d2i_DHparams

      Looks like missing openSSL

      https://stackoverflow.com/questions/10846536/unresolved-functions-while-working-with-qsslsocket

      M 1 Reply Last reply
      1
      • mrjjM mrjj

        @MrLibya said in QSslSocket: cannot call unresolved function d2i_DHparams:

        QSslSocket: cannot call unresolved function d2i_DHparams

        Looks like missing openSSL

        https://stackoverflow.com/questions/10846536/unresolved-functions-while-working-with-qsslsocket

        M Offline
        M Offline
        MrLibya
        wrote on last edited by
        #3

        @mrjj no ok it was my bad i was deleteing the QNetworkAccessManager object normal way , so i used the reply->deleteLater(); and now it's ok , then i add the ( libeay32.lib + ssleay32.lib ) to my project and in .pro file :

        LIBS += -LC:/OpenSSL/lib -llibeay32
        LIBS += -LC:/OpenSSL/lib -lssleay32
        

        and add the .dll files in the build folder and now i got thoes errors:

        qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
        qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_server_callback
        qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_use_psk_identity_hint
        qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
        qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
        qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
        qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
        qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
        qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
        qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
        qt.network.ssl: QSslSocket: cannot resolve SSL_set_alpn_protos
        qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_alpn_select_cb
        qt.network.ssl: QSslSocket: cannot resolve SSL_get0_alpn_selected
        qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated
        
        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @MrLibya said in QSslSocket: cannot call unresolved function d2i_DHparams:

          C:/OpenSS

          and did you in fact install it to that folder ?
          If yes, are you sure the libs are for your compiler ?
          mingw cant use visual studio and reverse

          M 1 Reply Last reply
          1
          • mrjjM mrjj

            @MrLibya said in QSslSocket: cannot call unresolved function d2i_DHparams:

            C:/OpenSS

            and did you in fact install it to that folder ?
            If yes, are you sure the libs are for your compiler ?
            mingw cant use visual studio and reverse

            M Offline
            M Offline
            MrLibya
            wrote on last edited by
            #5

            @mrjj i think it's compiled on vs , i will try 2 compile it on mingw

            1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Are you sure you are using OpenSSL dlls that are matching the compiler you are using ?

              By the way, you don't need to link your application to them, you should either copy the .dlls in the same folder as your application or go to the "Run" part of the "Project" panel in Qt Creator and modify the PATH environment variable there. Do NOT do it system wide.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2
              • M Offline
                M Offline
                MrLibya
                wrote on last edited by
                #7

                ok ty alot , i check again and i was using msvc2013 64bit , so i put the open ssl dll files that compiled with msvc 2013 64bit and it's work now , :)

                1 Reply Last reply
                1

                • Login

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