summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.inl
blob: 55ac19b0d06a46815703dba1165d0907dea1b976 (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
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO::SSLIOP::State_Guard::State_Guard (
  TAO::SSLIOP::Connection_Handler *handler,
  int &result)
  : handler_ (handler),
    previous_current_impl_ (0),
    current_impl_ (),
    setup_done_ (false)
{
  // Set up the SSLIOP::Current object.
  result = this->handler_->setup_ssl_state (this->previous_current_impl_,
                                            &(this->current_impl_),
                                            this->setup_done_);
}

ACE_INLINE
TAO::SSLIOP::State_Guard::~State_Guard (void)
{
  this->handler_->teardown_ssl_state (this->previous_current_impl_,
                                      this->setup_done_);
}

TAO_END_VERSIONED_NAMESPACE_DECL