libssh init

This commit is contained in:
pokamest 2022-12-14 21:50:52 +01:00
parent a611ddea2d
commit 951d915326
2 changed files with 6 additions and 0 deletions

View file

@ -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) {