You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Damitha Kumarage <da...@opensource.lk> on 2004/12/09 12:03:29 UTC

Secure client on Windows [was:[jira] Commented: (AXISCPP-313) Axis Transport Project

Hi,

On Thu, 2004-12-09 at 07:50, Samisa Abeysinghe wrote:
Hi Damitha,
>     Could you please have a look at this issue please when you have
> some time, especially the code changes Lal has done.

ok see below

>     Looks like he is trying to get the secure client working on
> windows. Has anyone tested this on Windoes?
> 
> Thanks,
> Samisa...
>     
> 
> 
> On Wed, 8 Dec 2004 04:24:09 -0800 (PST), shijith lal (JIRA)
> <ax...@ws.apache.org> wrote:
> >      [
http://nagoya.apache.org/jira/browse/AXISCPP-313?page=comments#action_56380 ]
> > 
> > shijith lal commented on AXISCPP-313:
> > -------------------------------------
> > 
> >  download the 1.4 alpha vesion source. But it does not consist of
> > AxisTransport project files. I think it is same as the 1.3 final
> > release. I got the AxisTransport project from 1.3 final. It consist of
> > secure channel functionality ( See SecureChannel class in 1.3 final
> > path src/transport/axis/SecureChannel.cpp)
> 
1.3 support for SecureChannel is not guaranteed to work in anyway. I think we
added this code for 1.1(not sure) and at that time it is not
completed and it was just forgotten after that.

For 1.4 alpha I put some working code and it works fine. I tested this with
ssl enabled apache 2server. But this versin had some code duplication issues.
The code planned for 1.4 beta has a more cleaner solution. That code is now
available in cvs. I'll add documentation and to this soon. For the time being
I explained it a few in one of my replies to the user list and dev list today.
So Shijith, since you seems to be interested in testing windows I recommend to
use the code from cvs(I don't think this it is an unfair suggestion to take
code from cvs for a developer)

thanks
damitha 

> 
> > I make some changes in 1.3 version. Please see the code difference i made
> > 
> > 1. In channelclass change the functio signature
> > old signiture was
> > "const Channel & Channel::operator << (cont char *msg) ". I change this to
> > "const Channel & Channel::operator << (const std::string &msg) " .
> > Because in SecureChannel class the signature is  same as the second
> > one. For proper working of virtual functio both signiture must be same
> > 
> > 2. I add "const Channel &
> > SecureChannel::readNonBlocking( std::string & msg, bool
> > bBlockingRequired)" function in SecureChannel class. Because if there
> > is no function and one use the securechannel class instead of channel
> > class, it will call the base class function (channel class). It try to
> > read from normal channel and got only encrypted data.
> > 
> > Please look at these.
> > 
> > > Axis Transport Project
> > > ----------------------
> > >
> > >          Key: AXISCPP-313
> > >          URL: http://nagoya.apache.org/jira/browse/AXISCPP-313
> > >      Project: Axis-C++
> > >         Type: Bug
> > >   Components: Transport (Client)
> > >     Versions: 1.3 Final
> > >  Environment: Windows XP with Apache Tomcat 3.3 and Apache SOAP at
server side
> > >     Reporter: shijith lal
> > >     Priority: Blocker
> > 
> > >
> > >
> > >   I am working with Axis Client 1.3 (C++ ) version. I am using the
secure socket layer support. For this, in AxisTransport project i found two
errors.
> > >
> > >  1. This project consist of two classes one is SecureChannel nad other
is Channel. Channel is the base class. Both consist of a function (operator
overloaded) <<. But the signoture of both functions are different. This make
ivalid call to base class function while using SSL.
> > >  2. In SecureChannel class SecureChannel::readNonBlocking function is
not yet implemented. This blocks the SSL usage.
> > 
> > --
> > This message is automatically generated by JIRA.
> > -
> > If you think it was sent incorrectly contact one of the administrators:
> >    http://nagoya.apache.org/jira/secure/Administrators.jspa
> > -
> > If you want more information on JIRA, or have a bug to report see:
> >    http://www.atlassian.com/software/jira
> > 
> >
> 

--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)