privoxy.git
2 weeks agoMerge Debian 4.0.0-1 changes. master
Roland Rosenfeld [Fri, 31 Jan 2025 15:06:08 +0000 (16:06 +0100)]
Merge Debian 4.0.0-1 changes.

4 weeks agoRegenerate FAQ
Fabian Keil [Thu, 23 Jan 2025 08:50:18 +0000 (09:50 +0100)]
Regenerate FAQ

4 weeks agoAdd new FAQ: 'Is the Privoxy source tarball infected by a virus?'
Fabian Keil [Thu, 23 Jan 2025 08:49:55 +0000 (09:49 +0100)]
Add new FAQ: 'Is the Privoxy source tarball infected by a virus?'

4 weeks ago.../content-filters/content-filters.action: Remove duplicate action section
Fabian Keil [Thu, 23 Jan 2025 08:40:32 +0000 (09:40 +0100)]
.../content-filters/content-filters.action: Remove duplicate action section

4 weeks agoBump copyright
Fabian Keil [Sat, 18 Jan 2025 14:10:51 +0000 (15:10 +0100)]
Bump copyright

4 weeks agoAdd fetch test for the How-Tos in the user manual
Fabian Keil [Sat, 18 Jan 2025 14:10:22 +0000 (15:10 +0100)]
Add fetch test for the How-Tos in the user manual

4 weeks agoBump copyright
Fabian Keil [Tue, 14 Jan 2025 15:19:39 +0000 (16:19 +0100)]
Bump copyright

4 weeks agoUpdate RSS feed for the 4.0.0 release
Fabian Keil [Wed, 22 Jan 2025 06:00:51 +0000 (07:00 +0100)]
Update RSS feed for the 4.0.0 release

4 weeks agotests/cts: quote % in skip-reasons and manifest. v_4_0_0
Roland Rosenfeld [Fri, 17 Jan 2025 19:31:32 +0000 (20:31 +0100)]
tests/cts: quote % in skip-reasons and manifest.

curl testsuite runtests.pl uses the skip reason as sprintf() template.
So we have to quote % as %% in the skip reasons, otherwise runtests.pl
writes the following errors on stderr:

Invalid conversion in sprintf: "%{" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.
Invalid conversion in sprintf: "%H" at ./runtests.pl line 3904.

4 weeks agotests/cts/runtests-wrapper: make curl_source_directory configurable
Roland Rosenfeld [Fri, 17 Jan 2025 19:29:53 +0000 (20:29 +0100)]
tests/cts/runtests-wrapper: make curl_source_directory configurable

by setting CURL_SOURCE_DIRECTORY environment variable.

5 weeks agoRegenerate HTML user manual
Fabian Keil [Tue, 14 Jan 2025 14:55:04 +0000 (15:55 +0100)]
Regenerate HTML user manual

5 weeks agoUpdate SGML ChangeLog
Fabian Keil [Tue, 14 Jan 2025 15:03:05 +0000 (16:03 +0100)]
Update SGML ChangeLog

5 weeks agoUpdate ChangeLog in the announcement
Fabian Keil [Tue, 14 Jan 2025 15:01:29 +0000 (16:01 +0100)]
Update ChangeLog in the announcement

5 weeks agoUpdate ChangeLog
Fabian Keil [Tue, 14 Jan 2025 14:59:07 +0000 (15:59 +0100)]
Update ChangeLog

5 weeks agouser-manual: Don't claim that all TLS libararies behave the same
Fabian Keil [Tue, 14 Jan 2025 14:53:34 +0000 (15:53 +0100)]
user-manual: Don't claim that all TLS libararies behave the same

... and explicitly mention that the best choice depends on
various factors.

5 weeks agoBlock requests to b.6sc.co/
Fabian Keil [Tue, 14 Jan 2025 13:32:30 +0000 (14:32 +0100)]
Block requests to b.6sc.co/

5 weeks agoBlock requests to 0.css-load.com/
Fabian Keil [Tue, 14 Jan 2025 13:37:19 +0000 (14:37 +0100)]
Block requests to 0.css-load.com/

