bneradt commented on code in PR #13197: URL: https://github.com/apache/trafficserver/pull/13197#discussion_r3304805857
########## src/traffic_layout/info.cc: ########## @@ -53,6 +54,34 @@ #include <zstd.h> #endif +#if HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG +static constexpr int ts_has_cert_compression_callbacks = 1; +#else +static constexpr int ts_has_cert_compression_callbacks = 0; +#endif + +#if HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG || (HAVE_SSL_CTX_SET1_CERT_COMP_PREFERENCE && !defined(OPENSSL_NO_ZLIB)) +static constexpr int ts_has_cert_compression_zlib = 1; +#else +static constexpr int ts_has_cert_compression_zlib = 0; +#endif + +#if (HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG && HAVE_BROTLI_ENCODE_H) || \ + (HAVE_SSL_CTX_SET1_CERT_COMP_PREFERENCE && !defined(OPENSSL_NO_BROTLI)) +static constexpr int ts_has_cert_compression_brotli = 1; +#else +static constexpr int ts_has_cert_compression_brotli = 0; +#endif + +#if (HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG && HAVE_ZSTD_H) || (HAVE_SSL_CTX_SET1_CERT_COMP_PREFERENCE && !defined(OPENSSL_NO_ZSTD)) +static constexpr int ts_has_cert_compression_zstd = 1; +#else +static constexpr int ts_has_cert_compression_zstd = 0; +#endif Review Comment: Callback-capable builds now report the algorithms ATS can provide locally, and preference-only builds fall back to OpenSSL’s built-in algorithm availability. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
