OW_NAMESPACE::SSLSocketImpl Class Reference

#include <OW_SSLSocketImpl.hpp>

Inheritance diagram for OW_NAMESPACE::SSLSocketImpl:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::SSLSocketImpl:

Collaboration graph
[legend]
List of all members.

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)
 
Exceptions:
SocketException 

virtual ~SSLSocketImpl ()
virtual void connect (const SocketAddress &addr)
 
Exceptions:
SocketException 

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)
 
Exceptions:
SocketException 

virtual int writeAux (const void *dataOut, int dataOutLen)
 
Exceptions:
SocketException 

void connectSSL ()
virtual bool waitForInput (int timeOutSecs=-1)
 SSLSocketImpl (const SSLSocketImpl &arg)
SSLSocketImploperator= (const SSLSocketImpl &arg)

Private Attributes

SSL * m_ssl
BIO * m_sbio
SSLClientCtxRef m_sslCtx
OWSSLContext m_owctx

Detailed Description

Definition at line 53 of file OW_SSLSocketImpl.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl SSLClientCtxRef  sslCtx  ) 
 

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl  ) 
 

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl SocketHandle_t  fd,
SocketAddress::AddressType  addrType,
const SSLServerCtxRef sslCtx
 

This constructor is to be used only for server sockets.

Parameters:
fd A socket handle, presumably created by a ServerSocket's accept().

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl SocketHandle_t  fd,
SocketAddress::AddressType  addrType
 

This constructor is to be used only for server sockets.

Parameters:
fd A socket handle, presumably created by a ServerSocket's
addrType The addressType accept().

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl const SocketAddress addr  ) 
 

Exceptions:
SocketException 

virtual OW_NAMESPACE::SSLSocketImpl::~SSLSocketImpl  )  [virtual]
 

OW_NAMESPACE::SSLSocketImpl::SSLSocketImpl const SSLSocketImpl arg  )  [private]
 


Member Function Documentation

virtual void OW_NAMESPACE::SSLSocketImpl::connect const SocketAddress addr  )  [virtual]
 

Exceptions:
SocketException 

Reimplemented from OW_NAMESPACE::SocketBaseImpl.

void OW_NAMESPACE::SSLSocketImpl::connectSSL  )  [private]
 

virtual void OW_NAMESPACE::SSLSocketImpl::disconnect  )  [virtual]
 

Reimplemented from OW_NAMESPACE::SocketBaseImpl.

Select_t OW_NAMESPACE::SSLSocketImpl::getSelectObj  )  const [virtual]
 

Reimplemented from OW_NAMESPACE::SocketBaseImpl.

SSL* OW_NAMESPACE::SSLSocketImpl::getSSL  )  const
 

return the SSL structure associated with the socket

Returns:
the SSL ptr.

SSLSocketImpl& OW_NAMESPACE::SSLSocketImpl::operator= const SSLSocketImpl arg  )  [private]
 

bool OW_NAMESPACE::SSLSocketImpl::peerCertVerified  )  const
 

Did the peer certificate pass verification?

Returns:
true if peer cert passed verification

virtual int OW_NAMESPACE::SSLSocketImpl::readAux void *  dataIn,
int  dataInLen
[private, virtual]
 

Exceptions:
SocketException 

Implements OW_NAMESPACE::SocketBaseImpl.

virtual bool OW_NAMESPACE::SSLSocketImpl::waitForInput int  timeOutSecs = -1  )  [private, virtual]
 

Reimplemented from OW_NAMESPACE::SocketBaseImpl.

virtual int OW_NAMESPACE::SSLSocketImpl::writeAux const void *  dataOut,
int  dataOutLen
[private, virtual]
 

Exceptions:
SocketException 

Implements OW_NAMESPACE::SocketBaseImpl.


Member Data Documentation

OWSSLContext OW_NAMESPACE::SSLSocketImpl::m_owctx [private]
 

Definition at line 122 of file OW_SSLSocketImpl.hpp.

BIO* OW_NAMESPACE::SSLSocketImpl::m_sbio [private]
 

Definition at line 109 of file OW_SSLSocketImpl.hpp.

SSL* OW_NAMESPACE::SSLSocketImpl::m_ssl [private]
 

Definition at line 108 of file OW_SSLSocketImpl.hpp.

SSLClientCtxRef OW_NAMESPACE::SSLSocketImpl::m_sslCtx [private]
 

Definition at line 116 of file OW_SSLSocketImpl.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:14:59 2006 for openwbem by  doxygen 1.4.6