1
0
mirror of https://github.com/graygnuorg/pound.git synced 2026-10-25 10:19:36 +03:00

6 Commits

Author SHA1 Message Date
Sergey Poznyakoff
dbd58e29b1 Update copyleft statements 2025-01-02 15:06:02 +02:00
Sergey Poznyakoff
a586ddd05f Update copyright years 2024-01-03 16:43:41 +02:00
Sergey Poznyakoff
24a654bc28 Revise header modification directives.
* src/config.c (POUND_DEFAULTS): New field: header_options.
(parse_header_options): New function.
(listener_alloc): Initialize header_options.
(http_parsetab, https_parsetab, top_level_parsetab): New directive:
HeaderOption.
* src/http.c (http_header_list_locate_name): New function.
(http_header_list_append): Check if the header being added is already
in the list.  If so, act as instructed by the "replace" argument.
(http_header_list_append_list): Likewise.
(add_forwarded_headers): New function.
(do_http): Apply all header modifications after having selected the
service.  First, canned headers are added, then user-defined headers
added, then header removal directives are applied.
* src/pound.h (http_header_list_append): Change signature.  All uses
changed.

* tests/Makefile.am: Add new tests.
* tests/https.at: Remove unnecessary ClientCert directive.
* tests/optfwd.at: New test.
* tests/optorder.at: New test.
* tests/optssl.at: New test.
* tests/poundharness.pl: New variable expansions: LISTENER:PORT and
LISTENER:IP.  Same for BACKEND.
* tests/testsuite.at: Include new tests.

* NEWS: Document changes.
* doc/pound.8: Document changes.
* configure.ac: Version 4.3.90
2023-01-18 12:40:33 +02:00
Sergey Poznyakoff
9d3981873e Update copyright years 2023-01-08 12:39:14 +02:00
Sergey Poznyakoff
c0fd7c7fbe Various fixes
* configure.ac: Change email address.
Fix m4 quoting.
Rewrite checks for libraries.
Print status summary at the end of run.
* doc/pound.8: Change email address.
* doc/poundctl.8: Likewise.
* src/Makefile.am (noinst_HEADERS): Remove stray entry.
* src/config.c: Fix help output alignment.
* src/http.c (do_http): Remove unnecessary debug message.
* tests/https.at: Use 2048 bit RSA to prevent OpenSSL from
complaining.
* tests/virthost.at: Likewise.
2022-12-01 20:45:32 +02:00
Sergey Poznyakoff
20f14a17dd Rewrite list support using macros.
* pound.h: Move externs to extern.h
(SLIST_HEAD,SLIST_HEAD_INITIALIZER,SLIST_ENTRY)
(SLIST_INIT,SLIST_PUSH,SLIST_SHIFT,SLIST_FOREACH)
(SLIST_COPY,SLIST_FIRST,SLIST_EMPTY,SLIST_NEXT): New macros.
(MATCHER, BACKEND, SERVICE)
(POUND_CTX, LISTENER): Change type of the next field.
(MATCHER_HEAD, BACKEND_HEAD, SERVICE_HEAD)
(POUND_CTX_HEAD, LISTENER_HEAD): New aggregate types.
* extern.h: New file.
* Makefile.am (noinst_HEADERS): Add new files.
* config.c: Include extern.h
Use SLIST macros to manipulate lists.
(parse_emergency): Only one emergency block is allowed.
* http.c: Use SLIST macros to manipulate lists.
* pound.c: Likewise.
* svc.c: Likewise.
* poundctl.c: Likewise.

* tests/Makefile.am: Add new files.
* tests/testsuite.at: Likewise.
* tests/https.at: New file.
* tests/virthost.at: New file.
* tests/poundharness.pl: Add https support and regex matching for
headers.
2022-11-20 18:41:48 +02:00