diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-03-11 09:10:33 +0000 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-03-11 09:10:33 +0000 |
commit | 622c3c36b131352f4c151b2d49b28d6c0a23891f (patch) | |
tree | da80237cf2da064150fdb9d849e95c41723a01df | |
parent | 8aa4fc1a5a820ace22f1fbf09d020759b3bf6452 (diff) | |
parent | c04f0301990567ecc7c3c077a49f357d2f139eb8 (diff) | |
download | gnutls-622c3c36b131352f4c151b2d49b28d6c0a23891f.tar.gz |
Merge branch 'tmp-test-certtool' into 'master'
tests: verify that 'certtool -i --outder' does not output text
Closes #627
See merge request gnutls/gnutls!952
-rwxr-xr-x | tests/cert-tests/certtool | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool index 5f1276e60e..90e26049a9 100755 --- a/tests/cert-tests/certtool +++ b/tests/cert-tests/certtool @@ -132,6 +132,20 @@ if test "${id}" != "c4880390506a849cd2d8289fb8aea8c189e635aff1054faba58658a0f107 exit 1 fi +# Test whether certtool --outder doesn't output the informational text data + +${VALGRIND} "${CERTTOOL}" -i --infile "${srcdir}/data/funny-spacing.pem" --outder --outfile ${TMPFILE1} +if test $? != 0;then + echo "cert output to DER failed" + exit 1 +fi + +grep 'Version:' ${TMPFILE1} +if test $? = 0;then + echo "found text info in DER certificate" + exit 1 +fi + rm -f ${TMPFILE1} ${TMPFILE2} export TZ="UTC" |