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. Using QSslSocket with custom OpenSSL
Forum Update on Monday, May 27th 2025

Using QSslSocket with custom OpenSSL

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++ qtopensslsslwindows 10
41 Posts 9 Posters 33.3k 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.
  • O Offline
    O Offline
    Opa114
    wrote on last edited by
    #31

    Thanks! But why are my versions different?
    I build Qt with OpenSSL 1.0.2j, so both outputs must be the same or not?

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

      Silly question but are you sure that you are using your self-build Qt in your kit ?

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

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        Silly question but are you sure that you are using your self-build Qt in your kit ?

        O Offline
        O Offline
        Opa114
        wrote on last edited by Opa114
        #33

        @SGaist said in Using QSslSocket with custom OpenSSL:

        Silly question but are you sure that you are using your self-build Qt in your kit ?

        yes :)
        could it have to do with Qt-Creator, which was build with another version?

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

          No, the Qt version used to build Qt Creator doesn't affect any any way the Qt version you are using with your kit.

          Do you have another OpenSSL version installed on your system ?

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

          O C 2 Replies Last reply
          0
          • SGaistS SGaist

            No, the Qt version used to build Qt Creator doesn't affect any any way the Qt version you are using with your kit.

            Do you have another OpenSSL version installed on your system ?

            O Offline
            O Offline
            Opa114
            wrote on last edited by
            #35

            @SGaist said in Using QSslSocket with custom OpenSSL:

            on used to bui

            no not installed like the precompiled OpenSSL Libraries. I searched the whole PC (Windows) for OpenSSL and libeay32.dll. I found many applications which are using OpenSSL but only one Application uses the specific OpenSSL version OpenSSL 1.0.2g 1 Mar 2016 i posted above. This Application is Adobe Lightroom.

            Could this be the problem on building Qt that some shipped libeay32.dlls are used on build process?

            1 Reply Last reply
            0
            • SGaistS SGaist

              No, the Qt version used to build Qt Creator doesn't affect any any way the Qt version you are using with your kit.

              Do you have another OpenSSL version installed on your system ?

              C Offline
              C Offline
              CarlosQ
              wrote on last edited by
              #36

              @SGaist Sorry, i have the same problem.
              When i print:
              qDebug() << QSslSocket::supportsSsl(); ==> false
              qDebug() << QSslSocket::sslLibraryBuildVersionString(); ==> "OpenSSL 1.0.2g 1 Mar 2016"
              qDebug() << QSslSocket::sslLibraryVersionString(); ==> ""

              and i obtain these messages:
              qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
              qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
              qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
              qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
              qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error

              I have instaled only Qt 5.7 on Windows 7 32. What can i do?
              Thanks

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

                Hi,

                Do you have OpenSSL installed ? Built with the same compiler as Qt ? In a folder known to your application ?

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

                C 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Do you have OpenSSL installed ? Built with the same compiler as Qt ? In a folder known to your application ?

                  C Offline
                  C Offline
                  CarlosQ
                  wrote on last edited by
                  #38

                  @SGaist No, no and no. Ohhhh. i'll try to build the libraries.

                  Sorry, thanks.

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

                    You can find here prebuilt versions of OpenSSL for various compilers.

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

                    C 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      You can find here prebuilt versions of OpenSSL for various compilers.

                      C Offline
                      C Offline
                      CarlosQ
                      wrote on last edited by
                      #40

                      @SGaist Thank you for the link. I was trying to build the libraries and I'm going crazy.

                      I have Qt 5.7.0 on a Windows 7 32 bits, which instalation should be correct?. I think "Win32 OpenSSL v1.1.0c". Is it ok?.

                      Thanks again.

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

                        IIRC there was a renaming of the libraries of OpenSSL so you'll have to double check.

                        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
                        0

                        • Login

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