#1138398 privoxy: FTBFS with openssl 4.0

Package:
privoxy
Source:
privoxy
Description:
Privacy enhancing HTTP Proxy
Submitter:
Sebastian Andrzej Siewior
Date:
2026-10-20 19:07:02 UTC
Severity:
normal
Tags:
#1138398#5
Date:
2026-05-30 16:07:25 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| gcc -c -pipe -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/privoxy-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2  -pthread -Wall -Wdate-time -D_FORTIFY_SOURCE=2 openssl.c -o openssl.o
| openssl.c: In function ‘ssl_store_cert’:
| openssl.c:377:10: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   377 |    if (bs->length <= (int)sizeof(long))
|       |          ^~
| openssl.c:391:13: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   391 |       if (bs->type == V_ASN1_NEG_INTEGER)
|       |             ^~
| openssl.c:411:13: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   411 |       if (bs->type == V_ASN1_NEG_INTEGER)
|       |             ^~
| openssl.c:420:25: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   420 |       for (i = 0; i < bs->length; i++)
|       |                         ^~
| openssl.c:422:42: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   422 |          if (BIO_printf(bio, "%02x%c", bs->data[i],
|       |                                          ^~
| openssl.c:423:29: error: invalid use of incomplete typedef ‘ASN1_INTEGER’ {aka ‘const struct asn1_string_st’}
|   423 |                ((i + 1 == bs->length) ? '\n' : ':')) <= 0)
|       |                             ^~
| openssl.c:532:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   532 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c:555:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   555 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c:578:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   578 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c:601:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   601 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c:623:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   623 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c:647:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   647 |       X509_EXTENSION *ex = X509_get_ext(crt, loc);
|       |                            ^~~~~~~~~~~~
| openssl.c: In function ‘create_server_ssl_connection’:
| openssl.c:1100:4: warning: ‘SSL_set1_host’ is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
|  1100 |    if (!SSL_set1_host(ssl, csp->http->host))
|       |    ^~
| In file included from project.h:76,
|                  from openssl.c:50:
| /usr/include/openssl/ssl.h:1922:34: note: declared here
|  1922 | OSSL_DEPRECATEDIN_4_0 __owur int SSL_set1_host(SSL *s, const char *host);
|       |                                  ^~~~~~~~~~~~~
| openssl.c: In function ‘ssl_certificate_is_invalid’:
| openssl.c:1648:4: warning: ‘X509_cmp_current_time’ is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
|  1648 |    ret = X509_cmp_current_time(X509_get_notAfter(cert));
|       |    ^~~
| In file included from /usr/include/openssl/pem.h:23,
|                  from openssl.c:38:
| /usr/include/openssl/x509.h:694:27: note: declared here
|   694 | OSSL_DEPRECATEDIN_4_0 int X509_cmp_current_time(const ASN1_TIME *s);
|       |                           ^~~~~~~~~~~~~~~~~~~~~
| openssl.c: In function ‘generate_host_certificate’:
| openssl.c:1997:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|  1997 |    issuer_name = X509_get_subject_name(issuer_cert);
|       |                ^
| make[2]: *** [GNUmakefile:314: openssl.o] Error 1


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/privoxy_4.1.0-1_amd64-2026-04-19T09:58:31Z

Sebastian

