blob: 495ec1e5bc74bc788305dca7c4441e339345560d (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// -*- C++ -*-
#include "QOPPolicy.h"
ACE_RCSID (Security,
QOPPolicy,
"$Id$")
TAO_QOPPolicy::TAO_QOPPolicy (Security::QOP qop)
: qop_ (qop)
{
}
TAO_QOPPolicy::~TAO_QOPPolicy (void)
{
}
CORBA::PolicyType
TAO_QOPPolicy::policy_type (CORBA::Environment & /* ACE_TRY_ENV */)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return Security::SecQOPPolicy;
}
CORBA::Policy_ptr
TAO_QOPPolicy::copy (CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException))
{
TAO_QOPPolicy *policy = 0;
ACE_NEW_THROW_EX (policy,
TAO_QOPPolicy (this->qop_),
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO_DEFAULT_MINOR_CODE,
ENOMEM),
CORBA::COMPLETED_NO));
ACE_CHECK_RETURN (CORBA::Policy::_nil ());
return policy;
}
void
TAO_QOPPolicy::destroy (CORBA::Environment & /* ACE_TRY_ENV */)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
Security::QOP
TAO_QOPPolicy::qop (CORBA::Environment & /* ACE_TRY_ENV */)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->qop_;
}
|