Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_SSL::SSLSocketBuilder Class Reference

SocketBuilder inheritor for constructing SSLSockets. More...

#include <SSLSocket.h>

Inheritance diagram for CODEX_SSL::SSLSocketBuilder:

Inheritance graph
[legend]
Collaboration diagram for CODEX_SSL::SSLSocketBuilder:

Collaboration graph
[legend]
List of all members.

Public Methods

 SSLSocketBuilder (SSL_METHOD *meth, const X509 *cert, const RSA *privKey, const char *ciphers, const char *caCertFile, const char *hostCertFile, int verify, int domain=PF_INET, int type=SOCK_STREAM, int protocol=0, bool blocking=false)
 Constructor for an SSLSocketBuilder.

virtual ~SSLSocketBuilder ()
 Virtual destructor.

CODEX_Quorum::SocketBaseoperator() () const
 Create a new SocketBase.


Protected Attributes

SSL_CTX * m_ctx
 SSL context structure used to initialize an SSLSocket.


Detailed Description

SocketBuilder inheritor for constructing SSLSockets.

Definition at line 147 of file SSLSocket.h.


Constructor & Destructor Documentation

SSLSocketBuilder::SSLSocketBuilder SSL_METHOD *    meth,
const X509 *    cert,
const RSA *    privKey,
const char *    ciphers,
const char *    caCertFile,
const char *    hostCertFile,
int    verify,
int    domain = PF_INET,
int    type = SOCK_STREAM,
int    protocol = 0,
bool    blocking = false
 

Constructor for an SSLSocketBuilder.

Parameters:
meth  SSL method (protocol, version, client/server)
cert  Certificate for this principal
privKey  RSA private key for this principal
ciphers  List of ciphers to try when making connections
caCertFile  File containing the CA's certificate
hostCertFile  File containing the host's certificate
verify  The flags indicating how verification should be done
domain  see CODEX_Quorum::SocketBuilder::SocketBuilder
type  see CODEX_Quorum::SocketBuilder::SocketBuilder
protocol  see CODEX_Quorum::SocketBuilder::SocketBuilder
blocking  see CODEX_Quorum::SocketBuilder::SocketBuilder

Definition at line 340 of file SSLSocket.cc.

References m_ctx.


Member Function Documentation

SocketBase * SSLSocketBuilder::operator()   [virtual]
 

Create a new SocketBase.

SocketBuilder is initialized with everything it needs to create a new socket. Binding to a specific port and address is not included, so a single SocketBuilder can be used to create all of the needed sockets of a given type.

Reimplemented from CODEX_Quorum::SocketBuilder.

Definition at line 413 of file SSLSocket.cc.

References CODEX_Quorum::SocketBuilder::m_blocking, m_ctx, CODEX_Quorum::SocketBuilder::m_domain, CODEX_Quorum::SocketBuilder::m_protocol, and CODEX_Quorum::SocketBuilder::m_type.


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:23 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18