You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Raymond Zhou <ra...@yahoo.com> on 2008/09/10 07:16:36 UTC

Re: axis2/c depending on openSSL

Hi All,
 
I am still searching solutions for this issue. 
 
Has anyone tried to dynamically load the openSSL dlls at runtime? I looked at the
part of code in axis2/c handling SSL, it basically calls a bunch of openSSL APIs
whose name start with SSL_, can we modify that part of code so that we use
LoadLibrary and get function pointer to the SSL_* functions that we use? This way
we don't have to have openSSL dlls in the class path for regular web services and
we only need them if we need SSL communication.
 
Thanks!
Frank
 

--- On Fri, 8/22/08, Dumindu Pallewela <pa...@gmail.com> wrote:

From: Dumindu Pallewela <pa...@gmail.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>, raywang999@yahoo.com
Date: Friday, August 22, 2008, 10:29 PM



Hi Frank,

>From my experience with apache, it tries to make sure that all the symbols can be resolved at load time. Thus I believe that there is no easy way out for you. But please don't take my word for it as I've never tried doing what you want; not at all on windows.

Regards,
Dumindu.


On Sat, Aug 23, 2008 at 3:39 AM, Raymond Zhou <ra...@yahoo.com> wrote:






Hi Samisa,
 
If I don't ship the openSSL dlls but compile axis2/c with ssl enabled, then users have to manually download and add the dlls to their class path in order to use the web service client feature in my product, even if they do not need SSL at all, that would be inconvenient for them. My goal is to have one axis2/c package in my product to support web service client call without including the openSSL dlls and only those customers of mine that needs SSL will have to add the openSSL dlls to the classpath by themselves (without me having to re-compile the axis2/c for them). Is there a easy solution for this?

 
Thanks!
Frank

--- On Fri, 8/22/08, Samisa Abeysinghe <sa...@wso2.com> wrote:


From: Samisa Abeysinghe <sa...@wso2.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Date: Friday, August 22, 2008, 6:31 PM




Raymond Zhou wrote:
> Samisa,
>  
> If I disable openSSL, then https won't work, right? I want both cases 
> (http and https) to work, but openSSL dlls are only needed when the ws 
> call is through https. The purpose is that I don't want to 
> re-distribute the openSSL dlls in my product.
>

You do not need to ship them, users can use their own.

Samisa...

