TAO_SSLIOP
2.1.8
|
This class sets up null TSS SSL state upon instantiation, and restores the previous TSS SSL state when that instance goes out of scope. More...
#include <IIOP_SSL_Connection_Handler.h>
Public Member Functions | |
Null_SSL_State_Guard (TAO::SSLIOP::Current_ptr current, int &result) | |
Constructor that sets up the null TSS SSL state. More... | |
~Null_SSL_State_Guard (void) | |
Destructor that restores the previous TSS SSL state. More... | |
Private Attributes | |
TAO::SSLIOP::Current_Impl * | previous_current_impl_ |
TAO::SSLIOP::Current_ptr | current_ |
Reference to the SSLIOP::Current object. More... | |
bool | setup_done_ |
This class sets up null TSS SSL state upon instantiation, and restores the previous TSS SSL state when that instance goes out of scope.
This guard is used to make TSS SSL state configuration and deconfiguration during an upcall exception safe. Exceptions are not supposed to be propagated up to the scope this guard is used in, so this guard may be unnecessary. However, since proper TSS SSL state configuration/deconfiguration is critical to proper security support, this guard is used to ensure that configuration/deconfiguration is exception safe.
TAO::Null_SSL_State_Guard::Null_SSL_State_Guard | ( | TAO::SSLIOP::Current_ptr | current, |
int & | result | ||
) |
Constructor that sets up the null TSS SSL state.
TAO::Null_SSL_State_Guard::~Null_SSL_State_Guard | ( | void | ) |
Destructor that restores the previous TSS SSL state.
|
private |
Reference to the SSLIOP::Current object.
|
private |
The SSLIOP::Current implementation that was previously associated with the current thread and invocation. It is stored here until the invocation completes, after which it placed back into TSS.
|
private |
Flag that specifies whether or not setup of the SSLIOP::Current object completed for the current thread and invocation.