Andreas Metzler commented on a discussion: https://gitlab.com/gnutls/gnutls/-/issues/1721#note_2617513304 e.g. like this: ```diff --- /tmp/system-override-compress-cert.sh 2025-07-10 13:30:26.254421764 +0200 +++ /tmp/system-override-compress-cert.sh.new 2025-07-10 13:49:34.130769458 +0200 @@ -30,16 +30,21 @@ exit 77 fi -if ! "$CLI" --list | grep '^Compression: .*COMP-\(BROTLI\|ZSTD\)'; then - echo "Not built with brotli and zstd, skipping" 1>&2 - exit 77 -fi - cat <<_EOF_ > ${CONF} [overrides] -cert-compression-alg = brotli -cert-compression-alg = zstd _EOF_ +CLICOMPLIST=`"$CLI" --list | grep '^Compression:'` + +if echo $CLICOMPLIST | grep COMP-BROTLI ; then + echo 'cert-compression-alg = brotli' >> ${CONF} + ANYCOMP=y +fi +if echo $CLICOMPLIST | grep COMP-ZSTD ; then + echo 'cert-compression-alg = zstd' >> ${CONF} +elif [ "x$ANYCOMP" != "xy" ] ; then + echo "Not built with brotli or zstd, skipping" 1>&2 + exit 77 +fi ${TEST} if [ $? != 0 ]; then ``` -- Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1721#note_2617513304 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Gnutls-devel mailing list Gnutls-devel@lists.gnutls.org http://lists.gnupg.org/mailman/listinfo/gnutls-devel