Make OPENSSL_NO_COMP work on Win32.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2005 12:26:06 +0000 (12:26 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2005 12:26:06 +0000 (12:26 +0000)
ssl/ssltest.c
util/mk1mf.pl

index 10a5293b0580abf1113babddb59c2c7fc1d3bb55..c93c5063abc5433588d165d7b6bfd08c11e3b057 100644 (file)
@@ -678,7 +678,6 @@ bad:
                        ERR_print_errors_fp(stderr);
                        }
                }
-#endif
        ssl_comp_methods = SSL_COMP_get_compression_methods();
        fprintf(stderr, "Available compression methods:\n");
        {
@@ -692,6 +691,7 @@ bad:
                        fprintf(stderr, "  %d: %s\n", c->id, c->name);
                        }
        }
+#endif
 
 #if !defined(OPENSSL_NO_SSL2) && !defined(OPENSSL_NO_SSL3)
        if (ssl2)
index ea61cb6c32253f7c1bcb93cdfd689725abf68f58..ff668375a02c525e08378bc5b20c4f5f79ac2160 100755 (executable)
@@ -954,6 +954,7 @@ sub read_options
                                }
                        }
                }
+       elsif (/^no-comp$/) { $xcflags = "-DOPENSSL_NO_COMP $xcflags"; }
        elsif (/^enable-zlib$/) { $xcflags = "-DZLIB $xcflags"; }
        elsif (/^enable-zlib-dynamic$/)
                {