Details
-
Suggestion
-
Resolution: Fixed
-
P5: Not important
-
None
-
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
For Gerrit Dashboard: QTBUG-115718 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
494836,4 | Return generic key from TlsKeyOpenSSL::handle | dev | qt/qtbase | Status: MERGED | +2 | 0 |