Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943254 - dev-libs/openssl: Please add use flags to enable compression algorithms
Summary: dev-libs/openssl: Please add use flags to enable compression algorithms
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 11:40 UTC by Andreas Mair
Modified: 2024-11-11 20:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for v3.3.2 ebuild (openssl-3.3.2.ebuild-comp.patch,1.28 KB, patch)
2024-11-11 16:14 UTC, Andreas Mair
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Mair 2024-11-11 11:40:14 UTC
OpenSSL offers the compression BIO methods BIO_f_zlib(), BIO_f_brotli() and BIO_f_zstd() (last two introduced in v3.2) which offer transparent (de)compression, but they can't be used with the current ebuilds. Well BIO_f_zlib() can be used, but only by using the tls-compression use flag.

As the tls-compression use flag is documented as "discouraged TLS compression", this use flag should be modified to disable the "no-comp" OpenSSL configuration option instead.

Reproducible: Always
Comment 1 Andreas Mair 2024-11-11 16:14:30 UTC
Created attachment 908473 [details, diff]
Patch for v3.3.2 ebuild

add brotli, zlib and zstd USE flags to ebuild
Comment 2 Andreas Mair 2024-11-11 16:25:07 UTC
It seems to be no good idea to build OpenSSL with the "no-comp" option, as this broke for example python:

/usr/lib/python3.12/lib-dynload/_ssl.cpython-312-x86_64-linux-gnu.so: undefined symbol: COMP_get_type, version OPENSSL_3.0.0

I'm not sure if it's possible at all to enable the compression modules and disable TLS compression to prevent CRIME.