1d20b5
Do not implicitly load the zlib support if OPENSSL_NO_DEFAULT_ZLIB is set.
1d20b5
diff -up openssl-0.9.8j/ssl/ssl_ciph.c.env-nozlib openssl-0.9.8j/ssl/ssl_ciph.c
1d20b5
--- openssl-0.9.8j/ssl/ssl_ciph.c.env-nozlib	2009-01-05 15:43:07.000000000 +0100
1d20b5
+++ openssl-0.9.8j/ssl/ssl_ciph.c	2009-01-14 17:47:46.000000000 +0100
1d20b5
@@ -287,7 +287,7 @@ static void load_builtin_compressions(vo
1d20b5
 
1d20b5
 			MemCheck_off();
1d20b5
 			ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);
1d20b5
-			if (ssl_comp_methods != NULL)
1d20b5
+			if (ssl_comp_methods != NULL && getenv("OPENSSL_NO_DEFAULT_ZLIB") == NULL)
1d20b5
 				{
1d20b5
 				comp=(SSL_COMP *)OPENSSL_malloc(sizeof(SSL_COMP));
1d20b5
 				if (comp != NULL)