bneradt commented on code in PR #13197:
URL: https://github.com/apache/trafficserver/pull/13197#discussion_r3307127494


##########
src/iocore/net/TLSCertCompression.cc:
##########
@@ -53,70 +55,81 @@ struct alg_info {
   ssl_cert_decompression_func_t decompress_func;
 #endif
 } supported_algs[] = {
-  {"zlib",   1,
 #if HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG
-   compression_func_zlib,   decompression_func_zlib
-#endif
-  },
+  {"zlib",   1, compression_func_zlib,   decompression_func_zlib  },
 #if HAVE_BROTLI_ENCODE_H
-  {"brotli", 2,
-#if HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG
-   compression_func_brotli, decompression_func_brotli
-#endif
-  },
+  {"brotli", 2, compression_func_brotli, decompression_func_brotli},
 #endif
 #if HAVE_ZSTD_H
-  {"zstd",   3,
-#if HAVE_SSL_CTX_ADD_CERT_COMPRESSION_ALG
-   compression_func_zstd,   decompression_func_zstd
+  {"zstd",   3, compression_func_zstd,   decompression_func_zstd  },
+#endif
+  {nullptr,  0, nullptr,                 nullptr                  },
+#else
+#if HAVE_SSL_CTX_SET1_CERT_COMP_PREFERENCE && !defined(OPENSSL_NO_ZLIB)

Review Comment:
   Good point.



-- 
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]

Reply via email to