summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2024-10-15 16:30:19 +0200
committerJoe Orton <jorton@apache.org>2024-10-15 16:30:19 +0200
commitfbf57b8bef3b66f817144b655cac7ac3ca463deb (patch)
tree3dc01db4b5a863b0bfc2db87f340b57813ec3d03 /modules
parentCI: Use the image version in the cache keys. This is likely a simpler (diff)
downloadapache2-fbf57b8bef3b66f817144b655cac7ac3ca463deb.tar.xz
apache2-fbf57b8bef3b66f817144b655cac7ac3ca463deb.zip
mod_ssl: Disallow SSLOpenSSLConfCmd within vhost context since it
has global effect. * modules/ssl/ssl_engine_config.c (ssl_cmd_SSLOpenSSLConfCmd): Disallow use within vhost context. PR: 69397 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/ssl/ssl_engine_config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c
index 43593d799c..a9e98b9c5b 100644
--- a/modules/ssl/ssl_engine_config.c
+++ b/modules/ssl/ssl_engine_config.c
@@ -2162,6 +2162,10 @@ const char *ssl_cmd_SSLOpenSSLConfCmd(cmd_parms *cmd, void *dcfg,
const char *err;
ssl_ctx_param_t *param;
+ if ((err = ap_check_cmd_context(cmd, GLOBAL_ONLY))) {
+ return err;
+ }
+
if (value_type == SSL_CONF_TYPE_UNKNOWN) {
return apr_psprintf(cmd->pool,
"'%s': invalid OpenSSL configuration command",