diff options
author | Terry Geng <terry@terriex.com> | 2020-06-03 13:54:38 +0300 |
---|---|---|
committer | Terry Geng <terry@terriex.com> | 2020-06-06 15:37:59 +0300 |
commit | e90eb8c4cd7edc0cd3eddafac622edc45efff794 (patch) | |
tree | dd737a6399ef4702de73b82e831307be1ec79836 /src/Connection.h | |
parent | 5f421e64f7644be2598c15c75d5767e931b3c8a3 (diff) |
src: Made CryptState an abstract class, in order to support multiple crypto types in the future. Moved all crypto-related files into src/crypto.
Diffstat (limited to 'src/Connection.h')
-rw-r--r-- | src/Connection.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Connection.h b/src/Connection.h index 9928ef8a1..37ba15f0f 100644 --- a/src/Connection.h +++ b/src/Connection.h @@ -12,13 +12,15 @@ # include "win.h" #endif -#include "CryptState.h" +#include "crypto/CryptState.h" +#include "crypto/CryptStateOCB2.h" #include <QtCore/QElapsedTimer> #include <QtCore/QList> #include <QtCore/QMutex> #include <QtCore/QObject> #include <QtNetwork/QSslSocket> +#include <memory> #ifdef Q_OS_WIN # include <ws2tcpip.h> @@ -70,7 +72,7 @@ class Connection : public QObject { /// qmCrypt locks access to csCrypt. QMutex qmCrypt; #endif - CryptState csCrypt; + std::unique_ptr<CryptState> csCrypt; QList<QSslCertificate> peerCertificateChain() const; QSslCipher sessionCipher() const; |