mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
libssh init
This commit is contained in:
@@ -43,7 +43,12 @@ using namespace QSsh;
|
|||||||
ServerController::ServerController(std::shared_ptr<Settings> settings, QObject *parent) :
|
ServerController::ServerController(std::shared_ptr<Settings> settings, QObject *parent) :
|
||||||
m_settings(settings)
|
m_settings(settings)
|
||||||
{
|
{
|
||||||
|
ssh_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
ServerController::~ServerController()
|
||||||
|
{
|
||||||
|
ssh_finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorCode ServerController::connectToHost(const ServerCredentials &credentials, ssh_session &session) {
|
ErrorCode ServerController::connectToHost(const ServerCredentials &credentials, ssh_session &session) {
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class ServerController : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ServerController(std::shared_ptr<Settings> settings, QObject *parent = nullptr);
|
ServerController(std::shared_ptr<Settings> settings, QObject *parent = nullptr);
|
||||||
|
~ServerController();
|
||||||
|
|
||||||
typedef QList<QPair<QString, QString>> Vars;
|
typedef QList<QPair<QString, QString>> Vars;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user