Static build of openssl on windows with zlib

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Static build of openssl on windows with zlib

Steve doh
Hi,
I have a static build of openssl 0.9.7.g
I want to add zlib compression but not dynamically loaded at runtime.
Is it possible to statically link zlib into the openssl build?
If yes, what configure options do you use?
I have tried:
perl configure VC-WIN32 no-engine threads no-shared zlib no-idea no-mdc2
no-rc5

but using the build from this, a call to COMP_zlib returns null and I guess
looking at the code
in c_zlib.c that it is trying to dynamically load the zlib library and
failing.
(My application currently statically links the zlib library for compressing
files and I would rather use on-the-fly ssl compression for data transfer)

TIA
Regards
Steve

_________________________________________________________________
Become a fitness fanatic @  http://xtramsn.co.nz/health

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Static build of openssl on windows with zlib

Dr. Stephen Henson
On Thu, Mar 30, 2006, Steve doh wrote:

> Hi,
> I have a static build of openssl 0.9.7.g
> I want to add zlib compression but not dynamically loaded at runtime.
> Is it possible to statically link zlib into the openssl build?
> If yes, what configure options do you use?
> I have tried:
> perl configure VC-WIN32 no-engine threads no-shared zlib no-idea no-mdc2
> no-rc5
>
> but using the build from this, a call to COMP_zlib returns null and I guess
> looking at the code
> in c_zlib.c that it is trying to dynamically load the zlib library and
> failing.
> (My application currently statically links the zlib library for compressing
> files and I would rather use on-the-fly ssl compression for data transfer)
>

You should use OpenSSL 0.9.8. The compression scheme used by older versions of
OpenSSL is not standards compliant.

On that you should be able to use the zlib library statically.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]