Skip to content

Commit eaa0fb9

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". Merges r1916561 from ^/httpd/httpd/trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1916575 13f79535-47bb-0310-9956-ffa450edef68
1 parent 601e653 commit eaa0fb9

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
@@ -861,10 +861,12 @@ const char *ssl_cmd_SSLCompression(cmd_parms *cmd, void *dcfg, int flag)
861861
}
862862
}
863863
sc->compression = flag ? TRUE : FALSE;
864-
return NULL;
865864
#else
866-
return "Setting Compression mode unsupported; not implemented by the SSL library";
865+
if (flag) {
866+
return "Setting Compression mode unsupported; not implemented by the SSL library";
867+
}
867868
#endif
869+
return NULL;
868870
}
869871

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

0 commit comments

Comments
 (0)