Date: Thu, 15 Apr 2010 20:37:30 +0300 From: Mihai Militaru <mihai.militaru@gmx.com> To: freebsd-ports@freebsd.org Subject: Re: OpenSSL with ZLIB support? Message-ID: <20100415203730.de6c85a2.mihai.militaru@gmx.com>
next in thread | raw e-mail | index | archive | help
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@gmx.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100415203730.de6c85a2.mihai.militaru>