blob: 7a0b3d4b320aaf03bddff916961ff90eab4aade7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// -*- C++ -*-
//
// $Id$
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::Null_SSL_State_Guard::Null_SSL_State_Guard (
TAO::SSLIOP::Current_ptr current,
int &result)
: previous_current_impl_ (0),
current_ (current), // No need to duplicate
setup_done_ (false)
{
// Invalidate the TSS SSL session state to make sure that SSL state
// from a previous SSL connection is not confused with this non-SSL
// connection.
current->setup (this->previous_current_impl_,
0, // Null SSL state
this->setup_done_);
result = 0;
}
ACE_INLINE
TAO::Null_SSL_State_Guard::~Null_SSL_State_Guard (void)
{
// Restore the previous TSS SSL state.
this->current_->teardown (this->previous_current_impl_,
this->setup_done_);
}
TAO_END_VERSIONED_NAMESPACE_DECL
|