#1138398#12
Date:
2026-10-20 19:06:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
privoxy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1138398@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Rosenfeld <roland@debian.org> (supplier of updated privoxy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 20 Oct 2026 20:22:17 +0200
Source: privoxy
Architecture: source
Version: 4.2.0-2
Distribution: unstable
Urgency: medium
Maintainer: Roland Rosenfeld <roland@debian.org>
Changed-By: Roland Rosenfeld <roland@debian.org>
Closes: 1138398 1141069
Changes:
 privoxy (4.2.0-2) unstable; urgency=medium
 .
   [ Luca Boccassi ]
   * Install and use sysusers.d/tmpfiles.d config files.
 .
   [ Roland Rosenfeld ]
   * Small changes on tmpfiles.d fitting the old postinst.
   * 35_openssl4: Add support for OpenSSL 4.x (Closes: #1138398).
   * Update debian/upstream/signing-key.asc subkey.
   * 36_tolerate-flakiness: ignore flaky bad-ssl tests (Closes: #1141069).
   * Upgrade to debhelper 14 (use dh-sequence-single-binary, prefix most
     debian/* files with "privoxy.")
   * salsa-ci.yml: allow_failure for uscan (SorceForge is flaky).
   * Remove undefined ${misc:Pre-Depends}, ${perl:Depends}.
   * debconf-updatepo to fix rename from templates to privoxy.templates.
Checksums-Sha1:
 cedafbb36c1b456dd12b99f2cab7095ac80bbabc 2476 privoxy_4.2.0-2.dsc
 791eac8ee435683e6e47bfb515173001e9c92276 36624 privoxy_4.2.0-2.debian.tar.xz
 cdcbed25c41be5860f7b3c60f03f38a1dd821629 11011 privoxy_4.2.0-2_source.buildinfo
Checksums-Sha256:
 74a789c2b2deecd8645672c44c6f0dbec62fa339dec65becc62e03d16204306f 2476 privoxy_4.2.0-2.dsc
 06cb03ad1e386087e472dd8d382ec56d8badc950b7e58c3fce49ecbad3096455 36624 privoxy_4.2.0-2.debian.tar.xz
 58eb0caf48b3dabde3b2569f564290e8e8e282a3d83a2f52bce419269bb9749f 11011 privoxy_4.2.0-2_source.buildinfo
Files:
 081e7b4a03295e091bdef5e9fd0b558e 2476 web optional privoxy_4.2.0-2.dsc
 5db205a752135176e4d608ec92ad2a9b 36624 web optional privoxy_4.2.0-2.debian.tar.xz
 2f1cea398ef6dd46b2087d4c0e6b2aac 11011 web optional privoxy_4.2.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErC+9sQSUPYpEoCEdAnE7z8pUELIFAmrXsXoACgkQAnE7z8pU
ELLrQg//b20hO9cmEiZwTklmUIlI41s5TiGWlUGO/xQsMqO8zqSBFt9HYUlgekzM
WKV2DyXg3mfn1RNglsYnIFbw1qgAvdRRXPStrITWf488+RZkOerhZjE7slrQ644V
AREXyMGsy7lD3kUFyFsq0dbAR866aMDxPKz+laXsxFXCb2MwBHhBM0oDHl1fJJ++
D/winUzRofzDC2InnSTeO/+y+xxD+1D5G86IbIXkFdng6X4qWJI1q4/h2ujCtoxp
r4lNe05kWseoEE9/z70bqjZ3eMQ736uViUYvDcqz80/ASB35MSoNScq4Dr6fUJsR
0DsKA8OndesB7LY8AVJwfBkVzfw6f1VYfUD89TCY0Y/WXsee/nP8j+6/6x6I1+ey
gMMpeUOUPzZIGGzCDKXD/hgzIfzcaUtIX09YAr3S/yN2Hoi7pg6TAx8vMZ2TnSho
H/IAuJZimWQeXBLq3tScyyG2fQaUYMoyWkW/+ahScNSeIqyBVSQqm/SlBO2BSJyJ
+68E0PCBVT9QELHn/FN592XtFLBY9H1NlXe9TZpcLc9GWTHeu8kFybR3pexV10Nl
4U8N6cz55OG+fUaYjs+dTkaBMpZ7Ev4Z+ZdPZiRC5ywigpuHJ1oCfWb5BrOCf3wQ
2R/DTo4tCVRPCXoeXFjoUYKPka/8tsHolNehmllMJaHBzseUtLw=
=XToh
-----END PGP SIGNATURE-----