diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-01-25 15:37:03 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-02-01 14:36:40 +0100 |
commit | 1a0da3ae69964142b3a31d87ecc88a925006a4de (patch) | |
tree | 88c8f5cd419d3a2aa9e1f42d288321831ec86165 /src/network/ssl/qsslkey_p.h | |
parent | 59252a3a969dcfd07304400f68503a4687292aac (diff) |
QSsl::TlsKey - provide the interface and implementations
which will become parts of TLS plugins in the future.
Task-number: QTBUG-65922
Change-Id: I4ee3c59c435fc34a9f4dacd3ff0e3cfb44251e23
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/ssl/qsslkey_p.h')
-rw-r--r-- | src/network/ssl/qsslkey_p.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/network/ssl/qsslkey_p.h b/src/network/ssl/qsslkey_p.h index dd1a31b0e5..402d00daf1 100644 --- a/src/network/ssl/qsslkey_p.h +++ b/src/network/ssl/qsslkey_p.h @@ -61,20 +61,19 @@ #include <openssl/dsa.h> #endif +#include <memory> + QT_BEGIN_NAMESPACE +namespace QSsl { +class TlsKey; +} + class QSslKeyPrivate { public: - inline QSslKeyPrivate() - : algorithm(QSsl::Opaque) - , opaque(nullptr) - { - clear(false); - } - - inline ~QSslKeyPrivate() - { clear(); } + QSslKeyPrivate(); + ~QSslKeyPrivate(); void clear(bool deep = true); @@ -130,6 +129,7 @@ public: int keyLength; #endif + std::unique_ptr<QSsl::TlsKey> keyBackend; QAtomicInt ref; private: |