File pavuk-nossl2.patch of Package pavuk
--- pavuk-0.9.35.orig/src/myssl_openssl.c
+++ pavuk-0.9.35/src/myssl_openssl.c
@@ -543,9 +543,11 @@ bufio *my_ssl_do_connect(doc * docp, buf
switch (cfg.ssl_version)
{
+#ifndef OPENSSL_NO_SSL2
case 2:
method = SSLv2_client_method();
break;
+#endif
case 3:
method = SSLv3_client_method();
break;
@@ -564,6 +566,9 @@ bufio *my_ssl_do_connect(doc * docp, buf
/* Bugs compatibility */
SSL_CTX_set_options(con->ssl_ctx, SSL_OP_ALL);
+#ifdef SSL_OP_NO_COMPRESSION
+ SSL_CTX_set_options(con->ssl_ctx, SSL_OP_NO_COMPRESSION);
+#endif
/* Modes of SSL_send() */
SSL_CTX_set_mode(con->ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
SSL_CTX_set_mode(con->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);