Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115718

When I build with OPENSSL_NO_DEPRECATED_3_0 defined, handle method in qtlskey_openssl returns "NULL"

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P5: Not important
    • 6.7.0 FF
    • None
    • Network: SSL
    • None
    • 44b4e5746 (dev)

    Description

      When I build with OPENSSL_NO_DEPRECATED_3_0, handle method in qtlskey_openssl  returns "NULL".

       

      Will it possible to return genericKey instead of nullptr, since it is the variable that stores the privatekey ?

       

      Qt::HANDLE TlsKeyOpenSSL::handle() const
      {
          if (keyAlgorithm == QSsl::Opaque)
              return Qt::HANDLE(opaque);#ifndef OPENSSL_NO_DEPRECATED_3_0
          switch (keyAlgorithm) {
          case QSsl::Rsa:
              return Qt::HANDLE(rsa);
          case QSsl::Dsa:
              return Qt::HANDLE(dsa);
          case QSsl::Dh:
              return Qt::HANDLE(dh);
      #ifndef OPENSSL_NO_EC
          case QSsl::Ec:
              return Qt::HANDLE(ec);
      #endif
          default:
              return Qt::HANDLE(nullptr);
          }
      #else
          /*qCWarning(lcTlsBackend,
                    "This version of OpenSSL disabled direct manipulation with RSA/DSA/DH/EC_KEY structures, consider using QSsl::Opaque instead.");*/
          return Qt::HANDLE(genericKey);
      #endif
      } 

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            mccarey soguy gueye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes