]> granicus.if.org Git - apache/log
apache
4 years agofr doc rebuild.
Lucien Gentis [Sat, 17 Aug 2019 13:59:55 +0000 (13:59 +0000)]
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1865356 13f79535-47bb-0310-9956-ffa450edef68

4 years agoXML update.
Lucien Gentis [Sat, 17 Aug 2019 13:58:41 +0000 (13:58 +0000)]
XML update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1865355 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Tue, 13 Aug 2019 11:59:00 +0000 (11:59 +0000)]
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1865031 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc - new translated file.
Lucien Gentis [Tue, 13 Aug 2019 11:56:27 +0000 (11:56 +0000)]
fr doc - new translated file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1865029 13f79535-47bb-0310-9956-ffa450edef68

4 years agoInclude for mod_status.h
Steffen Land [Sun, 11 Aug 2019 10:52:56 +0000 (10:52 +0000)]
Include for mod_status.h

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864924 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix the directive name used in <usage> of 'RemoteIPProxyProtocolExceptions'.
Christophe Jaillet [Sun, 11 Aug 2019 06:19:01 +0000 (06:19 +0000)]
Fix the directive name used in <usage> of 'RemoteIPProxyProtocolExceptions'.

Fix some style (there is no need to have a link to the directive within its <directivesynopsis> block)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864913 13f79535-47bb-0310-9956-ffa450edef68

4 years agoRevert r1864878.
Christophe Jaillet [Sat, 10 Aug 2019 15:46:45 +0000 (15:46 +0000)]
Revert r1864878.
This breaks compilation because of a use defore definition.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864879 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix a signed/unsigned comparison in 'ap_filter_should_yield()' and 'ap_request_core_f...
Christophe Jaillet [Sat, 10 Aug 2019 15:26:01 +0000 (15:26 +0000)]
Fix a signed/unsigned comparison in 'ap_filter_should_yield()' and 'ap_request_core_filter()'.

This is harmless and only present in trunk.

Spotted by gcc 9.1 and -Wextra

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864878 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix a signed/unsigned comparison that can never match.
Christophe Jaillet [Sat, 10 Aug 2019 09:52:34 +0000 (09:52 +0000)]
Fix a signed/unsigned comparison that can never match.

-1 is a valid length value (for socket, pipe and cgi buckets for example)
All path I've checked cast the -1 to (apr_size_t) in order for the comparison to work. So do it as well here.

This has been like that in trunk since r708144, about 11 years ago, so I assume that it is not really an issue.

Spotted by gcc 9.1 and -Wextra

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864868 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix a signed/unsigned comparison that can never match.
Christophe Jaillet [Sat, 10 Aug 2019 08:59:13 +0000 (08:59 +0000)]
Fix a signed/unsigned comparison that can never match.
(+ add a missing space to improve formating)

Spotted by gcc 9.1 and -Wextra

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864865 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix to allow the logging of SSL_CIPHER variable (instead of SSL_COPHER)
Christophe Jaillet [Sat, 10 Aug 2019 01:02:02 +0000 (01:02 +0000)]
Fix to allow the logging of SSL_CIPHER variable (instead of SSL_COPHER)

(reported by  eric-therond in GitHub issue #60)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864834 13f79535-47bb-0310-9956-ffa450edef68

4 years ago-l and -L are not exclusive.
Christophe Jaillet [Fri, 9 Aug 2019 11:57:26 +0000 (11:57 +0000)]
-l and -L are not exclusive.
Document the 'G' suffix.

See PR 63638

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864786 13f79535-47bb-0310-9956-ffa450edef68

4 years ago-l and -L are not exclusive.
Christophe Jaillet [Fri, 9 Aug 2019 11:44:12 +0000 (11:44 +0000)]
-l and -L are not exclusive.
Document the 'G' suffix.
Fix some minor style issues.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864784 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix a corner case where automatic APLOGNO number generation generates invalid code...
Christophe Jaillet [Fri, 9 Aug 2019 06:49:46 +0000 (06:49 +0000)]
Fix a corner case where automatic APLOGNO number generation generates invalid code. (see r1864733 fixed in r1864736, thx Eric)

Not sure why this ,? is there, but it looks uneeded to me.
There is maybe a link with the patterns used in 'find-messages.cocci'. They seem to add some extra , after the empty APLOGNO() it generates.
I will investigate further and fix 'find-messages.cocci' accordingly if needed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864771 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAxe some dead code + slighly improve a comment
Christophe Jaillet [Fri, 9 Aug 2019 05:18:22 +0000 (05:18 +0000)]
Axe some dead code + slighly improve a comment

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864759 13f79535-47bb-0310-9956-ffa450edef68

4 years agoTweak coccinelle search pattern.
Christophe Jaillet [Fri, 9 Aug 2019 05:11:53 +0000 (05:11 +0000)]
Tweak coccinelle search pattern.

ssl_log_xerror is the only ssl function that takes a 'pool' argument.
Remove the function name regex as already done for 'ap_log_cserror' above.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864758 13f79535-47bb-0310-9956-ffa450edef68

4 years agofollowup to r1864733
Eric Covener [Thu, 8 Aug 2019 21:24:41 +0000 (21:24 +0000)]
followup to r1864733

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864736 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd missing APLOGNO
Christophe Jaillet [Thu, 8 Aug 2019 20:40:49 +0000 (20:40 +0000)]
Add missing APLOGNO

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864733 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Thu, 8 Aug 2019 15:21:20 +0000 (15:21 +0000)]
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864715 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc - new file.
Lucien Gentis [Thu, 8 Aug 2019 15:17:45 +0000 (15:17 +0000)]
fr doc - new file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864714 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/proxy/mod_proxy_balancer.c (balancer_display_page):
Joe Orton [Thu, 8 Aug 2019 14:00:03 +0000 (14:00 +0000)]
* modules/proxy/mod_proxy_balancer.c (balancer_display_page):
  Add more HTML-escaping.

