blocxx
|
#include <SSLSocketImpl.hpp>
Public Member Functions | |
SSLSocketImpl (SSLClientCtxRef sslCtx) | |
SSLSocketImpl () | |
SSLSocketImpl (SocketHandle_t fd, SocketAddress::AddressType addrType, const SSLServerCtxRef &sslCtx) | |
This constructor is to be used only for server sockets. | |
SSLSocketImpl (SocketHandle_t fd, SocketAddress::AddressType addrType) | |
This constructor is to be used only for server sockets. | |
SSLSocketImpl (const SocketAddress &addr) | |
virtual | ~SSLSocketImpl () |
virtual void | connect (const SocketAddress &addr) |
virtual void | disconnect () |
Select_t | getSelectObj () const |
SSL * | getSSL () const |
return the SSL structure associated with the socket | |
bool | peerCertVerified () const |
Did the peer certificate pass verification? | |
Private Member Functions | |
virtual int | readAux (void *dataIn, int dataInLen) |
virtual int | writeAux (const void *dataOut, int dataOutLen) |
void | connectSSL () |
virtual bool | waitForInput (const Timeout &timeout) |
SSLSocketImpl (const SSLSocketImpl &arg) | |
SSLSocketImpl & | operator= (const SSLSocketImpl &arg) |
Private Attributes | |
SSL * | m_ssl |
BIO * | m_sbio |
SSLClientCtxRef | m_sslCtx |
OWSSLContext | m_owctx |
Definition at line 56 of file SSLSocketImpl.hpp.
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | SSLClientCtxRef | sslCtx | ) |
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | ) |
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | SocketHandle_t | fd, |
SocketAddress::AddressType | addrType, | ||
const SSLServerCtxRef & | sslCtx | ||
) |
This constructor is to be used only for server sockets.
fd | A socket handle, presumably created by a ServerSocket's accept(). |
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | SocketHandle_t | fd, |
SocketAddress::AddressType | addrType | ||
) |
This constructor is to be used only for server sockets.
fd | A socket handle, presumably created by a ServerSocket's |
addrType | The addressType accept(). |
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | const SocketAddress & | addr | ) |
SocketException |
virtual BLOCXX_NAMESPACE::SSLSocketImpl::~SSLSocketImpl | ( | ) | [virtual] |
BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl | ( | const SSLSocketImpl & | arg | ) | [private] |
virtual void BLOCXX_NAMESPACE::SSLSocketImpl::connect | ( | const SocketAddress & | addr | ) | [virtual] |
SocketException |
Reimplemented from BLOCXX_NAMESPACE::SocketBaseImpl.
void BLOCXX_NAMESPACE::SSLSocketImpl::connectSSL | ( | ) | [private] |
virtual void BLOCXX_NAMESPACE::SSLSocketImpl::disconnect | ( | ) | [virtual] |
Reimplemented from BLOCXX_NAMESPACE::SocketBaseImpl.
Select_t BLOCXX_NAMESPACE::SSLSocketImpl::getSelectObj | ( | ) | const [virtual] |
Reimplemented from BLOCXX_NAMESPACE::SocketBaseImpl.
SSL* BLOCXX_NAMESPACE::SSLSocketImpl::getSSL | ( | ) | const |
return the SSL structure associated with the socket
SSLSocketImpl& BLOCXX_NAMESPACE::SSLSocketImpl::operator= | ( | const SSLSocketImpl & | arg | ) | [private] |
bool BLOCXX_NAMESPACE::SSLSocketImpl::peerCertVerified | ( | ) | const |
Did the peer certificate pass verification?
virtual int BLOCXX_NAMESPACE::SSLSocketImpl::readAux | ( | void * | dataIn, |
int | dataInLen | ||
) | [private, virtual] |
SocketException |
Implements BLOCXX_NAMESPACE::SocketBaseImpl.
virtual bool BLOCXX_NAMESPACE::SSLSocketImpl::waitForInput | ( | const Timeout & | timeout | ) | [private, virtual] |
Reimplemented from BLOCXX_NAMESPACE::SocketBaseImpl.
virtual int BLOCXX_NAMESPACE::SSLSocketImpl::writeAux | ( | const void * | dataOut, |
int | dataOutLen | ||
) | [private, virtual] |
SocketException |
Implements BLOCXX_NAMESPACE::SocketBaseImpl.
OWSSLContext BLOCXX_NAMESPACE::SSLSocketImpl::m_owctx [private] |
Definition at line 125 of file SSLSocketImpl.hpp.
BIO* BLOCXX_NAMESPACE::SSLSocketImpl::m_sbio [private] |
Definition at line 112 of file SSLSocketImpl.hpp.
SSL* BLOCXX_NAMESPACE::SSLSocketImpl::m_ssl [private] |
Definition at line 111 of file SSLSocketImpl.hpp.
Definition at line 119 of file SSLSocketImpl.hpp.