Public Member Functions | Protected Attributes

gnash::SSLClient Class Reference

#include <sslclient.h>

Inheritance diagram for gnash::SSLClient:
Inheritance graph
[legend]

List of all members.

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 ()

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

Constructor & Destructor Documentation

gnash::SSLClient::SSLClient (  ) 

References setPassword().

gnash::SSLClient::~SSLClient (  ) 

Member Function Documentation

bool gnash::SSLClient::checkCert (  ) 

References _hostname.

Referenced by sslConnect().

bool gnash::SSLClient::checkCert ( std::string &  hostname  ) 

References _ssl.

void gnash::SSLClient::dump (  ) 

Reimplemented in gnash::SSLServer.

References _.

std::string& gnash::SSLClient::getCAlist (  )  [inline]
std::string& gnash::SSLClient::getCert (  )  [inline]
std::string& gnash::SSLClient::getHostname (  )  [inline]
std::string& gnash::SSLClient::getKeyfile (  )  [inline]
std::string & gnash::SSLClient::getPassword (  ) 
std::string& gnash::SSLClient::getPem (  )  [inline]
std::string& gnash::SSLClient::getRootPath (  )  [inline]
bool gnash::SSLClient::getServerAuth (  )  [inline]
void gnash::SSLClient::setCAlist ( std::string  filespec  )  [inline]
void gnash::SSLClient::setCert ( std::string  filespec  )  [inline]
void gnash::SSLClient::setHostname ( std::string  name  )  [inline]
void gnash::SSLClient::setKeyfile ( std::string  filespec  )  [inline]
void gnash::SSLClient::setPassword ( std::string  pw  ) 

Referenced by SSLClient().

void gnash::SSLClient::setPem ( std::string  filespec  )  [inline]
void gnash::SSLClient::setRootPath ( std::string  filespec  )  [inline]
void gnash::SSLClient::setServerAuth ( bool  flag  )  [inline]
bool gnash::SSLClient::sslConnect ( int  fd,
std::string &  hostname,
short  port 
)
bool gnash::SSLClient::sslConnect ( int  fd  ) 

References _hostname.

int gnash::SSLClient::sslRead ( boost::uint8_t *  buf,
size_t  length 
)

References _ssl.

int gnash::SSLClient::sslRead ( std::string &  buf  ) 
int gnash::SSLClient::sslRead ( amf::Buffer &  buf  ) 
bool gnash::SSLClient::sslSetupCTX ( std::string &  keyfile,
std::string &  cafile 
)

References _ctx, and _rootpath.

bool gnash::SSLClient::sslSetupCTX (  ) 

References _calist, and _keyfile.

Referenced by gnash::SSLServer::sslAccept(), and sslConnect().

bool gnash::SSLClient::sslShutdown (  ) 

References _ctx, and _ssl.

Referenced by gnash::SSLServer::~SSLServer().

int gnash::SSLClient::sslWrite ( amf::Buffer &  buf  ) 
int gnash::SSLClient::sslWrite ( const boost::uint8_t *  buf,
size_t  length 
)

References _ssl.

int gnash::SSLClient::sslWrite ( std::string &  buf  ) 

Member Data Documentation

boost::scoped_ptr<BIO> gnash::SSLClient::_bio [protected]
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]
std::string gnash::SSLClient::_hostname [protected]

Referenced by checkCert(), and sslConnect().

std::string gnash::SSLClient::_keyfile [protected]

Referenced by sslSetupCTX().

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]

The documentation for this class was generated from the following files: