Make compression libraries dynamically loadable
As the certificate compression functionality is neither enabled by default nor frequently used in the wild, it might make sense to dynamically load them with dlopen
. This would speed up startup time by avoiding loading and mapping the shared libraries.
As for implementation, this could be done similarly to what we do for tpm2-tss, though it should be much simpler as it uses only a couple of functions from each compression library (zlib, libzstd, and libbrotli).
Edited by Daiki Ueno