Submitted by: Niels Heinen <heinenn google.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864703 13f79535-47bb-0310-9956-ffa450edef68

4 years agobump
Eric Covener [Thu, 8 Aug 2019 13:07:21 +0000 (13:07 +0000)]
bump

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864700 13f79535-47bb-0310-9956-ffa450edef68

4 years agolognos
Eric Covener [Thu, 8 Aug 2019 13:07:16 +0000 (13:07 +0000)]
lognos

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864699 13f79535-47bb-0310-9956-ffa450edef68

4 years agoBump next-number after r1864695.
Joe Orton [Thu, 8 Aug 2019 12:12:46 +0000 (12:12 +0000)]
Bump next-number after r1864695.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864696 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/proxy/mod_proxy_balancer.c (balancer_handler): Check Referer
Joe Orton [Thu, 8 Aug 2019 12:11:36 +0000 (12:11 +0000)]
* modules/proxy/mod_proxy_balancer.c (balancer_handler): Check Referer
  to improve on protection against balancer-manager XSRF attacks
  provided by the nonce.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864695 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/proxy/proxy_util.c (ap_proxy_share_balancer): Create the
Joe Orton [Thu, 8 Aug 2019 12:03:14 +0000 (12:03 +0000)]
* modules/proxy/proxy_util.c (ap_proxy_share_balancer): Create the
  nonce as a pseudo-UUID using the PRNG.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864693 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate links to APR/APU svn to recent stable branches.
Rainer Jung [Tue, 6 Aug 2019 16:46:12 +0000 (16:46 +0000)]
Update links to APR/APU svn to recent stable branches.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864544 13f79535-47bb-0310-9956-ffa450edef68

4 years agoBump next-number after r1864526.
Joe Orton [Tue, 6 Aug 2019 15:41:46 +0000 (15:41 +0000)]
Bump next-number after r1864526.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864527 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/metadata/mod_remoteip.c (remoteip_process_v2_header,
Joe Orton [Tue, 6 Aug 2019 15:41:22 +0000 (15:41 +0000)]
* modules/metadata/mod_remoteip.c (remoteip_process_v2_header,
  remoteip_input_filter): Add sanity checks.

Submitted by: jorton, Daniel McCarney <cpu letsencrypt.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864526 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* modules/filters/mod_proxy_html.c, modules/filters/mod_xml2enc.c:
Joe Orton [Tue, 6 Aug 2019 07:54:24 +0000 (07:54 +0000)]
* modules/filters/mod_proxy_html.c, modules/filters/mod_xml2enc.c:
  Fix gcc 9 warnings in code attempting to reduce gcc warnings.
  (should have used expat...)

mod_xml2enc.c:26:28: warning: "/*" within comment [-Wcomment]
   26 | /* libxml2 includes unicode/*.h files which uses C++ comments */
      |
mod_proxy_html.c:32:28: warning: "/*" within comment [-Wcomment]
   32 | /* libxml2 includes unicode/*.h files which uses C++ comments */
      |

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864464 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUnfortunately -Wcomment can only be influenced
Rainer Jung [Mon, 5 Aug 2019 18:31:35 +0000 (18:31 +0000)]
Unfortunately -Wcomment can only be influenced
using a diagnostics pragma starting with GCC 4.6.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864451 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFollow up to r1864438 and r1864435:
Rainer Jung [Mon, 5 Aug 2019 18:05:12 +0000 (18:05 +0000)]
Follow up to r1864438 and r1864435:
Use the right pragma syntax also in the second file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864450 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUse the right pragma syntax.
Rainer Jung [Mon, 5 Aug 2019 14:28:41 +0000 (14:28 +0000)]
Use the right pragma syntax.
Follow-up to r1864435.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864438 13f79535-47bb-0310-9956-ffa450edef68

4 years agoThe GCC flag "-Wno-error=comment" introduced by r1855446
Rainer Jung [Mon, 5 Aug 2019 14:18:22 +0000 (14:18 +0000)]
The GCC flag "-Wno-error=comment" introduced by r1855446
and r1850745 are only known since GCC 4.2. Since it gets
set unconditionally, this breaks compilation with old GCC
even when not using maintainer mode.

Make the fix for maintainer mode more specific by using
a version dependent pragma in the relevant two C files
only switching off error status for comment warnings.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864435 13f79535-47bb-0310-9956-ffa450edef68

4 years ago *) mod_ssl: reverting a 2.4.40 change where a superfluous SSLCertificateChainFile...
Stefan Eissing [Mon, 5 Aug 2019 11:29:58 +0000 (11:29 +0000)]
  *) mod_ssl: reverting a 2.4.40 change where a superfluous SSLCertificateChainFile configuration
     for a domain managed by mod_md caused a startup error. This happened when mod_md installed
     its fallback certificate, before it got the first real certificate from Lets Encrypt.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864428 13f79535-47bb-0310-9956-ffa450edef68

