TAO_SSLIOP  2.4.2
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TAO::SSLIOP::Protocol_Factory Class Reference

SSLIOP-specific protocol factory implementation. More...

#include <SSLIOP_Factory.h>

Inheritance diagram for TAO::SSLIOP::Protocol_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO::SSLIOP::Protocol_Factory:
Collaboration graph
[legend]

Public Member Functions

 Protocol_Factory (void)
 Constructor. More...
 
virtual ~Protocol_Factory (void)
 Destructor. More...
 
virtual int init (int argc, ACE_TCHAR *argv[])
 Dynamic linking hook. More...
 
virtual int match_prefix (const ACE_CString &prefix)
 Verify prefix is a match. More...
 
virtual const char * prefix (void) const
 Returns the prefix used by the protocol. More...
 
virtual char options_delimiter (void) const
 
virtual TAO_Acceptormake_acceptor (void)
 
virtual TAO_Connectormake_connector (void)
 
virtual int requires_explicit_endpoint (void) const
 
- Public Member Functions inherited from TAO_Protocol_Factory
 TAO_Protocol_Factory (CORBA::ULong tag)
 
virtual ~TAO_Protocol_Factory (void)
 
CORBA::ULong tag (void) const
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object (void)
 
virtual int suspend (void)
 
virtual int resume (void)
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
 
virtual ACE_HANDLE get_handle (void) const
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority (void) const
 
virtual void priority (int priority)
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 
virtual int handle_exit (ACE_Process *)
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
 
virtual int resume_handler (void)
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor (void) const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface (void) const
 
virtual Reference_Count add_reference (void)
 
virtual Reference_Count remove_reference (void)
 
Reference_Counting_Policyreference_counting_policy (void)
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object (void)
 
virtual ~ACE_Shared_Object (void)
 
virtual int fini (void)
 
virtual int info (ACE_TCHAR **info_string, size_t length=0) const
 

Private Member Functions

int register_orb_initializer (void)
 Create and register the SSLIOP ORB initializer. More...
 

Static Private Member Functions

static int parse_x509_file (char *arg, char *&path)
 
static int pem_passwd_cb (char *buf, int size, int, void *)
 

Private Attributes

::Security::QOP qop_
 
ACE_Time_Value timeout_
 The accept() timeout. More...
 
bool check_host_
 

Static Private Attributes

static ACE_CString pem_passwd_
 The stored password. More...
 

Additional Inherited Members

- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Service_Object
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_CountAtomic_Reference_Count
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 

Detailed Description

SSLIOP-specific protocol factory implementation.

This class implements the SSLIOP-specific protocol factory implementation for use in TAO's pluggable protocols framework.

Constructor & Destructor Documentation

TAO::SSLIOP::Protocol_Factory::Protocol_Factory ( void  )

Constructor.

TAO::SSLIOP::Protocol_Factory::~Protocol_Factory ( void  )
virtual

Destructor.

Member Function Documentation

int TAO::SSLIOP::Protocol_Factory::init ( int  argc,
ACE_TCHAR argv[] 
)
virtual

Dynamic linking hook.

Implements TAO_Protocol_Factory.

TAO_Acceptor * TAO::SSLIOP::Protocol_Factory::make_acceptor ( void  )
virtual

Implements TAO_Protocol_Factory.

TAO_Connector * TAO::SSLIOP::Protocol_Factory::make_connector ( void  )
virtual

Implements TAO_Protocol_Factory.

int TAO::SSLIOP::Protocol_Factory::match_prefix ( const ACE_CString prefix)
virtual

Verify prefix is a match.

Implements TAO_Protocol_Factory.

char TAO::SSLIOP::Protocol_Factory::options_delimiter ( void  ) const
virtual

Return the character used to mark where an endpoint ends and where its options begin.

Implements TAO_Protocol_Factory.

int TAO::SSLIOP::Protocol_Factory::parse_x509_file ( char *  arg,
char *&  path 
)
staticprivate

Parse an X509 file path, which is expected to looks like: <X509Path> ::= <Prefix> ':' <Path> <Prefix> ::= 'PEM' | 'ASN1' <Path> ::= any-string Returns either SSL_FILETYPE_ASN1, SSL_FILETYPE_PEM or -1 if the prefix can not be recognized. The *path will point to the part of the original buffer, after the initial ':', or will contain 0, if no path was specified.

Beware: This function modifies the buffer pointed to by arg!

int TAO::SSLIOP::Protocol_Factory::pem_passwd_cb ( char *  buf,
int  size,
int  ,
void *  the_passwd 
)
staticprivate

Callback for supplying a password to be used accessing a private key. Key initialized by env var or supplied in arg list. This callback is only used when a password is configured.

const char * TAO::SSLIOP::Protocol_Factory::prefix ( void  ) const
virtual

Returns the prefix used by the protocol.

Implements TAO_Protocol_Factory.

int TAO::SSLIOP::Protocol_Factory::register_orb_initializer ( void  )
private

Create and register the SSLIOP ORB initializer.

int TAO::SSLIOP::Protocol_Factory::requires_explicit_endpoint ( void  ) const
virtual

Implements TAO_Protocol_Factory.

Member Data Documentation

bool TAO::SSLIOP::Protocol_Factory::check_host_
private
ACE_CString TAO::SSLIOP::Protocol_Factory::pem_passwd_
staticprivate

The stored password.

::Security::QOP TAO::SSLIOP::Protocol_Factory::qop_
private

Default quality-of-protection settings for the SSLIOP pluggable protocol.

ACE_Time_Value TAO::SSLIOP::Protocol_Factory::timeout_
private

The accept() timeout.

This timeout includes the overall time to complete the SSL handshake. This includes both the TCP handshake and the SSL handshake.


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