00001 // -*- C++ -*- 00002 // 00003 // SSLIOP_Endpoint.i,v 1.18 2005/11/16 07:53:24 ossama Exp 00004 00005 00006 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00007 00008 ACE_INLINE TAO_IIOP_Endpoint * 00009 TAO_SSLIOP_Endpoint::iiop_endpoint (void) const 00010 { 00011 return this->iiop_endpoint_; 00012 } 00013 00014 ACE_INLINE void 00015 TAO_SSLIOP_Endpoint::iiop_endpoint (TAO_IIOP_Endpoint *iiop_endpoint, 00016 bool destroy) 00017 { 00018 if (iiop_endpoint != 0) 00019 { 00020 TAO_IIOP_Endpoint *new_endpoint = 0; 00021 00022 if (destroy) 00023 { 00024 TAO_Endpoint *endpoint = iiop_endpoint->duplicate (); 00025 00026 new_endpoint = dynamic_cast<TAO_IIOP_Endpoint *> (endpoint); 00027 00028 } 00029 else 00030 new_endpoint = iiop_endpoint; 00031 00032 if (this->destroy_iiop_endpoint_) 00033 delete this->iiop_endpoint_; 00034 00035 this->iiop_endpoint_ = new_endpoint; 00036 this->destroy_iiop_endpoint_ = destroy; 00037 } 00038 } 00039 00040 ACE_INLINE const ::SSLIOP::SSL & 00041 TAO_SSLIOP_Endpoint::ssl_component (void) const 00042 { 00043 return this->ssl_component_; 00044 } 00045 00046 ACE_INLINE ::Security::QOP 00047 TAO_SSLIOP_Endpoint::qop (void) const 00048 { 00049 return this->qop_; 00050 } 00051 00052 ACE_INLINE ::Security::EstablishTrust 00053 TAO_SSLIOP_Endpoint::trust (void) const 00054 { 00055 return this->trust_; 00056 } 00057 00058 ACE_INLINE TAO::SSLIOP::OwnCredentials * 00059 TAO_SSLIOP_Endpoint::credentials (void) const 00060 { 00061 return this->credentials_.in (); 00062 } 00063 00064 ACE_INLINE int 00065 TAO_SSLIOP_Endpoint::credentials_set (void) const 00066 { 00067 return this->credentials_set_; 00068 } 00069 00070 TAO_END_VERSIONED_NAMESPACE_DECL