4 years ago * mod_md: fix compiler warnings
Stefan Eissing [Mon, 5 Aug 2019 10:27:34 +0000 (10:27 +0000)]
 * mod_md: fix compiler warnings

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864425 13f79535-47bb-0310-9956-ffa450edef68

4 years agoset PCRE_DOTALL by default
Eric Covener [Fri, 2 Aug 2019 01:31:28 +0000 (01:31 +0000)]
set PCRE_DOTALL by default

Submitted by ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864192 13f79535-47bb-0310-9956-ffa450edef68

4 years agoremove request details from error documents (CVE-2019-10092).
Eric Covener [Fri, 2 Aug 2019 01:27:37 +0000 (01:27 +0000)]
remove request details from error documents (CVE-2019-10092).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864191 13f79535-47bb-0310-9956-ffa450edef68

4 years agodon't mess with AP_ENABLE_EXCEPTION_HOOK on trunk
Eric Covener [Thu, 1 Aug 2019 13:58:45 +0000 (13:58 +0000)]
don't mess with AP_ENABLE_EXCEPTION_HOOK on trunk

mpm_common defines it later anyway:

In file included from mod_md.c:25:
In file included from /Users/covener/SRC/httpd-trunk/include/mpm_common.h:40:
In file included from /Users/covener/SRC/httpd-trunk/include/ap_config.h:184:
/Users/covener/SRC/httpd-trunk/include/ap_config_auto.h:11:9: error: 'AP_ENABLE_EXCEPTION_HOOK' macro redefined [-Werror,-Wmacro-redefined]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864153 13f79535-47bb-0310-9956-ffa450edef68

4 years agoupdate transformation
André Malo [Thu, 1 Aug 2019 08:37:48 +0000 (08:37 +0000)]
update transformation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864134 13f79535-47bb-0310-9956-ffa450edef68

4 years agosvn:eol-style=native
André Malo [Thu, 1 Aug 2019 08:28:25 +0000 (08:28 +0000)]
svn:eol-style=native

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864129 13f79535-47bb-0310-9956-ffa450edef68

4 years agoWrap get_ct_scts_nid() in preproc in order to avoid error: unused function 'get_ct_sc...
Jim Jagielski [Tue, 23 Jul 2019 12:50:04 +0000 (12:50 +0000)]
Wrap get_ct_scts_nid() in preproc in order to avoid error: unused function 'get_ct_scts_nid' [-Werror,-Wunused-function] in maint mode

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863635 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 20 Jul 2019 15:44:04 +0000 (15:44 +0000)]
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863482 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc - adding a new xml file.
Lucien Gentis [Sat, 20 Jul 2019 15:41:10 +0000 (15:41 +0000)]
fr doc - adding a new xml file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863481 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSynch trunk and 2.4.x
Christophe Jaillet [Sat, 20 Jul 2019 09:08:21 +0000 (09:08 +0000)]
Synch trunk and 2.4.x

Remove some useless spaces which have never been backported in 2.4.x.
This was part of r1724879 and was backported in r1744951

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863453 13f79535-47bb-0310-9956-ffa450edef68

4 years agoSynch 2.4 and trunk.
Christophe Jaillet [Sat, 20 Jul 2019 08:06:04 +0000 (08:06 +0000)]
Synch 2.4 and trunk.

