mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +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) :
|
||||
m_settings(settings)
|
||||
{
|
||||
ssh_init();
|
||||
}
|
||||
|
||||
ServerController::~ServerController()
|
||||
{
|
||||
ssh_finalize();
|
||||
}
|
||||
|
||||
ErrorCode ServerController::connectToHost(const ServerCredentials &credentials, ssh_session &session) {
|
||||
|
||||
@@ -26,6 +26,7 @@ class ServerController : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
ServerController(std::shared_ptr<Settings> settings, QObject *parent = nullptr);
|
||||
~ServerController();
|
||||
|
||||
typedef QList<QPair<QString, QString>> Vars;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user