A common regression in the past, was certtool outputting text while
writing raw DER data. Ensure that the certificate-info option does not
regress.
Resolves: #627
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
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"