5 weeks agoBlock requests to html-load.com/ and 1.html-load.com/
Fabian Keil [Tue, 14 Jan 2025 13:32:11 +0000 (14:32 +0100)]
Block requests to html-load.com/ and 1.html-load.com/

5 weeks agoRemove test scenario acl-destination-permitted for now
Fabian Keil [Mon, 13 Jan 2025 12:30:29 +0000 (13:30 +0100)]
Remove test scenario acl-destination-permitted for now

As it turns out it no longer works reliably either on my system
and sometimes fails with:

    fk@t520 ~/git/privoxy/tests/cts $./run-privoxy-tests.sh -t acl-destination-permitted
    Test scenario: acl-destination-permitted
    Overwriting default TESTDIR with /home/fk/git/privoxy/tests/cts/acl-destination-permitted/data
    ********* System characteristics ********
    * curl 7.85.0-DEV (amd64-unknown-freebsd14.2)
    * libcurl/7.85.0-DEV OpenSSL/3.0.15 zlib/1.3.1 libidn2/2.3.7 libpsl/0.21.5 (+libidn2/2.3.7) nghttp2/1.64.0
    * Features: alt-svc AsynchDNS Debug HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB PSL SSL threadsafe TLS-SRP TrackMemory UnixSockets
    * Disabled:
    * Host: t520.local
    * System: ElectroBSD t520.local 14.2-STABLE ElectroBSD 14.2-STABLE #49 electrobsd-14-n270357-5e1b07e1e6c2: 2025-01-07 14:31:47 +0000     fk@t520.local:/usr/obj/usr/src/amd64.amd64/sys/ELECTRO_BEER amd64
    * OS: freebsd
    *
    *** DISABLES memory tracking when using threaded resolver
    *
    * Servers: SSL HTTP-IPv6 HTTP-unix FTP-IPv6
    * Env:
    * Seed: 262633
    *****************************************
    RUN: Unknown server on our http port: 20000 (56)
    RUN: HTTP server failed verification
    == Contents of files in the log/ dir after test 1
    === Start of file http_server.log
     13:29:31.160958 Running HTTP IPv4 version on port 20000
     13:29:31.161374 Wrote pid 8319 to .http_server.pid
     13:29:31.161492 Wrote port 20000 to .http_server.port
     13:29:32.168162 exit_signal_handler: 15
     13:29:32.168353 signalled to die
     13:29:32.168631 ========> IPv4 sws (port 20000 pid: 8319) exits with signal (15)
    === End of file http_server.log
    === Start of file http_verify.log
     * STATE: INIT => CONNECT handle 0x2d09b0b08808; line 1881 (connection #-5000)
     * Added connection 0. The cache now contains 1 members
     * family0 == v4, family1 == v6
     *   Trying 127.0.0.1:9119...
     * STATE: CONNECT => CONNECTING handle 0x2d09b0b08808; line 1942 (connection #0)
     * Connected to 127.0.0.1 (127.0.0.1) port 9119 (#0)
     * STATE: CONNECTING => PROTOCONNECT handle 0x2d09b0b08808; line 2076 (connection #0)
     * STATE: PROTOCONNECT => DO handle 0x2d09b0b08808; line 2097 (connection #0)
     > GET http://127.0.0.1:20000/verifiedserver HTTP/1.1
     > Host: 127.0.0.1:20000
     > User-Agent: curl/7.85.0-DEV
     > Accept: */*
     > Proxy-Connection: Keep-Alive
     >
     * STATE: DO => DID handle 0x2d09b0b08808; line 2193 (connection #0)
     * STATE: DID => PERFORMING handle 0x2d09b0b08808; line 2312 (connection #0)
     * Recv failure: Connection reset by peer
     * multi_done: status: 56 prem: 1 done: 0
     * The cache now contains 0 members
     * Closing connection 0
     * Expire cleared (transfer 0x2d09b0b08808)
    === End of file http_verify.log
    test 0001 SKIPPED: failed starting HTTP server
    TESTDONE: 1 tests were considered during 6 seconds.
    TESTINFO: 1 tests were skipped due to these restraints:
    TESTINFO: "failed starting HTTP server" 1 time (1)

    TESTFAIL: No tests were performed

    TESTFAIL: Nothing matched these keywords: https http

This reverts commit 5415008eafe007b95daa7801ff53bcf13ae52a6a.

5 weeks agoRemove test scenario acl-destination-denied for now
Fabian Keil [Mon, 13 Jan 2025 12:06:55 +0000 (13:06 +0100)]
Remove test scenario acl-destination-denied for now

As Roland reported, it fails on his system with "curl
returned 52, when expecting 56". On my systems it seems
to work unreliably.

This reverts commit 3bf6d00c1ed54eefb190021d94022e18c6adc48b.

5 weeks agoRemove test scenario acl-ip-address-denied for now
Fabian Keil [Mon, 13 Jan 2025 12:01:50 +0000 (13:01 +0100)]
Remove test scenario acl-ip-address-denied for now

It works on some systems but fails on others with:

    fk@test-vm ~/git/privoxy/tests/cts $./run-privoxy-tests.sh -t acl-ip-address-denied
    Test scenario: acl-ip-address-denied
    Overwriting default TESTDIR with /home/fk/git/privoxy/tests/cts/acl-ip-address-denied/data
    ********* System characteristics ********
    * curl 7.85.0-DEV (amd64-unknown-freebsd14.2)
    * libcurl/7.85.0-DEV OpenSSL/3.0.15 zlib/1.3.1
    * Features: alt-svc AsynchDNS Debug HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP TrackMemory UnixSockets
    * Disabled:
    * Host: test-vm
    * System: FreeBSD test-vm 14.2-STABLE ElectroBSD 14.2-STABLE #0: Tue Dec 31 13:16:10 UTC 2024     elektropunker@ElectroBSD-20241231-f500004c12e1:/usr/obj/usr/src/amd64.amd64/sys/ELECTRO_BLOAT amd64
    * OS: freebsd
    *
    *** DISABLES memory tracking when using threaded resolver
    *
    * Servers: SSL HTTP-IPv6 HTTP-unix FTP-IPv6
    * Env:
    * Seed: 207549
    *****************************************
    test 0001...[Request from denied IP address]

    curl returned 52, when expecting 56
     exit FAILED

     - abort tests
    TESTDONE: 1 tests were considered during 0 seconds.
    TESTDONE: 0 tests out of 1 reported OK: 0%

    TESTFAIL: These test cases failed: 1

This reverts commit 13778c50cddb5458b180a378d7066f9890ba5345.

5 weeks agotests/cts/curl-test-manifest-for-privoxy: Regenerate
Fabian Keil [Mon, 13 Jan 2025 11:46:30 +0000 (12:46 +0100)]
tests/cts/curl-test-manifest-for-privoxy: Regenerate

5 weeks agotests/cts/gen-skip-reasons.pl: Bump copyright
Fabian Keil [Mon, 13 Jan 2025 11:53:48 +0000 (12:53 +0100)]
tests/cts/gen-skip-reasons.pl: Bump copyright

5 weeks agotests/cts/gen-skip-reasons.pl: Skip test 389 as it is known to fail depending on...
Fabian Keil [Mon, 13 Jan 2025 11:39:22 +0000 (12:39 +0100)]
tests/cts/gen-skip-reasons.pl: Skip test 389 as it is known to fail depending on the DNS settings

Reported by Roland.

5 weeks agotests/cts/README: Suggest to checkout curl-7_85_0
Fabian Keil [Sun, 12 Jan 2025 15:14:46 +0000 (16:14 +0100)]
tests/cts/README: Suggest to checkout curl-7_85_0

A curl checkout at 073268a6de3 fails to configure when using
autoreconf 2.72:

| checking curl version... 7.85.0-DEV
| ./configure: 6904: Syntax error: ";;" unexpected (expecting "fi")

As Roland noticed this was fixed by curl commit a8f52ce225cc.

5 weeks agorun-privoxy-tests.sh: Bump copyright
Fabian Keil [Sun, 12 Jan 2025 14:25:01 +0000 (15:25 +0100)]
run-privoxy-tests.sh: Bump copyright

5 weeks agorun-privoxy-tests.sh: Add -c option to continue in case of failures
Fabian Keil [Sun, 12 Jan 2025 14:14:20 +0000 (15:14 +0100)]
run-privoxy-tests.sh: Add -c option to continue in case of failures

5 weeks agoRegenerate HTML user manual
Fabian Keil [Sat, 11 Jan 2025 11:07:16 +0000 (12:07 +0100)]
Regenerate HTML user manual

5 weeks agoSGML ChangeLog: Turn GitHub URL into a link
Fabian Keil [Sat, 11 Jan 2025 11:04:58 +0000 (12:04 +0100)]
SGML ChangeLog: Turn GitHub URL into a link

5 weeks agoRegenerate HTML user manual
Fabian Keil [Tue, 7 Jan 2025 17:24:56 +0000 (18:24 +0100)]
Regenerate HTML user manual

5 weeks agouser-manual: Mention wolfSSL and LibreSSL in the HTTPS inspection HOWTO
Fabian Keil [Tue, 7 Jan 2025 17:23:19 +0000 (18:23 +0100)]
user-manual: Mention wolfSSL and LibreSSL in the HTTPS inspection HOWTO

5 weeks agoRemove #184 as wolfSSL support has been committed a while ago
Fabian Keil [Fri, 10 Jan 2025 12:40:03 +0000 (13:40 +0100)]
Remove #184 as wolfSSL support has been committed a while ago

6 weeks agoRebuild docs for 4.0.0 stable
Fabian Keil [Sun, 5 Jan 2025 08:49:26 +0000 (09:49 +0100)]
Rebuild docs for 4.0.0 stable

6 weeks agoUpdate SGML ChangeLog for Privoxy 4.0.0
Fabian Keil [Tue, 7 Jan 2025 16:44:34 +0000 (17:44 +0100)]
Update SGML ChangeLog for Privoxy 4.0.0

6 weeks agoUpdate announcement for Privoxy 4.0.0
Fabian Keil [Tue, 7 Jan 2025 16:04:49 +0000 (17:04 +0100)]
Update announcement for Privoxy 4.0.0

6 weeks agoBump copyright
Fabian Keil [Mon, 6 Jan 2025 17:41:24 +0000 (18:41 +0100)]
Bump copyright

6 weeks agoBump copyright
Fabian Keil [Mon, 6 Jan 2025 17:40:21 +0000 (18:40 +0100)]
Bump copyright

6 weeks agodeveloper-manual: Bump copyright
Fabian Keil [Mon, 6 Jan 2025 14:09:30 +0000 (15:09 +0100)]
developer-manual: Bump copyright

6 weeks agodeveloper-manual: Remove obsolete information about version numbers and branches
Fabian Keil [Mon, 6 Jan 2025 14:18:40 +0000 (15:18 +0100)]
developer-manual: Remove obsolete information about version numbers and branches

6 weeks agoRegenerate HTML man page for the 4.0.0 release using the groff2html target
Fabian Keil [Mon, 6 Jan 2025 15:53:25 +0000 (16:53 +0100)]
Regenerate HTML man page for the 4.0.0 release using the groff2html target

6 weeks agoRegenerate privoxy.8 for the 4.0.0 release
Fabian Keil [Mon, 6 Jan 2025 15:46:21 +0000 (16:46 +0100)]
Regenerate privoxy.8 for the 4.0.0 release

6 weeks agoRegenerate config file for Privoxy 4.0.0
Fabian Keil [Mon, 6 Jan 2025 14:05:54 +0000 (15:05 +0100)]
Regenerate config file for Privoxy 4.0.0

6 weeks agoBump copyright
Fabian Keil [Mon, 6 Jan 2025 14:04:49 +0000 (15:04 +0100)]
Bump copyright

6 weeks agoBump ChangeLog copyright
Fabian Keil [Sun, 5 Jan 2025 08:32:42 +0000 (09:32 +0100)]
Bump ChangeLog copyright

6 weeks agoAdd ChangeLog entries for Privoxy 4.0.0
Fabian Keil [Sun, 5 Jan 2025 08:44:59 +0000 (09:44 +0100)]
Add ChangeLog entries for Privoxy 4.0.0

6 weeks agouagen: Bump version to 0.1.6
Fabian Keil [Sun, 5 Jan 2025 14:23:24 +0000 (15:23 +0100)]
uagen: Bump version to 0.1.6

6 weeks agoprivoxy-log-parser: Bump version to 0.9.6
Fabian Keil [Sun, 5 Jan 2025 14:19:23 +0000 (15:19 +0100)]
privoxy-log-parser: Bump version to 0.9.6

6 weeks agoBump copyright
Fabian Keil [Sun, 5 Jan 2025 09:41:16 +0000 (10:41 +0100)]
Bump copyright

6 weeks agouser-manual: Spell 'Tor' the standard way
Fabian Keil [Sun, 5 Jan 2025 09:41:09 +0000 (10:41 +0100)]
user-manual: Spell 'Tor' the standard way

6 weeks agoBump SMGL entities for 4.0.0 stable
Fabian Keil [Sun, 5 Jan 2025 08:47:58 +0000 (09:47 +0100)]
Bump SMGL entities for 4.0.0 stable

6 weeks agoBump copyright
Fabian Keil [Sun, 5 Jan 2025 08:29:12 +0000 (09:29 +0100)]
Bump copyright

6 weeks agoFAQ: Bump copyright
Fabian Keil [Sun, 5 Jan 2025 08:29:02 +0000 (09:29 +0100)]
FAQ: Bump copyright

6 weeks agoFAQ: Mention that Privoxy Moral Licenses are available as well
Fabian Keil [Sun, 5 Jan 2025 08:28:28 +0000 (09:28 +0100)]
FAQ: Mention that Privoxy Moral Licenses are available as well

6 weeks agombedtls: Add periods to a bunch of log messages
Fabian Keil [Sat, 4 Jan 2025 07:34:25 +0000 (08:34 +0100)]
mbedtls: Add periods to a bunch of log messages

6 weeks agoUpdate perlre perldoc URL
Fabian Keil [Sat, 4 Jan 2025 06:39:51 +0000 (07:39 +0100)]
Update perlre perldoc URL

6 weeks agoBump copyright
Fabian Keil [Sat, 4 Jan 2025 06:21:03 +0000 (07:21 +0100)]
Bump copyright

6 weeks agoUnblock adl.windows.com/
Fabian Keil [Sat, 4 Jan 2025 06:10:38 +0000 (07:10 +0100)]
Unblock adl.windows.com/

... as it is apparently required to update from Windows 10 to 11.

Reported by: Sam Varshavchik

6 weeks agoBump copyright
Fabian Keil [Sat, 4 Jan 2025 05:49:46 +0000 (06:49 +0100)]
Bump copyright

6 weeks agoconfigure: Bump SOURCE_DATE_EPOCH
Fabian Keil [Sat, 4 Jan 2025 05:50:52 +0000 (06:50 +0100)]
configure: Bump SOURCE_DATE_EPOCH

6 weeks agoconfigure: Bump version to 4.0.0 stable
Fabian Keil [Sat, 4 Jan 2025 05:28:08 +0000 (06:28 +0100)]
configure: Bump version to 4.0.0 stable

6 weeks agoBump copyright
Fabian Keil [Sat, 4 Jan 2025 05:49:17 +0000 (06:49 +0100)]
Bump copyright

6 weeks agoFactor out newer_privoxy_version_required() and improve the logic
Fabian Keil [Sat, 4 Jan 2025 05:48:04 +0000 (06:48 +0100)]
Factor out newer_privoxy_version_required() and improve the logic

Previously 3.0.11 was considered newer than 4.0.0.

6 weeks agoAdd support for mbedTLS 3.x
Fabian Keil [Wed, 9 Oct 2024 06:10:02 +0000 (08:10 +0200)]
Add support for mbedTLS 3.x

This removes a sanity check (whether issuer key and issuer certificate
match) that seems overly cautious and fails to compile with mbedTLS
3.x as the struct members are private.

We don't have an equivalent check in the OpenSSL or wolfSSL code either.

7 weeks agowindows build doc: note that one only needs tidy to build the docs
Lee [Wed, 1 Jan 2025 16:00:31 +0000 (11:00 -0500)]
windows build doc: note that one only needs tidy to build the docs

If you're not building the docbook stuff you don't need tidy.

7 weeks agowindows build doc: use the PCRE2 10.x library
Lee [Wed, 1 Jan 2025 15:58:03 +0000 (10:58 -0500)]
windows build doc: use the PCRE2 10.x library

the old 8.x PCTRE library has been unsupported for ages.

7 weeks agoUse the brotli 1.1.0 library
Lee [Mon, 30 Dec 2024 23:13:15 +0000 (18:13 -0500)]
Use the brotli 1.1.0 library

1.0.9 is no longer the latest & greatest

7 weeks agobuild with "--enable-compression" specified
Lee [Mon, 30 Dec 2024 22:54:49 +0000 (17:54 -0500)]
build with "--enable-compression" specified

I don't remember if I was asked for this to be enabled or no, but
allow Privoxy to compress buffered content it sends to the client.

7 weeks agoMerge branch 'master' of ssh://git.privoxy.org:23/git/privoxy
Lee [Mon, 30 Dec 2024 22:41:42 +0000 (17:41 -0500)]
Merge branch 'master' of ssh://git.privoxy.org:23/git/privoxy

2 months agoconfig: Add SOCKS 5 to the list of supported protocols
Fabian Keil [Mon, 25 Nov 2024 13:44:00 +0000 (14:44 +0100)]
config: Add SOCKS 5 to the list of supported protocols

2 months agoUnblock requests for 'adventur*.'
Fabian Keil [Fri, 11 Oct 2024 12:25:19 +0000 (14:25 +0200)]
Unblock requests for 'adventur*.'

2 months agombedTLS: Fix typo in error message
Fabian Keil [Fri, 11 Oct 2024 03:52:13 +0000 (05:52 +0200)]
mbedTLS: Fix typo in error message

3 months agoMerge branch 'master' of ssh://git.privoxy.org:23/git/privoxy
Lee [Sat, 26 Oct 2024 17:23:33 +0000 (13:23 -0400)]
Merge branch 'master' of ssh://git.privoxy.org:23/git/privoxy

4 months agoMerge debian changes from 3.0.34-6.
Roland Rosenfeld [Sat, 12 Oct 2024 15:28:22 +0000 (17:28 +0200)]
Merge debian changes from 3.0.34-6.

4 months agoconfigure.in: wolfSSL has nothing to to with LibreSSL.
Roland Rosenfeld [Sat, 12 Oct 2024 10:10:23 +0000 (12:10 +0200)]
configure.in: wolfSSL has nothing to to with LibreSSL.

additionally change Wolfssl to wolfSSL, which is their own notation.

4 months agouser-manual: fix LibreSSL URL.
Roland Rosenfeld [Sat, 12 Oct 2024 10:09:44 +0000 (12:09 +0200)]
user-manual: fix LibreSSL URL.

4 months agorebuild doc/webserver/user-manual
Roland Rosenfeld [Fri, 11 Oct 2024 15:47:19 +0000 (17:47 +0200)]
rebuild doc/webserver/user-manual

4 months agoMerge debian changes from 3.0.34-4 and 3.0.34-5.
Roland Rosenfeld [Fri, 11 Oct 2024 14:33:18 +0000 (16:33 +0200)]
Merge debian changes from 3.0.34-4 and 3.0.34-5.

4 months agoImprove wording of the HOWTOs.
Roland Rosenfeld [Fri, 11 Oct 2024 14:01:05 +0000 (16:01 +0200)]
Improve wording of the HOWTOs.

4 months agouagen: Bump BROWSER_VERSION and BROWSER_REVISION
Fabian Keil [Mon, 16 Sep 2024 10:40:42 +0000 (12:40 +0200)]
uagen: Bump BROWSER_VERSION and BROWSER_REVISION

... to match Firefox ESR 128.

4 months agonormalize_lws(): Only log the 'Reducing whitespace ...' message once per header
Fabian Keil [Sun, 8 Sep 2024 11:32:35 +0000 (13:32 +0200)]
normalize_lws(): Only log the 'Reducing whitespace ...' message once per header

4 months agoinit_error_log(): Include the reason for failures to open the log file
Fabian Keil [Fri, 6 Sep 2024 11:41:22 +0000 (13:41 +0200)]
init_error_log(): Include the reason for failures to open the log file

4 months agowolfssl: Use log_error() more often
Fabian Keil [Thu, 11 Jul 2024 17:09:51 +0000 (19:09 +0200)]
wolfssl: Use log_error() more often

log_ssl_errors() is only supposed to be used for TLS-related errors.

4 months agowolfssl ssl_(send|recv)_data(): Call wolfSSL_ERR_clear_error() before doing any work
Fabian Keil [Wed, 10 Jul 2024 13:58:37 +0000 (15:58 +0200)]
wolfssl ssl_(send|recv)_data(): Call wolfSSL_ERR_clear_error() before doing any work

Prevents logging of bogus errors like:
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: RSA key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: ECC key too small
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: error state on socket
15:53:27.932 009 Error: Sending data on socket 12 over TLS failed: Peer closed underlying transport Error
15:53:27.933 009 Error: Failed to send the modified content to the client over TLS

4 months agowolfssl ssl_store_cert(): Consistently use log_error() to log errors
Fabian Keil [Wed, 10 Jul 2024 13:36:43 +0000 (15:36 +0200)]
wolfssl ssl_store_cert(): Consistently use log_error() to log errors

Previously log_ssl_errors() was used which only works for TLS errors.

Prevents logging stale errors like:

15:10:34.153 007 Error: X509 certificate verification for www.youtube.com failed with error -161: ASN alternate name error
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: RSA key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: ECC key too small
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: ASN alternate name error
15:10:34.156 007 Error: wolfSSL_PEM_write_bio_X509() failed: ASN alternate name error
15:10:34.156 007 Error: ssl_store_cert() failed for cert 2
15:10:34.156 007 Error: Incomplete certificate information for www.youtube.com.

While at it, add periods to log messages.

4 months agoBlock requests for .amazon-adsystem.com/
Fabian Keil [Thu, 27 Jun 2024 23:13:19 +0000 (01:13 +0200)]
Block requests for .amazon-adsystem.com/

4 months agoDisable fast-redirects to duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad...
Fabian Keil [Wed, 14 Aug 2024 16:38:57 +0000 (18:38 +0200)]
Disable fast-redirects to duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion/

4 months agoDisable fast-redirects for .creator-spring.com/_next/image
Fabian Keil [Wed, 14 Aug 2024 11:23:28 +0000 (13:23 +0200)]
Disable fast-redirects for .creator-spring.com/_next/image

4 months agoDisable fast redirects for accounts.bahn.de/
Fabian Keil [Mon, 10 Jun 2024 12:32:22 +0000 (14:32 +0200)]
Disable fast redirects for accounts.bahn.de/

4 months agowolfSSL shutdown_connection(): Shorten an error message
Fabian Keil [Tue, 9 Apr 2024 09:47:08 +0000 (11:47 +0200)]
wolfSSL shutdown_connection(): Shorten an error message

... to not include the return code which is always -1.

4 months agoBump copyright
Fabian Keil [Wed, 26 Jun 2024 14:40:39 +0000 (16:40 +0200)]
Bump copyright

4 months agoBump copyright
Fabian Keil [Wed, 26 Jun 2024 14:31:29 +0000 (16:31 +0200)]
Bump copyright

4 months agoBump copyright
Fabian Keil [Wed, 26 Jun 2024 14:31:06 +0000 (16:31 +0200)]
Bump copyright

4 months agoBump copyright
Fabian Keil [Wed, 26 Jun 2024 14:31:03 +0000 (16:31 +0200)]
Bump copyright

7 months agoOpenSSL generate_key(): Check EVP_RSA_gen()'s return value
Fabian Keil [Thu, 11 Jul 2024 08:21:03 +0000 (10:21 +0200)]
OpenSSL generate_key(): Check EVP_RSA_gen()'s return value

7 months agoFactor out create_hexadecimal_hash_of_host()
Fabian Keil [Wed, 26 Jun 2024 14:23:46 +0000 (16:23 +0200)]
Factor out create_hexadecimal_hash_of_host()

7 months agoUse SHA256 as hash algorithm for the certificate and key file names
Fabian Keil [Wed, 26 Jun 2024 13:23:25 +0000 (15:23 +0200)]
Use SHA256 as hash algorithm for the certificate and key file names

... instead of MD5.

The known MD5 vulnerabilities shoulnd't matter for Privoxy's use case
but it doesn't hurt to use a hash algorithm that isn't deprecated.

Sponsored by: Robert Klemme

7 months agoOpenSSL generate_key(): Use EVP_RSA_gen() when using OpenSSL 3.0 or later
Fabian Keil [Wed, 10 Jul 2024 17:39:03 +0000 (19:39 +0200)]
OpenSSL generate_key(): Use EVP_RSA_gen() when using OpenSSL 3.0 or later

Silences a bunch of deprecation warnings:

    openssl.c:1523:10: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations]
     1523 |    rsa = RSA_new();
          |          ^
    /usr/local/include/openssl/rsa.h:201:1: note: 'RSA_new' has been explicitly marked deprecated here
      201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
          | ^
    /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      182 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
          |                                                 ^
    /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
       62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
          |                                                    ^
    openssl.c:1540:10: warning: 'RSA_generate_key_ex' is deprecated [-Wdeprecated-declarations]
     1540 |    ret = RSA_generate_key_ex(rsa, RSA_KEYSIZE, exp, NULL);
          |          ^
    /usr/local/include/openssl/rsa.h:260:1: note: 'RSA_generate_key_ex' has been explicitly marked deprecated here
      260 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
          | ^
    /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      182 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
          |                                                 ^
    /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
       62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
          |                                                    ^
    openssl.c:1549:9: warning: 'EVP_PKEY_set1_RSA' is deprecated [-Wdeprecated-declarations]
     1549 |    if (!EVP_PKEY_set1_RSA(key, rsa))
          |         ^
    /usr/local/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_set1_RSA' has been explicitly marked deprecated here
     1345 | OSSL_DEPRECATEDIN_3_0
          | ^
    /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      182 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
          |                                                 ^
    /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
       62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
          |                                                    ^
    openssl.c:1592:7: warning: 'RSA_free' is deprecated [-Wdeprecated-declarations]
     1592 |       RSA_free(rsa);
          |       ^
    /usr/local/include/openssl/rsa.h:293:1: note: 'RSA_free' has been explicitly marked deprecated here
      293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
          | ^
    /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      182 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
          |                                                 ^
    /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
       62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
          |                                                    ^

7 months agoAdd missing "#include <stddef.h>" to fix the build on macOS
Maxim Khon [Wed, 3 Jul 2024 13:37:28 +0000 (15:37 +0200)]
Add missing "#include <stddef.h>" to fix the build on macOS

... after 19d7684ca10f.

Prevents:
gateway.c:845:18: error: call to undeclared function 'offsetof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Fixes SF#150.

7 months agoGNUmakefile.in: Shorten warning
Fabian Keil [Mon, 8 Apr 2024 13:39:07 +0000 (15:39 +0200)]
GNUmakefile.in: Shorten warning

7 months agoGNUMakefile.in: Let the install target work if no group is specified
Fabian Keil [Mon, 8 Apr 2024 13:04:03 +0000 (15:04 +0200)]
GNUMakefile.in: Let the install target work if no group is specified