From 2e3efe34e0c602fe50e49bd0b0b7affb62b8860e Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Fri, 13 Aug 2004 01:06:24 +0000 Subject: ChangeLogTag:Thu Aug 12 17:52:36 2004 Ossama Othman --- TAO/ChangeLog | 9 +++++++++ TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp | 9 ++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/TAO/ChangeLog b/TAO/ChangeLog index a2d3c32ebc8..c1ccde02a85 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,12 @@ +Thu Aug 12 17:52:36 2004 Ossama Othman + + * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp (operator==): + + Cast away the const-ness of the right hand side argument before + invoking its non-const cred_type() method. The method in + question doesn't modify the object so doing so is not violating + any "immutability contract". Fixes a compile-time error. + Thu Aug 12 17:51:52 2004 Simon McQueen * TAO_IDL/fe/fe_lookup.cpp (lookup): diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp index 94fbd8021b9..02888d4cb46 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp @@ -2,8 +2,6 @@ #include "tao/ORB_Constants.h" -//#include - ACE_RCSID (SSLIOP, SSLIOP_Credentials, @@ -169,8 +167,8 @@ TAO::SSLIOP_Credentials::remove_relinquished_listener (const char * /* id */ bool TAO::SSLIOP_Credentials::operator== (const TAO::SSLIOP_Credentials &rhs) { - X509 * xa = this->x509_.in (); - X509 * xb = rhs.x509_.in (); + ::X509 * xa = this->x509_.in (); + ::X509 * xb = rhs.x509_.in (); // EVP_PKEY *ea = this->evp_.in (); // EVP_PKEY *eb = rhs.evp_.in (); @@ -182,7 +180,8 @@ TAO::SSLIOP_Credentials::operator== (const TAO::SSLIOP_Credentials &rhs) ACE_CHECK_RETURN (false); const SecurityLevel3::CredentialsType rct = - rhs.creds_type (ACE_ENV_SINGLE_ARG_PARAMETER); + const_cast (rhs).creds_type ( + ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (false); // Don't bother check the creds_id and expiry_time attributes. They -- cgit v1.2.1