OpenSSL with ZLIB support?

Mihai Militaru mihai.militaru at gmx.com
Thu Apr 15 17:38:22 UTC 2010


The solution I found was to copy and compile in my source:
crypto/comp/c_zlib.c, from the openssl source tree (extracting the
distfile) and include that in the sources that require it. It is a bit
dirty, but in the end it is the same thing as creating my zlib BIOs,
except that I don't create them myself.

Copied everything in a source, except the parts found here whici I put
in the corresponding header:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/objects.h>
#include <openssl/comp.h>
#include <openssl/err.h>

BIO_METHOD *BIO_f_zlib(void);

It would be interesting to find out why the ports OpenSSL can't be used
to set-up a server, though.

Cheers!
-- 
Mihai <mihai.militaru at gmx.com>


More information about the freebsd-ports mailing list