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. QNetwork error with EVP_CIPHER
Forum Updated to NodeBB v4.3 + New Features

QNetwork error with EVP_CIPHER

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 492 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.
  • D Offline
    D Offline
    DuneDoron
    wrote on last edited by
    #1

    hi , I'm trying to post to HTTP with JSON and get the message:
    :-1: error: /usr/lib/libQt5Network.so: warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup
    any help ?
    code:
    QNetworkAccessManager nam;
    QNetworkRequest req;
    req.setUrl(QUrl(URL));
    req.setHeader(QNetworkRequest::ContentTypeHeader,"application/json");
    QNetworkReply* replay = nam.post(req,jsonData);
    QEventLoop loop;
    QObject::connect(replay,SIGNAL(finished()), &loop, SLOT(quit()));
    loop.exec();

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Are you using libressl instead openssl? See https://bugreports.qt.io/browse/QTBUG-63291

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • D Offline
        D Offline
        DuneDoron
        wrote on last edited by
        #3

        how can i change to openssl ?
        saw the problem you sent , didnt understand what to do

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The first question is - what Qt do you use? Self-compiled, from your distribution? From the Qt installer?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DuneDoron
            wrote on last edited by
            #5

            we are using void Linux distribution which strict to libressl.
            is there a known way to use QT Network classes with libressl for making the Post (for Jason) work ?

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @DuneDoron said in QNetwork error with EVP_CIPHER:

              is there a known way to use QT Network classes with libressl for making the Post (for Jason) work ?

              Modify Qt so it works and provide a patch to upstream it into Qt.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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