Skip to content

Commit 65087e1

Browse files
committed
mod_ssl: Allow for "SSLCompression off" still when OPENSSL_NO_COMP.
Latest OpenSSL versions have OPENSSL_NO_COMP by default, avoid breaking existing "SSLCompression off" in configurations since it's a noop. * modules/ssl/ssl_engine_config.c(ssl_cmd_SSLCompression): Don't fail for OPENSSL_NO_COMP if the flag is "off". git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916561 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8aae9fa commit 65087e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/ssl/ssl_engine_config.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,12 @@ const char *ssl_cmd_SSLCompression(cmd_parms *cmd, void *dcfg, int flag)
951951
}
952952
}
953953
sc->compression = flag ? TRUE : FALSE;
954-
return NULL;
955954
#else
956-
return "Setting Compression mode unsupported; not implemented by the SSL library";
955+
if (flag) {
956+
return "Setting Compression mode unsupported; not implemented by the SSL library";
957+
}
957958
#endif
959+
return NULL;
958960
}
959961

960962
const char *ssl_cmd_SSLHonorCipherOrder(cmd_parms *cmd, void *dcfg, int flag)

0 commit comments

Comments
 (0)