mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
20 lines
302 B
C++
20 lines
302 B
C++
#include "sshclient.h"
|
|
|
|
#include <libssh/libssh.h>
|
|
#include <libssh/sftp.h>
|
|
|
|
SshClient::SshClient(QObject *parent) : QObject(parent)
|
|
{
|
|
ssh_init();
|
|
}
|
|
|
|
SshClient::~SshClient()
|
|
{
|
|
ssh_finalize();
|
|
}
|
|
|
|
std::shared_ptr<SshSession> SshClient::getSession()
|
|
{
|
|
return std::make_shared<SshSession>();
|
|
}
|