Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_SSL::SSLSocketBuilder Class Reference

SocketBuilder inheritor for constructing SSLSocket%s. 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 Member Functions

 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.
int m_domain
 Protocol domain for SocketBase.
int m_type
 Socket type for SocketBase.
int m_protocol
 Protocol for SocketBase.
bool m_blocking
 Blocking flag for SocketBase.

Detailed Description

SocketBuilder inheritor for constructing SSLSocket%s.

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()  )  const [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 m_ctx.


The documentation for this class was generated from the following files:
Generated on Fri May 6 17:42:50 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1