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. Problem with openssl
Forum Updated to NodeBB v4.3 + New Features

Problem with openssl

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 228 Views 1 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.
  • Y Offline
    Y Offline
    YassineJ
    wrote on 30 Mar 2024, 23:29 last edited by
    #1

    Hello this is my first time posting here so please forgive me if i make any mistakes.
    I am using smtpclient to send emails from a qt application and i get this error.
    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 checked previous threads from different people that encountered this problem, i have installed openssl, added it to path, added the dll files (ssleay32.dll and libeay.dll) to the project folder and nothing worked.
    and this:

    qDebug()<<QSslSocket::supportsSsl();
    qDebug()<< QSslSocket::sslLibraryVersionString();
    qDebug()<< QSslSocket::sslLibraryBuildVersionString();

    returns this:

    false
    ""
    "OpenSSL 1.0.2t 10 Sep 2019"

    Please i need help with this. (i am using qt 5.9.9)

    C 1 Reply Last reply 31 Mar 2024, 03:49
    0
    • Y YassineJ
      30 Mar 2024, 23:29

      Hello this is my first time posting here so please forgive me if i make any mistakes.
      I am using smtpclient to send emails from a qt application and i get this error.
      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 checked previous threads from different people that encountered this problem, i have installed openssl, added it to path, added the dll files (ssleay32.dll and libeay.dll) to the project folder and nothing worked.
      and this:

      qDebug()<<QSslSocket::supportsSsl();
      qDebug()<< QSslSocket::sslLibraryVersionString();
      qDebug()<< QSslSocket::sslLibraryBuildVersionString();

      returns this:

      false
      ""
      "OpenSSL 1.0.2t 10 Sep 2019"

      Please i need help with this. (i am using qt 5.9.9)

      C Offline
      C Offline
      ChrisW67
      wrote on 31 Mar 2024, 03:49 last edited by
      #2

      @YassineJ said in Problem with openssl:

      i have installed openssl,

      Which version?
      I think you need OpenSSL 1.0.x version for this Qt version.
      OpenSSL 1.1.x you need Qt 5.12+

      added it to path, added the dll files (ssleay32.dll and libeay.dll)

      If it is in the system PATH then the DLLs should be found without copying them.

      to the project folder

      The should be in the same location as the executable if they are not on the PATH. This is typically not the same as the source folder if you are using any sort of disciplined IDE.

      1 Reply Last reply
      1

      1/2

      30 Mar 2024, 23:29

      • Login

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