#ifdef HAVE_FIPS
sc->fips = UNSET;
#endif
+#ifndef OPENSSL_NO_COMP
sc->compression = UNSET;
+#endif
modssl_ctx_init_proxy(sc, p);
#ifdef HAVE_FIPS
cfgMergeBool(fips);
#endif
+#ifndef OPENSSL_NO_COMP
cfgMergeBool(compression);
+#endif
modssl_ctx_cfg_merge_proxy(base->proxy, add->proxy, mrg->proxy);
const char *ssl_cmd_SSLCompression(cmd_parms *cmd, void *dcfg, int flag)
{
-#if defined(SSL_OP_NO_COMPRESSION) || OPENSSL_VERSION_NUMBER >= 0x00908000L
+#if !defined(OPENSSL_NO_COMP)
SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
#ifndef SSL_OP_NO_COMPRESSION
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
}
#endif
-#ifdef SSL_OP_NO_COMPRESSION
- /* OpenSSL >= 1.0 only */
+
+#ifndef OPENSSL_NO_COMP
if (sc->compression == FALSE) {
+#ifdef SSL_OP_NO_COMPRESSION
+ /* OpenSSL >= 1.0 only */
SSL_CTX_set_options(ctx, SSL_OP_NO_COMPRESSION);
- }
#elif OPENSSL_VERSION_NUMBER >= 0x00908000L
- /* workaround for OpenSSL 0.9.8 */
- if (sc->compression == FALSE) {
- STACK_OF(SSL_COMP)* comp_methods;
- comp_methods = SSL_COMP_get_compression_methods();
- sk_SSL_COMP_zero(comp_methods);
+ sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());
+#endif
}
#endif
#define HAVE_TLSV1_X
#endif
+#if !defined(OPENSSL_NO_COMP) && !defined(SSL_OP_NO_COMPRESSION) \
+ && OPENSSL_VERSION_NUMBER < 0x00908000L
+#define OPENSSL_NO_COMP
+#endif
+
/* SRP support came in OpenSSL 1.0.1 */
#ifndef OPENSSL_NO_SRP
#ifdef SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB
#ifdef HAVE_FIPS
BOOL fips;
#endif
+#ifndef OPENSSL_NO_COMP
BOOL compression;
+#endif
};
/**