From owner-freebsd-ports@FreeBSD.ORG Thu Apr 15 17:38:22 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B212106566B for ; Thu, 15 Apr 2010 17:38:22 +0000 (UTC) (envelope-from mihai.militaru@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id B50798FC15 for ; Thu, 15 Apr 2010 17:38:21 +0000 (UTC) Received: (qmail invoked by alias); 15 Apr 2010 17:38:20 -0000 Received: from 89-45-24-235.citynet.botosani.ro (EHLO free.bsd369441.org) [89.45.24.235] by mail.gmx.com (mp-eu002) with SMTP; 15 Apr 2010 19:38:20 +0200 X-Authenticated: #45327653 X-Provags-ID: V01U2FsdGVkX1/XAa9TW9vXMaO4Dn/oRF5sX3zTs80GP4c7QyNVf3 eDtqsDAwFQtZ4O Date: Thu, 15 Apr 2010 20:37:30 +0300 From: Mihai Militaru To: freebsd-ports@freebsd.org Message-Id: <20100415203730.de6c85a2.mihai.militaru@gmx.com> X-Mailer: Sylpheed 3.0.1 (GTK+ 2.18.7; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66000000000000003 Subject: Re: OpenSSL with ZLIB support? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2010 17:38:22 -0000 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 #include #include #include #include #include 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