>  
> Thanks!
> Frank  
>
> --- On *Fri, 8/22/08, Samisa Abeysinghe /<sa...@wso2.com>/* wrote:
>
>     From: Samisa Abeysinghe <sa...@wso2.com>
>     Subject: Re: axis2/c depending on openSSL
>     To: "Apache AXIS C Developers List"
<ax...@ws.apache.org>
>     Date: Friday, August 22, 2008, 12:37 PM
>
>     Raymond Zhou wrote:
>     > Hi All,
>     >  
>     > I noticed that if I compile (in wondows) axis2/c with ssl-support

>     > enabled, the openSSL dlls (ssleay23.dll and libssl32.dll) have to
be 
>     > in class path in order for a web service client call to be
executed 
>     > properly, enen if the call is not using https/SSL. If the dlls
are not 
>     > in the path, I will get a error something like engine not loaded.
IS 
>     > THERE a way to compile the axis2/c differently so that the
openSSL 
>     > dlls are only needed when the ws client call uses https/SSL?
>     >
>
>     Disable OpenSSL in the build config file.
>
>     Samisa...
>
>     >  
>     > Thanks!
>     > Frank 
>     >
>     >
>     > No virus found in this incoming message.
>     > Checked by AVG - http://www.avg.com 
>     > Version: 8.0.138 / Virus Database: 270.6.6/1625 - Release Date:
8/21/2008
>     6:04 AM
>     >   
>
>
>     -- 
>     Samisa Abeysinghe 
>     Director, Engineering; WSO2 Inc.
>
>     http://www.wso2.com/ - "The Open Source SOA Company"
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>               
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008
6:48 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org





-- 
Dumindu Pallewela
Cinergix - "Share, Reuse, Innovate"
cinergix.com



      

Re: axis2/c depending on openSSL

Posted by Raymond Zhou <ra...@yahoo.com>.
Hi Supun,
 
That means that I have to compile the axis2/c twice, one enabling SSL and another disabling it, and put two sets of axis2/c dlls in my application, that seems to me  is
a bit awkward. Why can't we do dynamic loading openSSL dlls?
 
Thanks much!
 

--- On Wed, 9/10/08, Supun Kamburugamuva <su...@gmail.com> wrote:

From: Supun Kamburugamuva <su...@gmail.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C User List" <ax...@ws.apache.org>, raywang999@yahoo..com
Date: Wednesday, September 10, 2008, 5:56 AM



How about the solution of having two senders and two axis2.xml files that I have mentioned above. It should work. Only problem is you need to specify the right client home for the ssl and non-ssl clients. 

Supun..


On Wed, Sep 10, 2008 at 10:16 AM, Raymond Zhou <ra...@yahoo.com> wrote:







Hi All,
 
I am still searching solutions for this issue. 
 
Has anyone tried to dynamically load the openSSL dlls at runtime? I looked at the
part of code in axis2/c handling SSL, it basically calls a bunch of openSSL APIs
whose name start with SSL_, can we modify that part of code so that we use
LoadLibrary and get function pointer to the SSL_* functions that we use? This way
we don't have to have openSSL dlls in the class path for regular web services and
we only need them if we need SSL communication.
 
Thanks!
Frank
 

--- On Fri, 8/22/08, Dumindu Pallewela <pa...@gmail.com> wrote:

From: Dumindu Pallewela <pa...@gmail.com>

Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>, raywang999@yahoo.com
Date: Friday, August 22, 2008, 10:29 PM






Hi Frank,

>From my experience with apache, it tries to make sure that all the symbols can be resolved at load time. Thus I believe that there is no easy way out for you. But please don't take my word for it as I've never tried doing what you want; not at all on windows.

Regards,
Dumindu.


On Sat, Aug 23, 2008 at 3:39 AM, Raymond Zhou <ra...@yahoo.com> wrote:






Hi Samisa,
 
If I don't ship the openSSL dlls but compile axis2/c with ssl enabled, then users have to manually download and add the dlls to their class path in order to use the web service client feature in my product, even if they do not need SSL at all, that would be inconvenient for them. My goal is to have one axis2/c package in my product to support web service client call without including the openSSL dlls and only those customers of mine that needs SSL will have to add the openSSL dlls to the classpath by themselves (without me having to re-compile the axis2/c for them). Is there a easy solution for this?

 
Thanks!
Frank

--- On Fri, 8/22/08, Samisa Abeysinghe <sa...@wso2.com> wrote:


From: Samisa Abeysinghe <sa...@wso2.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Date: Friday, August 22, 2008, 6:31 PM 




Raymond Zhou wrote:
> Samisa,
>  
> If I disable openSSL, then https won't work, right? I want both cases 
> (http and https) to work, but openSSL dlls are only needed when the ws 
> call is through https. The purpose is that I don't want to 
> re-distribute the openSSL dlls in my product.
>

You do not need to ship them, users can use their own.

Samisa...

>  
> Thanks!
> Frank  
>
> --- On *Fri, 8/22/08, Samisa Abeysinghe /<sa...@wso2.com>/* wrote:
>
>     From: Samisa Abeysinghe <sa...@wso2.com>
>     Subject: Re: axis2/c depending on openSSL
>     To: "Apache AXIS C Developers List"
<ax...@ws.apache.org>
>     Date: Friday, August 22, 2008, 12:37 PM
>
>     Raymond Zhou wrote:
>     > Hi All,
>     >  
>     > I noticed that if I compile (in wondows) axis2/c with ssl-support

>     > enabled, the openSSL dlls (ssleay23.dll and libssl32.dll) have to
be 
>     > in class path in order for a web service client call to be
executed 
>     > properly, enen if the call is not using https/SSL. If the dlls
are not 
>     > in the path, I will get a error something like engine not loaded.
IS 
>     > THERE a way to compile the axis2/c differently so that the
openSSL 
>     > dlls are only needed when the ws client call uses https/SSL?
>     >
>
>     Disable OpenSSL in the build config file.
>
>     Samisa...
>
>     >  
>     > Thanks!
>     > Frank 
>     >
>     >
>     > No virus found in this incoming message.
>     > Checked by AVG - http://www.avg.com 
>     > Version: 8.0.138 / Virus Database: 270.6.6/1625 - Release Date:
8/21/2008
>     6:04 AM
>     >   
>
>
>     -- 
>     Samisa Abeysinghe 
>     Director, Engineering; WSO2 Inc.
>
>     http://www.wso2.com/ - "The Open Source SOA Company"
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>               
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008
6:48 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org





-- 
Dumindu Pallewela
Cinergix - "Share, Reuse, Innovate"
cinergix.com




-- 
Software Engineer, WSO2 Inc



      

Re: axis2/c depending on openSSL

Posted by Raymond Zhou <ra...@yahoo.com>.
Hi Supun,
�
That means that I have to compile the axis2/c twice, one enabling SSL and another disabling it, and put two sets of axis2/c dlls in my application, that seems to me� is
a bit awkward. Why can't we do dynamic loading openSSL dlls?
�
Thanks much!
�

--- On Wed, 9/10/08, Supun Kamburugamuva <su...@gmail.com> wrote:

From: Supun Kamburugamuva <su...@gmail.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C User List" <ax...@ws.apache.org>, raywang999@yahoo..com
Date: Wednesday, September 10, 2008, 5:56 AM



How about the solution of having two senders and two axis2.xml files that I have mentioned above. It should work. Only problem is you need to specify the right client home for the ssl and non-ssl clients. 

Supun..


On Wed, Sep 10, 2008 at 10:16 AM, Raymond Zhou <ra...@yahoo.com> wrote:







Hi All,
�
I am still searching solutions for this issue.�
�
Has anyone tried to dynamically load�the openSSL dlls at runtime? I looked at the
part of code in�axis2/c�handling SSL, it basically calls a bunch of openSSL APIs
whose name start with SSL_,�can we modify that part of code so that we use
LoadLibrary and get�function pointer to the SSL_* functions that we use? This way
we don't have to have openSSL dlls in the class path for regular web services and
we only need them if we need SSL communication.
�
Thanks!
Frank
�

--- On Fri, 8/22/08, Dumindu Pallewela <pa...@gmail.com> wrote:

From: Dumindu Pallewela <pa...@gmail.com>

Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>, raywang999@yahoo.com
Date: Friday, August 22, 2008, 10:29 PM






Hi Frank,

>From my experience with apache, it tries to make sure that all the symbols can be resolved at load time. Thus I believe that there is no easy way out for you. But please don't take my word for it as I've never tried doing what you want; not at all on windows.

Regards,
Dumindu.


On Sat, Aug 23, 2008 at 3:39 AM, Raymond Zhou <ra...@yahoo.com> wrote:






Hi Samisa,
�
If I don't ship the openSSL dlls but compile axis2/c with ssl enabled, then users have to manually download and add the dlls to their class path in order to use the�web service client feature in my product, even if they do not need SSL at all, that would be inconvenient for them. My goal is to have�one axis2/c package in my product to support web service client call without�including the openSSL dlls and only those customers of mine that needs SSL will have to add the openSSL dlls to the classpath by themselves (without me having to re-compile the axis2/c for them). Is there a easy solution for this?

�
Thanks!
Frank

--- On Fri, 8/22/08, Samisa Abeysinghe <sa...@wso2.com> wrote:


From: Samisa Abeysinghe <sa...@wso2.com>
Subject: Re: axis2/c depending on openSSL
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Date: Friday, August 22, 2008, 6:31 PM 




Raymond Zhou wrote:
> Samisa,
>  
> If I disable openSSL, then https won't work, right? I want both cases 
> (http and https) to work, but openSSL dlls are only needed when the ws 
> call is through https. The purpose is that I don't want to 
> re-distribute the openSSL dlls in my product.
>

You do not need to ship them, users can use their own.

Samisa...

>  
> Thanks!
> Frank  
>
> --- On *Fri, 8/22/08, Samisa Abeysinghe /<sa...@wso2.com>/* wrote:
>
>     From: Samisa Abeysinghe <sa...@wso2.com>
>     Subject: Re: axis2/c depending on openSSL
>     To: "Apache AXIS C Developers List"
<ax...@ws.apache.org>
>     Date: Friday, August 22, 2008, 12:37 PM
>
>     Raymond Zhou wrote:
>     > Hi All,
>     >  
>     > I noticed that if I compile (in wondows) axis2/c with ssl-support

>     > enabled, the openSSL dlls (ssleay23.dll and libssl32.dll) have to
be 
>     > in class path in order for a web service client call to be
executed 
>     > properly, enen if the call is not using https/SSL. If the dlls
are not 
>     > in the path, I will get a error something like engine not loaded.
IS 
>     > THERE a way to compile the axis2/c differently so that the
openSSL 
>     > dlls are only needed when the ws client call uses https/SSL?
>     >
>
>     Disable OpenSSL in the build config file.
>
>     Samisa...
>
>     >  
>     > Thanks!
>     > Frank 
>     >
>     >
>     > No virus found in this incoming message.
>     > Checked by AVG - http://www.avg.com 
>     > Version: 8.0.138 / Virus Database: 270.6.6/1625 - Release Date:
8/21/2008
>     6:04 AM
>     >   
>
>
>     -- 
>     Samisa Abeysinghe 
>     Director, Engineering; WSO2 Inc.
>
>     http://www.wso2.com/ - "The Open Source SOA Company"
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>               
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008
6:48 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org





-- 
Dumindu Pallewela
Cinergix - "Share, Reuse, Innovate"
cinergix.com




-- 
Software Engineer, WSO2 Inc



      

Re: axis2/c depending on openSSL

Posted by Supun Kamburugamuva <su...@gmail.com>.
How about the solution of having two senders and two axis2.xml files that I
have mentioned above. It should work. Only problem is you need to specify
the right client home for the ssl and non-ssl clients.

Supun..

On Wed, Sep 10, 2008 at 10:16 AM, Raymond Zhou <ra...@yahoo.com> wrote:

>
> Hi All,
>
> I am still searching solutions for this issue.
>
> Has anyone tried to dynamically load the openSSL dlls at runtime? I looked
> at the
> part of code in axis2/c handling SSL, it basically calls a bunch of openSSL
> APIs
> whose name start with SSL_, can we modify that part of code so that we use
> LoadLibrary and get function pointer to the SSL_* functions that we use?
> This way
> we don't have to have openSSL dlls in the class path for regular web
> services and
> we only need them if we need SSL communication.
>
> Thanks!
> Frank
>
>
> --- On *Fri, 8/22/08, Dumindu Pallewela <pa...@gmail.com>* wrote:
>
> From: Dumindu Pallewela <pa...@gmail.com>
> Subject: Re: axis2/c depending on openSSL
> To: "Apache AXIS C Developers List" <ax...@ws.apache.org>,
> raywang999@yahoo.com
> Date: Friday, August 22, 2008, 10:29 PM
>
>
>  Hi Frank,
>
> From my experience with apache, it tries to make sure that all the symbols
> can be resolved at load time. Thus I believe that there is no easy way out
> for you. But please don't take my word for it as I've never tried doing what
> you want; not at all on windows.
>
> Regards,
> Dumindu.
>
> On Sat, Aug 23, 2008 at 3:39 AM, Raymond Zhou <ra...@yahoo.com>wrote:
>
>>   Hi Samisa,
>>
>> If I don't ship the openSSL dlls but compile axis2/c with ssl enabled,
>> then users have to manually download and add the dlls to their class path in
>> order to use the web service client feature in my product, even if they do
>> not need SSL at all, that would be inconvenient for them. My goal is to
>> have one axis2/c package in my product to support web service client call
>> without including the openSSL dlls and only those customers of mine that
>> needs SSL will have to add the openSSL dlls to the classpath by themselves
>> (without me having to re-compile the axis2/c for them). Is there a easy
>> solution for this?
>>
>> Thanks!
>> Frank
>>
>> --- On *Fri, 8/22/08, Samisa Abeysinghe <sa...@wso2.com>* wrote:
>>
>> From: Samisa Abeysinghe <sa...@wso2.com>
>> Subject: Re: axis2/c depending on openSSL
>> To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
>> Date: Friday, August 22, 2008, 6:31 PM
>>
>>
>> Raymond Zhou wrote:
>> > Samisa,
>> >
>> > If I disable openSSL, then https won't work, right? I want both cases
>> > (http and https) to work, but openSSL dlls are only needed when the ws
>> > call is through https. The purpose is that I don't want to
>> > re-distribute the openSSL dlls in my product.
>> >
>>
>> You do not need to ship them, users can use their own.
>>
>> Samisa...
>>
>> >
>> > Thanks!
>> > Frank
>> >
>> > --- On *Fri, 8/22/08, Samisa Abeysinghe /<sa...@wso2.com>/* wrote:
>> >
>> >     From: Samisa Abeysinghe <sa...@wso2.com>
>> >     Subject: Re: axis2/c depending on openSSL
>> >     To: "Apache AXIS C Developers List"
>> <ax...@ws.apache.org>
>> >     Date: Friday, August 22, 2008, 12:37 PM
>> >
>> >     Raymond Zhou wrote:
>> >     > Hi All,
>> >     >
>> >     > I noticed that if I compile (in wondows) axis2/c with ssl-support
>>
>> >     > enabled, the openSSL dlls (ssleay23.dll and libssl32.dll) have to
>> be
>> >     > in class path in order for a web service client call to be
>> executed
>> >     > properly, enen if the call is not using https/SSL. If the dlls
>> are not
>> >     > in the path, I will get a error something like engine not loaded.
>> IS
>> >     > THERE a way to compile the axis2/c differently so that the
>> openSSL
>> >     > dlls are only needed when the ws client call uses https/SSL?
>> >     >
>> >
>> >     Disable OpenSSL in the build config file.
>> >
>> >     Samisa...
>> >
>> >     >
>> >     > Thanks!
>> >     > Frank
>> >     >
>> >     >
>> >     > No virus found in this incoming message.
>> >     > Checked by AVG - http://www.avg.com
>> >     > Version: 8.0.138 / Virus Database: 270.6.6/1625 - Release Date:
>> 8/21/2008
>> >     6:04 AM
>> >     >
>> >
>> >
>> >     --
>> >     Samisa Abeysinghe
>> >     Director, Engineering; WSO2 Inc.
>> >
>> >     http://www.wso2.com/ - "The Open Source SOA Company"
>> >
>> >
>> >     ---------------------------------------------------------------------
>> >     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>> >     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>> >
>> >
>> >
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG - http://www.avg.com
>> > Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008
>> 6:48 AM
>> >
>>
>>
>> --
>> Samisa Abeysinghe
>> Director, Engineering; WSO2 Inc.
>> http://www.wso2.com/ - "The Open Source SOA Company"
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>
>>
>>
>
>
> --
> Dumindu Pallewela
> Cinergix - "Share, Reuse, Innovate"
> cinergix.com
>
>
>


-- 
Software Engineer, WSO2 Inc