mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
33 lines
605 B
C++
33 lines
605 B
C++
|
|
#ifndef IPSEC_PROTOCOL_H
|
||
|
|
#define IPSEC_PROTOCOL_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QProcess>
|
||
|
|
#include <QString>
|
||
|
|
#include <QTemporaryFile>
|
||
|
|
#include <QTimer>
|
||
|
|
|
||
|
|
#include "vpnprotocol.h"
|
||
|
|
#include "core/ipcclient.h"
|
||
|
|
|
||
|
|
class Ikev2Protocol : public VpnProtocol
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit Ikev2Protocol(const QJsonObject& configuration, QObject* parent = nullptr);
|
||
|
|
virtual ~Ikev2Protocol() override;
|
||
|
|
|
||
|
|
ErrorCode start() override;
|
||
|
|
void stop() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
void readIkev2Configuration(const QJsonObject &configuration);
|
||
|
|
|
||
|
|
|
||
|
|
private:
|
||
|
|
QJsonObject m_config;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // IPSEC_PROTOCOL_H
|