Remove an empty line that must have been missed in a backport.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863448 13f79535-47bb-0310-9956-ffa450edef68

4 years ago *) mod_http2: core setting "LimitRequestFieldSize" is not additionally checked on
Stefan Eissing [Thu, 18 Jul 2019 12:31:01 +0000 (12:31 +0000)]
  *) mod_http2: core setting "LimitRequestFieldSize" is not additionally checked on
     merged header fields, just as HTTP/1.1 does. [Stefan Eissing, Michael Kaufmann]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863276 13f79535-47bb-0310-9956-ffa450edef68

4 years ago mod_http2: update log tags, log field len errors at INFO level (via mkaufmann)
Stefan Eissing [Wed, 17 Jul 2019 13:54:47 +0000 (13:54 +0000)]
 mod_http2: update log tags, log field len errors at INFO level (via mkaufmann)
 mod_proxy_http2: udpate log tags

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863221 13f79535-47bb-0310-9956-ffa450edef68

4 years agoupdate aplogno in recent hook changes
Stefan Eissing [Wed, 17 Jul 2019 12:57:33 +0000 (12:57 +0000)]
update aplogno in recent hook changes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863218 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_cgid: Continuation of r1862968, experimental fd passing support.
Joe Orton [Wed, 17 Jul 2019 07:51:53 +0000 (07:51 +0000)]
mod_cgid: Continuation of r1862968, experimental fd passing support.

Split out CGI bucket implementation from mod_cgi and use in both
mod_cgi and mod_cgid, bringing stderr handling in mod_cgid up to par
with mod_cgi.  (There is a lot of code which has been copied between
mod_cgi{,d} so there's scope for further reduction of source
duplication between the modules using this header)

* modules/generators/cgi_common.h: Copied from mod_cgi.c, removed
  everything but the CGI bucket implementation with only one change:
  (struct cgi_bucket_data, cgi_bucket_create, cgi_bucket_read): Take a
  timeout on bucket creation, store and use on reads.

* modules/generators/mod_cgi.c [APR_FILES_AS_SOCKETS]: Include
  cgi_common.h.
  (cgi_handler): Pass configured timeout to CGI bucket.

* modules/generators/mod_cgid.c: Include cgi_common.h.
  (log_script_err): Copy from mod_cgi.c.
  (log_script): Use log_script_err.
  (send_req): Take fd for stderr.
  (cgid_child_errfn): Handle fd-passing case by writing error
  to stderr for client to pass through ap_log_rerror.
  (cgid_handler): Create pipe for stderr, pass write-end to
  server via send_req, use read-end to create CGI bucket.  Handle
  stderr output in failure paths.

PR: 54221

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863191 13f79535-47bb-0310-9956-ffa450edef68

4 years agoFix crashes when running with debug APR (APR_POOL_DEBUG),
Rainer Jung [Tue, 16 Jul 2019 20:38:18 +0000 (20:38 +0000)]
Fix crashes when running with debug APR (APR_POOL_DEBUG),
because all pools have NULL allocators then.

This workaround is probably not very efficient,
but is only used when we do APR_POOL_DEBUG
and efficiency shouldn't be a big concern then.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863179 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc rebuild.
Lucien Gentis [Sat, 13 Jul 2019 13:40:20 +0000 (13:40 +0000)]
fr doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863013 13f79535-47bb-0310-9956-ffa450edef68

4 years agofr doc XML file update.
Lucien Gentis [Sat, 13 Jul 2019 13:39:17 +0000 (13:39 +0000)]
fr doc XML file update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863012 13f79535-47bb-0310-9956-ffa450edef68

4 years agoAdd experimental support for fd passing in mod_cgid. Attaches CGI
Joe Orton [Fri, 12 Jul 2019 12:09:04 +0000 (12:09 +0000)]
Add experimental support for fd passing in mod_cgid.  Attaches CGI
script stderr to the error log specific to the vhost, by passing the
appropriate fd over the AF_UNIX socket from the request handling
thread to the cgid server process.

* modules/generators/config5.m4: Add --enable-cgid-fdpassing.

* modules/generators/mod_cgid.c (sock_readhdr): New function, also
  returns auxiliary control data (the stderr fd) if available.
  (sock_write): Take optional aux fd argument, send it as control
  data.  (send_req, get_req): Adjust accordingly to pass/receive the
  stderr fd.
  (cgid_server): Use passed fd if available, limit the lifetime.

PR: 60692

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862968 13f79535-47bb-0310-9956-ffa450edef68

4 years ago *) mod_http2: fixed a bug that prevented proper stream cleanup when connection
Stefan Eissing [Wed, 10 Jul 2019 10:18:15 +0000 (10:18 +0000)]
  *) mod_http2: fixed a bug that prevented proper stream cleanup when connection
     throttling was in place. Stream resets by clients on streams initiated by them
     are counted as possible trigger for throttling.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862865 13f79535-47bb-0310-9956-ffa450edef68

