#include <sshclient.h>
Public Types | |
enum | authtype_t { NO_AUTHTYPE, DSS, RSA, NO_AUTHTYPE, DSS, RSA } |
enum | transport_type_t { NO_TRANSPORT, RAW, SFTP, NO_TRANSPORT, RAW, SFTP } |
enum | authtype_t { NO_AUTHTYPE, DSS, RSA, NO_AUTHTYPE, DSS, RSA } |
enum | transport_type_t { NO_TRANSPORT, RAW, SFTP, NO_TRANSPORT, RAW, SFTP } |
Public Member Functions | |
SSHClient () | |
~SSHClient () | |
int | sshRead (amf::Buffer &buf) |
int | sshRead (boost::uint8_t *buf, size_t length) |
int | sshRead (std::string &buf) |
int | sshWrite (amf::Buffer &buf) |
int | sshWrite (const boost::uint8_t *buf, size_t length) |
int | sshWrite (std::string &buf) |
bool | sshShutdown () |
bool | sshConnect (int fd) |
bool | sshConnect (int fd, std::string &hostname) |
void | setUser () |
void | setUser (std::string name) |
std::string & | getUser () |
void | setPassword (std::string pw) |
std::string & | getPassword () |
void | setHostname (std::string name) |
std::string & | getHostname () |
void | setServerAuth (bool flag) |
bool | getServerAuth () |
void | setAuthType (authtype_t type) |
authtype_t | getAuthType () |
void | setTransportType (transport_type_t type) |
transport_type_t | getTransportType () |
int | authKbdint () |
int | authKbdint (ssh_session) |
ssh_channel | openChannel () |
ssh_channel | openChannel (ssh_session session) |
void | closeChannel () |
void | closeChannel (ssh_channel channel) |
ssh_channel | getChannel () |
ssh_session | getSession () |
boost::shared_ptr< amf::Buffer > & | getBuffer () |
void | dump () |
SSHClient () | |
~SSHClient () | |
int | sshRead (amf::Buffer &buf) |
int | sshRead (boost::uint8_t *buf, size_t length) |
int | sshRead (std::string &buf) |
int | sshWrite (amf::Buffer &buf) |
int | sshWrite (const boost::uint8_t *buf, size_t length) |
int | sshWrite (std::string &buf) |
bool | sshShutdown () |
bool | sshConnect (int fd) |
bool | sshConnect (int fd, std::string &hostname) |
void | setUser () |
void | setUser (std::string name) |
std::string & | getUser () |
void | setPassword (std::string pw) |
std::string & | getPassword () |
void | setHostname (std::string name) |
std::string & | getHostname () |
void | setServerAuth (bool flag) |
bool | getServerAuth () |
void | setAuthType (authtype_t type) |
authtype_t | getAuthType () |
void | setTransportType (transport_type_t type) |
transport_type_t | getTransportType () |
int | authKbdint () |
int | authKbdint (ssh_session) |
ssh_channel | openChannel () |
ssh_channel | openChannel (ssh_session session) |
void | closeChannel () |
void | closeChannel (ssh_channel channel) |
ssh_channel | getChannel () |
ssh_session | getSession () |
boost::shared_ptr< amf::Buffer > & | getBuffer () |
void | dump () |
Protected Member Functions | |
int | readChannel (ssh_channel channel, amf::Buffer &buf) |
int | writeChannel (ssh_channel channel, amf::Buffer &buf) |
int | readChannel (ssh_channel channel, amf::Buffer &buf) |
int | writeChannel (ssh_channel channel, amf::Buffer &buf) |
Protected Attributes | |
std::string | _hostname |
std::string | _user |
std::string | _password |
bool | _need_server_auth |
authtype_t | _authtype |
transport_type_t | _transporttype |
int | _state |
ssh_session | _session |
ssh_channel | _channel |
boost::shared_ptr< amf::Buffer > | _buffer |
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
gnash::SSHClient::SSHClient | ( | ) |
References setUser().
gnash::SSHClient::~SSHClient | ( | ) |
References sshShutdown().
gnash::SSHClient::SSHClient | ( | ) |
gnash::SSHClient::~SSHClient | ( | ) |
int gnash::SSHClient::authKbdint | ( | ) |
References _session.
Referenced by sshConnect().
int gnash::SSHClient::authKbdint | ( | ssh_session | session | ) |
References name.
int gnash::SSHClient::authKbdint | ( | ) |
int gnash::SSHClient::authKbdint | ( | ssh_session | ) |
void gnash::SSHClient::closeChannel | ( | ) |
References _channel.
void gnash::SSHClient::closeChannel | ( | ssh_channel | channel | ) |
References _channel.
void gnash::SSHClient::closeChannel | ( | ) |
void gnash::SSHClient::closeChannel | ( | ssh_channel | channel | ) |
void gnash::SSHClient::dump | ( | ) |
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
References _.
void gnash::SSHClient::dump | ( | ) |
Reimplemented in gnash::SSHServer, and gnash::SSHServer.
authtype_t gnash::SSHClient::getAuthType | ( | ) | [inline] |
authtype_t gnash::SSHClient::getAuthType | ( | ) | [inline] |
boost::shared_ptr<amf::Buffer>& gnash::SSHClient::getBuffer | ( | ) | [inline] |
References _buffer.
boost::shared_ptr<amf::Buffer>& gnash::SSHClient::getBuffer | ( | ) | [inline] |
References _buffer.
ssh_channel gnash::SSHClient::getChannel | ( | ) | [inline] |
ssh_channel gnash::SSHClient::getChannel | ( | ) | [inline] |
std::string& gnash::SSHClient::getHostname | ( | ) | [inline] |
std::string& gnash::SSHClient::getHostname | ( | ) | [inline] |
std::string& gnash::SSHClient::getPassword | ( | ) | [inline] |
std::string& gnash::SSHClient::getPassword | ( | ) | [inline] |
bool gnash::SSHClient::getServerAuth | ( | ) | [inline] |
bool gnash::SSHClient::getServerAuth | ( | ) | [inline] |
ssh_session gnash::SSHClient::getSession | ( | ) | [inline] |
ssh_session gnash::SSHClient::getSession | ( | ) | [inline] |
transport_type_t gnash::SSHClient::getTransportType | ( | ) | [inline] |
transport_type_t gnash::SSHClient::getTransportType | ( | ) | [inline] |
std::string& gnash::SSHClient::getUser | ( | ) | [inline] |
std::string& gnash::SSHClient::getUser | ( | ) | [inline] |
ssh_channel gnash::SSHClient::openChannel | ( | ) |
References _session.
ssh_channel gnash::SSHClient::openChannel | ( | ssh_session | session | ) |
References _channel.
ssh_channel gnash::SSHClient::openChannel | ( | ) |
ssh_channel gnash::SSHClient::openChannel | ( | ssh_session | session | ) |
int gnash::SSHClient::readChannel | ( | ssh_channel | channel, | |
amf::Buffer & | buf | |||
) | [protected] |
int gnash::SSHClient::readChannel | ( | ssh_channel | channel, | |
amf::Buffer & | buf | |||
) | [protected] |
void gnash::SSHClient::setAuthType | ( | authtype_t | type | ) | [inline] |
void gnash::SSHClient::setAuthType | ( | authtype_t | type | ) | [inline] |
void gnash::SSHClient::setHostname | ( | std::string | name | ) | [inline] |
void gnash::SSHClient::setHostname | ( | std::string | name | ) | [inline] |
void gnash::SSHClient::setPassword | ( | std::string | pw | ) | [inline] |
void gnash::SSHClient::setPassword | ( | std::string | pw | ) | [inline] |
void gnash::SSHClient::setServerAuth | ( | bool | flag | ) | [inline] |
void gnash::SSHClient::setServerAuth | ( | bool | flag | ) | [inline] |
void gnash::SSHClient::setTransportType | ( | transport_type_t | type | ) | [inline] |
void gnash::SSHClient::setTransportType | ( | transport_type_t | type | ) | [inline] |
void gnash::SSHClient::setUser | ( | std::string | name | ) | [inline] |
void gnash::SSHClient::setUser | ( | ) |
void gnash::SSHClient::setUser | ( | std::string | name | ) | [inline] |
void gnash::SSHClient::setUser | ( | ) |
References _user.
Referenced by SSHClient(), and gnash::SSHServer::SSHServer().
bool gnash::SSHClient::sshConnect | ( | int | fd, | |
std::string & | hostname | |||
) |
bool gnash::SSHClient::sshConnect | ( | int | fd | ) |
References _hostname.
bool gnash::SSHClient::sshConnect | ( | int | fd, | |
std::string & | hostname | |||
) |
References _session, _state, _user, authKbdint(), free(), and sshShutdown().
bool gnash::SSHClient::sshConnect | ( | int | fd | ) |
int gnash::SSHClient::sshRead | ( | boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSHClient::sshRead | ( | amf::Buffer & | buf | ) |
int gnash::SSHClient::sshRead | ( | boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSHClient::sshRead | ( | amf::Buffer & | buf | ) |
int gnash::SSHClient::sshRead | ( | std::string & | buf | ) |
int gnash::SSHClient::sshRead | ( | std::string & | buf | ) |
bool gnash::SSHClient::sshShutdown | ( | ) |
References _session, and free().
Referenced by sshConnect(), ~SSHClient(), and gnash::SSHServer::~SSHServer().
bool gnash::SSHClient::sshShutdown | ( | ) |
int gnash::SSHClient::sshWrite | ( | const boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSHClient::sshWrite | ( | amf::Buffer & | buf | ) |
int gnash::SSHClient::sshWrite | ( | amf::Buffer & | buf | ) |
int gnash::SSHClient::sshWrite | ( | const boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSHClient::sshWrite | ( | std::string & | buf | ) |
int gnash::SSHClient::sshWrite | ( | std::string & | buf | ) |
int gnash::SSHClient::writeChannel | ( | ssh_channel | channel, | |
amf::Buffer & | buf | |||
) | [protected] |
int gnash::SSHClient::writeChannel | ( | ssh_channel | channel, | |
amf::Buffer & | buf | |||
) | [protected] |
authtype_t gnash::SSHClient::_authtype [protected] |
boost::shared_ptr< amf::Buffer > gnash::SSHClient::_buffer [protected] |
ssh_channel gnash::SSHClient::_channel [protected] |
Referenced by closeChannel(), openChannel(), gnash::SSHServer::processSSHMessage(), sshRead(), and sshWrite().
std::string gnash::SSHClient::_hostname [protected] |
Referenced by sshConnect().
bool gnash::SSHClient::_need_server_auth [protected] |
std::string gnash::SSHClient::_password [protected] |
ssh_session gnash::SSHClient::_session [protected] |
Reimplemented in gnash::SSHServer.
Referenced by authKbdint(), openChannel(), sshConnect(), sshRead(), sshShutdown(), and sshWrite().
int gnash::SSHClient::_state [protected] |
Referenced by sshConnect().
transport_type_t gnash::SSHClient::_transporttype [protected] |
std::string gnash::SSHClient::_user [protected] |
Referenced by setUser(), and sshConnect().