[gnutls-devel] GnuTLS | certtool: don't output textual information if --no-text was given (!810)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Nov 26 15:00:18 CET 2018


Dmitry Eremin-Solenikov commented on a discussion on tests/cert-tests/pkcs7:

>  fi
>  done
>  
> +${VALGRIND} "${CERTTOOL}" --inder --p7-info --infile "${srcdir}/data/full.p7b" --outfile "${TMPFILE}" --no-text
> +rc=$?
> +
> +if test "${rc}" != "0"; then
> +	echo "--no-text pkcs7 info failed 1"
> +	exit ${rc}
> +fi
> +
> +if ( head -n 1 ${TMPFILE} ; tail -n 1 ${TMPFILE} ) | grep -v -- -----

I have replaced this `grep` command with grep actually checking the tmpfile contents, to verify that it contains only PEM headers and base64-encoded data.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/810#note_120085118
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181126/b7034473/attachment.html>


More information about the Gnutls-devel mailing list