4 years ago * moving the openssl related new hooks into mod_ssl_openssl.h
Stefan Eissing [Tue, 9 Jul 2019 16:57:59 +0000 (16:57 +0000)]
 * moving the openssl related new hooks into mod_ssl_openssl.h
 * chaning type parameter to openssl types
 * adding explanation of return value in get_stapling_status()
 * adding array element description for add_cert_files and add_fallback_cert_files hooks

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862823 13f79535-47bb-0310-9956-ffa450edef68

4 years ago * using mod_ssl_openssl.h to see hooks in new place
Stefan Eissing [Tue, 9 Jul 2019 16:47:36 +0000 (16:47 +0000)]
 * using mod_ssl_openssl.h to see hooks in new place

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862822 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* include/ssl/mod_ssl.h: Include apr_tables.h and use apr_array_header_t
Joe Orton [Tue, 9 Jul 2019 11:02:43 +0000 (11:02 +0000)]
* include/ssl/mod_ssl.h: Include apr_tables.h and use apr_array_header_t
  directly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862803 13f79535-47bb-0310-9956-ffa450edef68

4 years agoupdate after mod_md backport
Stefan Eissing [Tue, 9 Jul 2019 08:41:30 +0000 (08:41 +0000)]
update after mod_md backport

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862792 13f79535-47bb-0310-9956-ffa450edef68

4 years agomod_md: adding log tag numbers
Stefan Eissing [Tue, 9 Jul 2019 07:49:45 +0000 (07:49 +0000)]
mod_md: adding log tag numbers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862785 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* support/htpasswd.c (usage): More usage fixes for SHA-2; describe
Joe Orton [Mon, 8 Jul 2019 08:39:53 +0000 (08:39 +0000)]
* support/htpasswd.c (usage): More usage fixes for SHA-2; describe
  as "secure", leave bcrypt only algorithm described as "very secure".

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862724 13f79535-47bb-0310-9956-ffa450edef68

4 years agoUpdate transform.
Joe Orton [Fri, 5 Jul 2019 12:42:28 +0000 (12:42 +0000)]
Update transform.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862612 13f79535-47bb-0310-9956-ffa450edef68

4 years ago* support/htpasswd.c (usage): Document SHA-256/512 support.
Joe Orton [Fri, 5 Jul 2019 12:38:27 +0000 (12:38 +0000)]
* support/htpasswd.c (usage): Document SHA-256/512 support.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862611 13f79535-47bb-0310-9956-ffa450edef68

4 years agoTransforms.
Joe Orton [Fri, 5 Jul 2019 12:21:52 +0000 (12:21 +0000)]
Transforms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862610 13f79535-47bb-0310-9956-ffa450edef68

4 years agoDocument SHA-2 support.
Joe Orton [Fri, 5 Jul 2019 12:20:55 +0000 (12:20 +0000)]
Document SHA-2 support.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862609 13f79535-47bb-0310-9956-ffa450edef68

4 years ago * applying v4 of the patch for PR 63534.
Stefan Eissing [Fri, 5 Jul 2019 07:08:19 +0000 (07:08 +0000)]
 * applying v4 of the patch for PR 63534.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862583 13f79535-47bb-0310-9956-ffa450edef68

5 years ago *) mod_http2/mpm_event: Fixes the behaviour when a HTTP/2 connection has nothing
Stefan Eissing [Wed, 3 Jul 2019 13:46:31 +0000 (13:46 +0000)]
  *) mod_http2/mpm_event: Fixes the behaviour when a HTTP/2 connection has nothing
     more to write with streams ongoing (flow control block). The timeout waiting
     for the client to send WINODW_UPDATE was incorrectly KeepAliveTimeout and not
     Timeout as it should be. Fixes PR 63534. [Yann Ylavic, Stefan Eissing]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862475 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* All backported
Ruediger Pluem [Tue, 2 Jul 2019 09:14:36 +0000 (09:14 +0000)]
* All backported

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862414 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* Backported in r1862410
Ruediger Pluem [Tue, 2 Jul 2019 09:11:49 +0000 (09:11 +0000)]
* Backported in r1862410

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862413 13f79535-47bb-0310-9956-ffa450edef68

5 years ago *) mod_ssl/mod_md:
Stefan Eissing [Mon, 1 Jul 2019 14:22:04 +0000 (14:22 +0000)]
  *) mod_ssl/mod_md:
     Adding 2 new hooks for init/get of OCSP stapling status information when
     other modules want to provide those. Falls back to own implementation with
     same behaviour as before.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862384 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* Replace apr_psprintf with apr_pstrcat where the format strings only
