blob: c51daa4f597111b1b3fad8151f8508eea592124b (
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
|
// -*- C++ -*-
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 ()
{
// Restore the previous TSS SSL state.
this->current_->teardown (this->previous_current_impl_,
this->setup_done_);
}
TAO_END_VERSIONED_NAMESPACE_DECL
|