ssl_release(): Fix build with LibreSSL
[privoxy.git] / openssl.c
index 1bf08d1..7e4e3d8 100644 (file)
--- a/openssl.c
+++ b/openssl.c
@@ -2178,12 +2178,14 @@ extern void ssl_release(void)
 {
    if (ssl_inited == 1)
    {
+#ifndef OPENSSL_NO_COMP
       SSL_COMP_free_compression_methods();
-
+#endif
       CONF_modules_free();
       CONF_modules_unload(1);
-
+#ifndef OPENSSL_NO_COMP
       COMP_zlib_cleanup();
+#endif
 
       ERR_free_strings();
       EVP_cleanup();