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. qt.network.ssl: QSSlSocket: cannot resolve
Forum Updated to NodeBB v4.3 + New Features

qt.network.ssl: QSSlSocket: cannot resolve

Scheduled Pinned Locked Moved Solved General and Desktop
qtnetworkopenssl
7 Posts 3 Posters 11.6k 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.
  • F Offline
    F Offline
    Frederick0
    wrote on 19 Dec 2015, 19:28 last edited by
    #1

    Yesterday I was working with QNetworkAccessManager on Windows10 and noticed all of my network calls were not returning any results. When I looked at the console I noticed the following error messages.

    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 call unresolved function SSL_get0_next_proto_negotiated
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated

    I googled this error and stumbled upon this link, which advised that QT was built using a different OpenSSL library then the on my operating system is using. The solution was to rebuild QTBase.

    Being relativity new to QT I followed the instructions at this link. Everything seemed fine until about an hour into the build it failed building the qtwebkit module. When I searched the error I found an open discussion on the webkit mailing list about this being a bug.

    My question. Is there a way I can just rebuild the network module instead of having to build everything? does anyone know the configuration options I would need to pass building on win10/64bit/vc12?

    Thank you

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 19 Dec 2015, 19:33 last edited by
      #2

      @Frederick0 said:
      Hi and welcome
      did you install
      http://slproweb.com/products/Win32OpenSSL.html ( no 2 in the list, Win32 OpenSSL v1.0.2e)
      ( dll to windows folder)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 19 Dec 2015, 22:09 last edited by
        #3

        Hi and welcome to devnet,

        These are just warnings, you'll only have failures if you actively use these symbols. You can also just rebuild qtbase if you do it with the same sources as the version you have installed.

        @mrjj: never put OpenSSL dlls (or any other for that matter) in the windows folder. There will be other applications picking your version of OpenSSL rather than theirs which could bring problems.

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

        M 1 Reply Last reply 19 Dec 2015, 22:14
        0
        • S SGaist
          19 Dec 2015, 22:09

          Hi and welcome to devnet,

          These are just warnings, you'll only have failures if you actively use these symbols. You can also just rebuild qtbase if you do it with the same sources as the version you have installed.

          @mrjj: never put OpenSSL dlls (or any other for that matter) in the windows folder. There will be other applications picking your version of OpenSSL rather than theirs which could bring problems.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 19 Dec 2015, 22:14 last edited by mrjj
          #4

          @SGaist
          Ok. i though side by by dll loading would take dlls in folder for app first
          then system32. The reason I suggested using that option from installer is that it was
          shown in forum thread. I see your point.

          F 1 Reply Last reply 19 Dec 2015, 22:23
          0
          • M mrjj
            19 Dec 2015, 22:14

            @SGaist
            Ok. i though side by by dll loading would take dlls in folder for app first
            then system32. The reason I suggested using that option from installer is that it was
            shown in forum thread. I see your point.

            F Offline
            F Offline
            Frederick0
            wrote on 19 Dec 2015, 22:23 last edited by
            #5

            @SGaist j Thank you. After reading your comment I examined my code further and realized the method I was using to debug my response was invalid. I jumped the gun in concluding the warning messages were at fault.

            @mrjj Thank you. I installed the DLL into a bin folder and added them to the execution directory w/o much luck. Thank you for your suggestion though.

            M 1 Reply Last reply 19 Dec 2015, 22:27
            0
            • F Frederick0
              19 Dec 2015, 22:23

              @SGaist j Thank you. After reading your comment I examined my code further and realized the method I was using to debug my response was invalid. I jumped the gun in concluding the warning messages were at fault.

              @mrjj Thank you. I installed the DLL into a bin folder and added them to the execution directory w/o much luck. Thank you for your suggestion though.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 19 Dec 2015, 22:27 last edited by
              #6

              @Frederick0
              Sorry for misunderstanding. I thought you wanted to get SSL to work, not
              just get rid of the warning.

              F 1 Reply Last reply 19 Dec 2015, 22:46
              0
              • M mrjj
                19 Dec 2015, 22:27

                @Frederick0
                Sorry for misunderstanding. I thought you wanted to get SSL to work, not
                just get rid of the warning.

                F Offline
                F Offline
                Frederick0
                wrote on 19 Dec 2015, 22:46 last edited by
                #7

                @mrjj no misunderstanding. It was the latter and both of your responses were equally helpful.

                1 Reply Last reply
                0

                7/7

                19 Dec 2015, 22:46

                • Login

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