summaryrefslogtreecommitdiff
path: root/modules/metadata
Commit message (Collapse)AuthorAgeFilesLines
* mod_unique_id: Follow up to r1892915 and r1893002: Atomic counter.Yann Ylavic2021-09-071-6/+32
| | | | | | | | | | * modules/metadata/mod_unique_id.c(gen_unique_id): Use an atomic 32bit counter to close the race condition, using the lower 16 bits for uuencoding still. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893004 13f79535-47bb-0310-9956-ffa450edef68
* mod_unique_id: Follow up to r1892915: Shorter counter race condition yet.Yann Ylavic2021-09-071-5/+3
| | | | | | | | | | * modules/metadata/mod_unique_id.c(gen_unique_id): Set the counter in network byte order for uuencoding only, allowing for simple cur_unique_id.counter++ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893002 13f79535-47bb-0310-9956-ffa450edef68
* Reduce the time window where duplicates may be generated by mod_uniqueidChristophe Jaillet2021-09-051-7/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892915 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1887244 and r1887245 which causes issues on WindowsChristophe Jaillet2021-09-051-32/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892914 13f79535-47bb-0310-9956-ffa450edef68
* *) core: provide ap_ssl_* functions in new http_ssl.h header file.Stefan Eissing2021-03-261-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1888083 13f79535-47bb-0310-9956-ffa450edef68
* Using the new ap_ssl_conn_is_ssl() and ap_ssl_var_lookup() in all internal ↵Stefan Eissing2021-03-091-16/+5
| | | | | | | | | | | | modules. * leaving mod_nw_ssl and mod_ssl itself untouched * removing mod_ssl.h includes where no longer necessary * some modules might skip post_config hooks, but those were left in, even when empty now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887364 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1887244.Christophe Jaillet2021-03-061-5/+5
| | | | | | Wrong version of the patch attached :( git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887245 13f79535-47bb-0310-9956-ffa450edef68
* Fix a potential duplicated ID generation issue under heavy load.Christophe Jaillet2021-03-061-20/+32
| | | | | | | | | | This is due to a non thread safe use of a counter. Use a counter for each thread instead to avoid the issue. PR 65159 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887244 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_unique_id.c: Use base64url encoding forJoe Orton2020-11-301-6/+3
| | | | | | | | | | uuencoder table. PR: 57044 Submitted by: Michael Kaufmann <apache-bugzilla michael-kaufmann.ch> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883947 13f79535-47bb-0310-9956-ffa450edef68
* Add missing pool tags to help debugging.Yann Ylavic2020-04-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876599 13f79535-47bb-0310-9956-ffa450edef68
* Slighly simplify code.Christophe Jaillet2020-02-281-12/+4
| | | | | | | | | No need to set to NULL or 0 fields that are apr_pcalloc'ed. Axe 'set_cookie_enable' and use 'ap_set_flag_slot' instead. (based on ideas taken from r1874389) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874602 13f79535-47bb-0310-9956-ffa450edef68
* Remove duplicated "CookieTracking" directive in 'command_rec'.Christophe Jaillet2020-02-281-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874601 13f79535-47bb-0310-9956-ffa450edef68
* * Another whitespace fixRuediger Pluem2020-02-251-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874481 13f79535-47bb-0310-9956-ffa450edef68
* * Whitespace fixRuediger Pluem2020-02-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874480 13f79535-47bb-0310-9956-ffa450edef68
* PR64077: samesite/httponly/secure flags for usertrackEric Covener2020-02-221-0/+55
| | | | | | | | | Submitted By: Prashant Keshvani <prashant2400 gmail.com>, Eric Covener Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874389 13f79535-47bb-0310-9956-ffa450edef68
* handle LOCAL ver_cmd proxy headersGiovanni Bechis2020-02-211-0/+3
| | | | | | | bz 63893 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874344 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-132-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* mod_setenvif: add "early mode"Eric Covener2020-01-141-5/+43
| | | | | | | | Primarily to run before `RequestHeader ... ... early` git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872797 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typoChristophe Jaillet2019-09-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1867255 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_remoteip.c (remoteip_process_v2_header,Joe Orton2019-08-061-9/+27
| | | | | | | | | 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
* * modules/metadata/mod_mime_magic.c: Constify some constantJoe Orton2019-06-271-7/+6
| | | | | | | | 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
* This is harmless, but this really should be an 'echo_do *'Christophe Jaillet2019-02-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1853757 13f79535-47bb-0310-9956-ffa450edef68
* mod_remoteip: Fix RemoteIP{Trusted,Internal}ProxyList loading broken by 2.4.30.Yann Ylavic2018-05-311-12/+0
| | | | | | | | | | Overwriting server config in pre_config hook breaks EXEC_ON_READ directives, it's automatically created on purpose anyway. PR 62220. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832580 13f79535-47bb-0310-9956-ffa450edef68
* copy apr_sockaddr_is_wildcard to maintain 1.4.x support.Eric Covener2018-03-241-0/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827654 13f79535-47bb-0310-9956-ffa450edef68
* mod_remoteip: make proxy-protocol work on slave connections, e.g. in HTTP/2Stefan Eissing2018-03-191-1/+6
| | | | | | | requests. See also https://github.com/roadrunner2/mod-proxy-protocol/issues/6 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827196 13f79535-47bb-0310-9956-ffa450edef68
* some small tweaks to get things building againGregg Lewis Smith2018-01-191-4/+4
| | | | | | | replace mod_socache_redis.dsp as original was corrupted git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821581 13f79535-47bb-0310-9956-ffa450edef68
* avoid ap_set_content_type when processing a _Request_Header set|edit|unset ↵Eric Covener2018-01-101-4/+7
| | | | | | | | | | Content-Type. identified by ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820750 13f79535-47bb-0310-9956-ffa450edef68
* PR 61983: "Header unset Content-Type" doesn't workEric Covener2018-01-101-0/+3
| | | | | | | | | | Submitted By: Hank Ibell <hwibell gmail.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820715 13f79535-47bb-0310-9956-ffa450edef68
* APR-ize uint typesJim Jagielski2017-12-151-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818279 13f79535-47bb-0310-9956-ffa450edef68
* Fix format pattern (%lu => %APR_SIZE_T_FMT).Rainer Jung2017-10-161-2/+3
| | | | | | | | | | | | | | Detected by maintainer mode compilation and GCC error: .../modules/metadata/mod_remoteip.c: In function 'remoteip_input_filter': .../include/http_log.h:117:33: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'apr_size_t {aka unsigned int}' [-Werror=format=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1812332 13f79535-47bb-0310-9956-ffa450edef68
* PROXY protocol proposal correctionsMike Rumph2017-09-011-7/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1806985 13f79535-47bb-0310-9956-ffa450edef68
* Fix remaning compilation warning when MIME_MAGIC_DEBUG is defined.Christophe Jaillet2017-08-191-12/+12
| | | | | | | | Style is not perfect, but at least, the warning is fixed. warning: format ‘%c’ expects argument of type ‘int’, but argument 10 has type ‘long unsigned int’ [-Wformat=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805493 13f79535-47bb-0310-9956-ffa450edef68
* Fix some compilation warning when MIME_MAGIC_DEBUG is defined.Christophe Jaillet2017-08-191-4/+4
| | | | | | warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument <n> has type ‘<something> *’ [-Wformat=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805491 13f79535-47bb-0310-9956-ffa450edef68
* Remove empty line.Christophe Jaillet2017-05-221-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795834 13f79535-47bb-0310-9956-ffa450edef68
* When processing a 'SetEnv' directive, warn if the environment variable name ↵Christophe Jaillet2017-05-191-0/+11
| | | | | | includes a '='. It is likely a configuration error. PR 60249 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795635 13f79535-47bb-0310-9956-ffa450edef68
* Fix directive name in Christophe Jaillet2017-04-061-2/+2
| | | | | | | | (s/RemoteIPProxyProtocolDisableNetworks/RemoteIPProxyProtocolExceptions/) Use cmd->cmd->name instead to be future proof. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790457 13f79535-47bb-0310-9956-ffa450edef68
* Rename RemoteIPProxyProtocolDisableHosts to RemoteIPProxyProtocolExceptionsDaniel Ruggeri2017-04-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790169 13f79535-47bb-0310-9956-ffa450edef68
* Update PROXY handling by removing Optional processingDaniel Ruggeri2017-04-011-174/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789800 13f79535-47bb-0310-9956-ffa450edef68
* Finally include feedback from Ruediger Pluem. Add slave "backoff" verified ↵Daniel Ruggeri2017-03-251-3/+39
| | | | | | by Sander Hoentjen git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788674 13f79535-47bb-0310-9956-ffa450edef68
* * We can have expressions that become true if a regex pattern in the expressionRuediger Pluem2017-03-091-1/+11
| | | | | | | | does NOT match. In this case val is NULL and we should just set the value for the environment variable like in the pattern case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1786235 13f79535-47bb-0310-9956-ffa450edef68
* Change tactic for PROXY processing in Optional caseDaniel Ruggeri2017-02-041-54/+63
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781701 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_remoteip.c (register_hooks,Joe Orton2017-01-311-4/+5
| | | | | | | | remoteip_hook_pre_connection): Reference the filter by handle rather than name (avoiding tree lookup by name on use). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781031 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_remoteip.c: Fix GCC strict-aliasing warningJoe Orton2017-01-311-1/+8
| | | | | | | | by moving deference of header array via a different pointer type ("type-punning") out of line. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781030 13f79535-47bb-0310-9956-ffa450edef68
* Set all read buckets aside in case we need to restore all during optional ↵Daniel Ruggeri2017-01-281-13/+18
| | | | | | header processing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1780725 13f79535-47bb-0310-9956-ffa450edef68
* * Silence compiler warningRuediger Pluem2017-01-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778268 13f79535-47bb-0310-9956-ffa450edef68
* Reinsert attribution to mod_remoteip.c for PROXY protocolDaniel Ruggeri2016-12-311-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776740 13f79535-47bb-0310-9956-ffa450edef68
* On the trunk:Stefan Eissing2016-12-311-1/+1
| | | | | | | | * mod_remoteip: added cast to fix clang compiler error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776734 13f79535-47bb-0310-9956-ffa450edef68
* Move attribution for mod_remoteip RemoteIPProxyProtocol from file to CHANGESDaniel Ruggeri2016-12-311-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776674 13f79535-47bb-0310-9956-ffa450edef68
* Shorten RemoteIPProxyProtocolEnable to RemoteIPProxyProtocol and correct ↵Daniel Ruggeri2016-12-301-4/+4
| | | | | | references in docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776624 13f79535-47bb-0310-9956-ffa450edef68
* Merge new PROXY protocol code into mod_remoteipDaniel Ruggeri2016-12-301-2/+773
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776575 13f79535-47bb-0310-9956-ffa450edef68