#include <sslclient.h>
Public Member Functions | |
SSLClient () | |
~SSLClient () | |
int | sslRead (amf::Buffer &buf) |
int | sslRead (boost::uint8_t *buf, size_t length) |
int | sslRead (std::string &buf) |
int | sslWrite (amf::Buffer &buf) |
int | sslWrite (const boost::uint8_t *buf, size_t length) |
int | sslWrite (std::string &buf) |
bool | sslSetupCTX () |
bool | sslSetupCTX (std::string &keyfile, std::string &cafile) |
bool | sslShutdown () |
bool | sslConnect (int fd) |
bool | sslConnect (int fd, std::string &hostname, short port) |
void | setKeyfile (std::string filespec) |
std::string & | getKeyfile () |
void | setCAlist (std::string filespec) |
std::string & | getCAlist () |
void | setPassword (std::string pw) |
std::string & | getPassword () |
void | setCert (std::string filespec) |
std::string & | getCert () |
void | setRootPath (std::string filespec) |
std::string & | getRootPath () |
void | setPem (std::string filespec) |
std::string & | getPem () |
void | setHostname (std::string name) |
std::string & | getHostname () |
void | setServerAuth (bool flag) |
bool | getServerAuth () |
bool | checkCert () |
bool | checkCert (std::string &hostname) |
void | dump () |
SSLClient () | |
~SSLClient () | |
int | sslRead (amf::Buffer &buf) |
int | sslRead (boost::uint8_t *buf, size_t length) |
int | sslRead (std::string &buf) |
int | sslWrite (amf::Buffer &buf) |
int | sslWrite (const boost::uint8_t *buf, size_t length) |
int | sslWrite (std::string &buf) |
bool | sslSetupCTX () |
bool | sslSetupCTX (std::string &keyfile, std::string &cafile) |
bool | sslShutdown () |
bool | sslConnect (int fd) |
bool | sslConnect (int fd, std::string &hostname, short port) |
void | setKeyfile (std::string filespec) |
std::string & | getKeyfile () |
void | setCAlist (std::string filespec) |
std::string & | getCAlist () |
void | setPassword (std::string pw) |
std::string & | getPassword () |
void | setCert (std::string filespec) |
std::string & | getCert () |
void | setRootPath (std::string filespec) |
std::string & | getRootPath () |
void | setPem (std::string filespec) |
std::string & | getPem () |
void | setHostname (std::string name) |
std::string & | getHostname () |
void | setServerAuth (bool flag) |
bool | getServerAuth () |
bool | checkCert () |
bool | checkCert (std::string &hostname) |
void | dump () |
Protected Attributes | |
boost::scoped_ptr< SSL > | _ssl |
boost::scoped_ptr< SSL_CTX > | _ctx |
boost::scoped_ptr< BIO > | _bio |
boost::scoped_ptr< BIO > | _bio_error |
std::string | _hostname |
std::string | _calist |
std::string | _keyfile |
std::string | _cert |
std::string | _pem |
std::string | _rootpath |
bool | _need_server_auth |
gnash::SSLClient::SSLClient | ( | ) |
References setPassword().
gnash::SSLClient::~SSLClient | ( | ) |
gnash::SSLClient::SSLClient | ( | ) |
gnash::SSLClient::~SSLClient | ( | ) |
bool gnash::SSLClient::checkCert | ( | ) |
References _hostname.
Referenced by sslConnect().
bool gnash::SSLClient::checkCert | ( | std::string & | hostname | ) |
References _ssl.
bool gnash::SSLClient::checkCert | ( | ) |
bool gnash::SSLClient::checkCert | ( | std::string & | hostname | ) |
void gnash::SSLClient::dump | ( | ) |
Reimplemented in gnash::SSLServer, and gnash::SSLServer.
References _.
void gnash::SSLClient::dump | ( | ) |
Reimplemented in gnash::SSLServer, and gnash::SSLServer.
std::string& gnash::SSLClient::getCAlist | ( | ) | [inline] |
std::string& gnash::SSLClient::getCAlist | ( | ) | [inline] |
std::string& gnash::SSLClient::getCert | ( | ) | [inline] |
std::string& gnash::SSLClient::getCert | ( | ) | [inline] |
std::string& gnash::SSLClient::getHostname | ( | ) | [inline] |
std::string& gnash::SSLClient::getHostname | ( | ) | [inline] |
std::string& gnash::SSLClient::getKeyfile | ( | ) | [inline] |
std::string& gnash::SSLClient::getKeyfile | ( | ) | [inline] |
std::string & gnash::SSLClient::getPassword | ( | ) |
std::string& gnash::SSLClient::getPassword | ( | ) |
std::string& gnash::SSLClient::getPem | ( | ) | [inline] |
std::string& gnash::SSLClient::getPem | ( | ) | [inline] |
std::string& gnash::SSLClient::getRootPath | ( | ) | [inline] |
std::string& gnash::SSLClient::getRootPath | ( | ) | [inline] |
bool gnash::SSLClient::getServerAuth | ( | ) | [inline] |
bool gnash::SSLClient::getServerAuth | ( | ) | [inline] |
void gnash::SSLClient::setCAlist | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setCAlist | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setCert | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setCert | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setHostname | ( | std::string | name | ) | [inline] |
void gnash::SSLClient::setHostname | ( | std::string | name | ) | [inline] |
void gnash::SSLClient::setKeyfile | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setKeyfile | ( | std::string | filespec | ) | [inline] |
Referenced by gnash::SSLServer::sslAccept().
void gnash::SSLClient::setPassword | ( | std::string | pw | ) |
Referenced by SSLClient().
void gnash::SSLClient::setPassword | ( | std::string | pw | ) |
void gnash::SSLClient::setPem | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setPem | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setRootPath | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setRootPath | ( | std::string | filespec | ) | [inline] |
void gnash::SSLClient::setServerAuth | ( | bool | flag | ) | [inline] |
void gnash::SSLClient::setServerAuth | ( | bool | flag | ) | [inline] |
bool gnash::SSLClient::sslConnect | ( | int | fd, | |
std::string & | hostname, | |||
short | port | |||
) |
References _bio, _ctx, _hostname, _need_server_auth, _ssl, checkCert(), and sslSetupCTX().
bool gnash::SSLClient::sslConnect | ( | int | fd | ) |
bool gnash::SSLClient::sslConnect | ( | int | fd | ) |
References _hostname.
bool gnash::SSLClient::sslConnect | ( | int | fd, | |
std::string & | hostname, | |||
short | port | |||
) |
int gnash::SSLClient::sslRead | ( | boost::uint8_t * | buf, | |
size_t | length | |||
) |
References _ssl.
int gnash::SSLClient::sslRead | ( | std::string & | buf | ) |
int gnash::SSLClient::sslRead | ( | boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSLClient::sslRead | ( | std::string & | buf | ) |
int gnash::SSLClient::sslRead | ( | amf::Buffer & | buf | ) |
int gnash::SSLClient::sslRead | ( | amf::Buffer & | buf | ) |
bool gnash::SSLClient::sslSetupCTX | ( | std::string & | keyfile, | |
std::string & | cafile | |||
) |
bool gnash::SSLClient::sslSetupCTX | ( | std::string & | keyfile, | |
std::string & | cafile | |||
) |
bool gnash::SSLClient::sslSetupCTX | ( | ) |
bool gnash::SSLClient::sslSetupCTX | ( | ) |
References _calist, and _keyfile.
Referenced by gnash::SSLServer::sslAccept(), and sslConnect().
bool gnash::SSLClient::sslShutdown | ( | ) |
Referenced by gnash::SSLServer::~SSLServer().
bool gnash::SSLClient::sslShutdown | ( | ) |
int gnash::SSLClient::sslWrite | ( | const boost::uint8_t * | buf, | |
size_t | length | |||
) |
int gnash::SSLClient::sslWrite | ( | amf::Buffer & | buf | ) |
int gnash::SSLClient::sslWrite | ( | std::string & | buf | ) |
int gnash::SSLClient::sslWrite | ( | std::string & | buf | ) |
int gnash::SSLClient::sslWrite | ( | const boost::uint8_t * | buf, | |
size_t | length | |||
) |
References _ssl.
int gnash::SSLClient::sslWrite | ( | amf::Buffer & | buf | ) |
boost::scoped_ptr< BIO > gnash::SSLClient::_bio [protected] |
Referenced by gnash::SSLServer::sslAccept(), and sslConnect().
boost::scoped_ptr< BIO > gnash::SSLClient::_bio_error [protected] |
std::string gnash::SSLClient::_calist [protected] |
Referenced by sslSetupCTX().
std::string gnash::SSLClient::_cert [protected] |
boost::scoped_ptr< SSL_CTX > gnash::SSLClient::_ctx [protected] |
Referenced by gnash::SSLServer::loadDhParams(), gnash::SSLServer::sslAccept(), sslConnect(), sslSetupCTX(), and sslShutdown().
std::string gnash::SSLClient::_hostname [protected] |
Referenced by checkCert(), and sslConnect().
std::string gnash::SSLClient::_keyfile [protected] |
Referenced by sslSetupCTX().
bool gnash::SSLClient::_need_server_auth [protected] |
Referenced by sslConnect().
std::string gnash::SSLClient::_pem [protected] |
std::string gnash::SSLClient::_rootpath [protected] |
Referenced by sslSetupCTX().
boost::scoped_ptr< SSL > gnash::SSLClient::_ssl [protected] |
Referenced by checkCert(), gnash::SSLServer::sslAccept(), sslConnect(), sslRead(), sslShutdown(), and sslWrite().