Ruediger Pluem [Fri, 28 Jun 2019 08:50:31 +0000 (08:50 +0000)]
* Replace apr_psprintf with apr_pstrcat where the format strings only
  contain %s to improve efficiency. Leave out error messages as they
  are not on a crtical code path and error message become less readable
  when taking out the format specifiers.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862270 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* modules/metadata/mod_mime_magic.c: Constify some constant
Joe Orton [Thu, 27 Jun 2019 09:22:48 +0000 (09:22 +0000)]
* modules/metadata/mod_mime_magic.c: Constify some constant
  data, remove unused "suf_recursion" field.  No functional
  change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862202 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* docs/conf/magic: Allow mod_mime_magic to return "audio/x-wav" for
Joe Orton [Thu, 27 Jun 2019 09:06:56 +0000 (09:06 +0000)]
* docs/conf/magic: Allow mod_mime_magic to return "audio/x-wav" for
  WAV files, and omit returning "audio/unknown" for other RIFF
  format files.  Having a MIME type defined on a continuation line
  *and* the preceding top-level match breaks mod_mime_magic, which
  treats the second result "printed" as the MIME encoding. Neither
  audio/x-wav nor audio/unknown are IANA registered, though Firefox
  and Chrome both appear to recognize the former.  Since the RIFF
  format can contain non-audio media, returning audio/unknown as
  a fallback for all RIFF files appears to be bogus anyway.

Submitted by: Àngel Ollé Blázquez <aollebla redhat.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862200 13f79535-47bb-0310-9956-ffa450edef68

5 years ago mod_md: silencing unsed warnings when no mod_ssl hooks are not available
Stefan Eissing [Wed, 26 Jun 2019 08:45:29 +0000 (08:45 +0000)]
 mod_md: silencing unsed warnings when no mod_ssl hooks are not available

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862110 13f79535-47bb-0310-9956-ffa450edef68

5 years ago *) mod_ssl/mod_md: reversing dependency by letting mod_ssl offer hooks for
Stefan Eissing [Tue, 25 Jun 2019 15:21:10 +0000 (15:21 +0000)]
  *) mod_ssl/mod_md: reversing dependency by letting mod_ssl offer hooks for
     adding certificates and keys to a virtual host. An additional hook allows
     answering special TLS connections as used in ACME challenges.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862075 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* server/main.c (main): Don't create a separate subpool for pcommands
Joe Orton [Tue, 25 Jun 2019 12:16:24 +0000 (12:16 +0000)]
* server/main.c (main): Don't create a separate subpool for pcommands
  (it had an identical lifetime to the global pool).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862055 13f79535-47bb-0310-9956-ffa450edef68

5 years ago mod_md: updated documenation with new directives and chapters about wildcards and...
Stefan Eissing [Tue, 25 Jun 2019 11:14:38 +0000 (11:14 +0000)]
 mod_md: updated documenation with new directives and chapters about wildcards and monitoring.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862052 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* modules/proxy/mod_proxy.c (create_proxy_config): Tag the pool.
Joe Orton [Tue, 25 Jun 2019 10:57:00 +0000 (10:57 +0000)]
* modules/proxy/mod_proxy.c (create_proxy_config): Tag the pool.

* modules/lua/mod_lua.c (lua_post_config, create_vm_spec): Tag pools.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862051 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* modules/dav/main/mod_dav.c (dav_send_multistatus): Tag the pool.
Joe Orton [Tue, 25 Jun 2019 09:00:13 +0000 (09:00 +0000)]
* modules/dav/main/mod_dav.c (dav_send_multistatus): Tag the pool.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862042 13f79535-47bb-0310-9956-ffa450edef68

5 years ago mod_md: copy recent fixes, adding new sources to mod_md.dsp
Stefan Eissing [Tue, 25 Jun 2019 08:56:57 +0000 (08:56 +0000)]
  mod_md: copy recent fixes, adding new sources to mod_md.dsp
  Adding module to CMakeLists, needs testing.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862041 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* modules/dav/main/props.c (dav_do_prop_subreq): Allocate escaped URI
Joe Orton [Tue, 25 Jun 2019 08:56:06 +0000 (08:56 +0000)]
* modules/dav/main/props.c (dav_do_prop_subreq): Allocate escaped URI
  out of propdb pool, fixing small per-resource leak during a PROPFIND
  walk.

Submitted by: jorton, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862040 13f79535-47bb-0310-9956-ffa450edef68

5 years agoSimplify handling of short-lived pool for dav_propdb in mod_dav. No
Joe Orton [Tue, 25 Jun 2019 08:54:01 +0000 (08:54 +0000)]
Simplify handling of short-lived pool for dav_propdb in mod_dav.  No
functional change.

