From: Mihai Militaru on
Hey,

I'm building an application (custom Makefile, not a port or something) which requires openssl with zlib compression - it uses the zlib BIO for compressing and encrypting files locally. The problem is:
- If I use openssl from base, zlib support is not built-in. The application fails to link following a missing reference to BIO_zlib.
- If I use openssl from ports, the application builds fine, on the other hand I get "connection refused" when a client tries to connect to this server.

So, the solution would be either to be able to build the base system with OpenSSL using zlib, or find out how could I solve the "connection refused problem", I have no idea why that happens and can't find information about this exact problem. Any ideas?

Thanks,
Mihai

--
Mihai Militaru <mihai.militaru(a)gmx.com>
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Mihai Militaru on
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(a)gmx.com>
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"