Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Geng <terry@terriex.com>2020-06-03 13:54:38 +0300
committerTerry Geng <terry@terriex.com>2020-06-06 15:37:59 +0300
commite90eb8c4cd7edc0cd3eddafac622edc45efff794 (patch)
treedd737a6399ef4702de73b82e831307be1ec79836 /src/Connection.h
parent5f421e64f7644be2598c15c75d5767e931b3c8a3 (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.h6
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;