* modules/dav/main/props.c (dav_popen_propdb): Rename from
  dav_open_propdb, take a pool argument.
  (dav_open_propdb): Reimplement in terms of above, using
  r->pool.
  (dav_propfind_walker): Switch to using dav_open_propdb
  with scratchpool.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862039 13f79535-47bb-0310-9956-ffa450edef68

5 years agoSet connectiontimeout for mod_proxy_hcheck.
Jean-Frederic Clere [Mon, 24 Jun 2019 16:29:22 +0000 (16:29 +0000)]
Set connectiontimeout for mod_proxy_hcheck.
Fix for https://issues.jboss.org/browse/JBCS-448

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862014 13f79535-47bb-0310-9956-ffa450edef68

5 years ago *) mod_md: bringing over v2.0.6 from github.
Stefan Eissing [Mon, 24 Jun 2019 16:04:32 +0000 (16:04 +0000)]
  *) mod_md: bringing over v2.0.6 from github.
     - supports the ACMEv2 protocol
     - supports the new challenge method 'tls-alpn-01'
     - supports command configuration to setup/teardown 'dns-01' challenges
     - supports wildcard certificates when dns challenges are configured
     - ACMEv2 is the new default and will be used on the next certificate renewal,
       unless another MDCertificateAuthority is configured
     - challenge type 'tls-sni-01' has been removed as CAs do not offer this any longer
     - a domain exposes its status at https://<domain>/.httpd/certificate-status
     - Managed Domains are now in Apache's 'server-status' page
     - A new handler 'md-status' exposes verbose status information in JSON format
     - new directives "MDCertificateFile" and "MDCertificateKeyFile" to configure a
       Managed Domain that uses static files. Auto-renewal is turned off for those.
     - new MDMessageCmd that is invoked on several events: 'renewed', 'expiring' and
       'errored'. New 'MDWarnWindow' directive to configure when expiration warnings
       shall be issued.
     - ACMEv2 endpoints use the GET via empty POST way of accessing resources, see
       announcement by Let's Encrypt:
       https://community.letsencrypt.org/t/acme-v2-scheduled-deprecation-of-unauthenticated-resource-gets/74380

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1862013 13f79535-47bb-0310-9956-ffa450edef68

5 years agomod_ssl: use OPENSSL_init_ssl() to initialise OpenSSL on versions 1.1+.
Graham Leggett [Sun, 23 Jun 2019 21:55:48 +0000 (21:55 +0000)]
mod_ssl: use OPENSSL_init_ssl() to initialise OpenSSL on versions 1.1+.

Reference: http://openssl.6102.n7.nabble.com/Shutting-down-openssl-is-the-correct-thing-to-do-nothing-td76857.html#a76862

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861950 13f79535-47bb-0310-9956-ffa450edef68

5 years agoAfter reinstatement of DSO support in APR/APR-util, revert r1837437,
Graham Leggett [Sun, 23 Jun 2019 21:10:23 +0000 (21:10 +0000)]
After reinstatement of DSO support in APR/APR-util, revert r1837437,
r1837435, r1834553, r1833598, r1833452, r1833383, r1833368.

Undoes the following:

mod_ssl: OpenSSL now initializes fully through APR, use that.

mod_ssl: build with LibreSSL.

LibreSSL seems to be openssl-1.1 API compatible only in version 2.8 (master).
So use that for MODSSL_USE_OPENSSL_PRE_1_1_API instead of 2.7, the two 2.7
compatibility-exceptions are handled explicitely but overall it's simpler.

Regarding CRYPTO_malloc_init vs OPENSSL_malloc_init, libreSSL uses none, the
former used to be a no-op but depends is LIBRESSL_INTERNAL in latest versions,
while the latter has never been (and will never be) defined. So don't call any
with LibreSSL.

Follow up to r1833368: share openssl between modules.

Both libapr[-util], the core PRNG, mod_ssl, mod_crypto and mod_session_crypto
can use the same crypto library (e.g. openssl), use the new APR crypto loading
API so that they can work together and initialize/terminate the lib either once
for all or on demand and reusable by the others.

Follow up to r1833368: apr_crypto_prng_after_fork() now used a PID.

Make use of the new apr_crypto_rng API if available.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861947 13f79535-47bb-0310-9956-ffa450edef68

5 years agoFrench doc rebuild.
Lucien Gentis [Sat, 22 Jun 2019 16:20:11 +0000 (16:20 +0000)]
French doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861883 13f79535-47bb-0310-9956-ffa450edef68

5 years agofrench doc rebuild.
Lucien Gentis [Sat, 22 Jun 2019 16:16:02 +0000 (16:16 +0000)]
french doc rebuild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861880 13f79535-47bb-0310-9956-ffa450edef68

5 years agoVersion num update.
Lucien Gentis [Sat, 22 Jun 2019 16:14:31 +0000 (16:14 +0000)]
Version num update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861879 13f79535-47bb-0310-9956-ffa450edef68

5 years agoVersion num mismatch.
Lucien Gentis [Sat, 22 Jun 2019 16:12:17 +0000 (16:12 +0000)]
Version num mismatch.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861878 13f79535-47bb-0310-9956-ffa450edef68

5 years agoMisplaced contextlist tag.
Lucien Gentis [Sat, 22 Jun 2019 15:58:49 +0000 (15:58 +0000)]
Misplaced contextlist tag.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861876 13f79535-47bb-0310-9956-ffa450edef68

5 years agoxml fr doc update.
Lucien Gentis [Sat, 22 Jun 2019 15:54:12 +0000 (15:54 +0000)]
xml fr doc update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861875 13f79535-47bb-0310-9956-ffa450edef68

5 years agoAdd support for SHA-2 crypt() algorithm in htpasswd.
Joe Orton [Fri, 21 Jun 2019 16:20:29 +0000 (16:20 +0000)]
Add support for SHA-2 crypt() algorithm in htpasswd.

* configure.in: Detect SHA-2 support in crypt().

* support/passwd_common.h: Define ALG_CRYPT_SHA256, ALG_CRYPT_SHA512,
  include ap_config_auto.h.

* support/htpasswd.c (check_args): Allow -2, -5, -r arguments for
  SHA-256, SHA-256 and rounds options respectively.

* support/passwd_common.c
  (parse_common_options): Parse -2, -5, -r args.
  (mkhash): Generate crypt hash for SHA256/SHA512 algorithms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861793 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* configure.in, acinclude.m4: Inline APACHE_GEN_MAKEFILES in AC_CONFIG_COMMANDS
Joe Orton [Fri, 21 Jun 2019 13:30:17 +0000 (13:30 +0000)]
* configure.in, acinclude.m4: Inline APACHE_GEN_MAKEFILES in AC_CONFIG_COMMANDS
  and run during the "normal" phase of ./config.status rather than as init-cmds.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861787 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* configure.in: Move modules.c creation to config.status.
Joe Orton [Fri, 21 Jun 2019 09:45:28 +0000 (09:45 +0000)]
* configure.in: Move modules.c creation to config.status.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861769 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* configure.in: Fix enabling httpdunit w/o --enable-reduced-exports.
Joe Orton [Fri, 21 Jun 2019 09:35:38 +0000 (09:35 +0000)]
* configure.in: Fix enabling httpdunit w/o --enable-reduced-exports.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861768 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* build/config_vars.sh.in: Remove test-suite (builddir-specific) vars
Joe Orton [Fri, 21 Jun 2019 09:33:22 +0000 (09:33 +0000)]
* build/config_vars.sh.in: Remove test-suite (builddir-specific) vars
  from installed config_vars.mk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861767 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* server/scoreboard.c (open_scoreboard): Create the scoreboard in the
Joe Orton [Fri, 21 Jun 2019 09:24:19 +0000 (09:24 +0000)]
* server/scoreboard.c (open_scoreboard): Create the scoreboard in the
  parent of pconf rather than creating another global pool.

PR: 43471

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861765 13f79535-47bb-0310-9956-ffa450edef68

5 years ago* server/util.c: Make "nul" symbol private.
Joe Orton [Thu, 20 Jun 2019 14:47:23 +0000 (14:47 +0000)]
* server/util.c: Make "nul" symbol private.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861690 13f79535-47bb-0310-9956-ffa450edef68

5 years agoAdd an --enable-reduced-exports configure option to link libmain.a
Joe Orton [Thu, 20 Jun 2019 13:00:37 +0000 (13:00 +0000)]
Add an --enable-reduced-exports configure option to link libmain.a
using ld's --whole-archive mode and avoid building exports.c entirely.
This reduces the size of a minimal httpd binary by 18% on Linux/x86_64
(687K to 560K) with no difference to the set of symbols available to
modules.

This option is only appropriate to use if using a shared libapr*
build, hence is non-default.

* configure.in: Add --enable-reduced-exports; disable httpdunit build
  if used.  Define AP_FORCE_EXPORTS if not enabled (default) in place
  of AP_USING_AUTOCONF.

* server/main.c (ap_suck_in_APR): Only build if AP_FORCE_EXPORTS is
  defined.

* Makefile.in: Link libmain.la using LIBMAIN_LIB.

* server/Makefile.in: Conditionally build exports.c into libmain.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861685 13f79535-47bb-0310-9956-ffa450edef68