summaryrefslogtreecommitdiff
path: root/tests/cert-tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-10-01 12:14:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-10-01 12:14:11 +0200
commit011f3d614ffdcac0d44c41018cfebc2c410adb10 (patch)
tree5f8e8913ff4079232127349f5ff41266daff05ef /tests/cert-tests
parentdfdc6e7bd63d587a24aac52be7a04448588e75eb (diff)
downloadgnutls-011f3d614ffdcac0d44c41018cfebc2c410adb10.tar.gz
tests: check fingerprint generation with SHA512
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/cert-tests')
-rwxr-xr-xtests/cert-tests/certtool8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool
index ad66d8ffe7..3fd2398364 100755
--- a/tests/cert-tests/certtool
+++ b/tests/cert-tests/certtool
@@ -82,6 +82,14 @@ if test "${id}" != "fc5b45b20c489393a457f177572920ac40bacba9d25cea51200822271eaf
exit 1
fi
+id=`${VALGRIND} "${CERTTOOL}" --fingerprint --hash sha512 --infile "${srcdir}/data/funny-spacing.pem"| tr -d '\r'`
+rc=$?
+
+if test "${id}" != "c4880390506a849cd2d8289fb8aea8c189e635aff1054faba58658a0f107472b725672c10d2f7f4ca360528b9433db278f544846e5613f9cd4cb4aa2f56a7894"; then
+ echo "Fingerprint doesn't match the expected: 5"
+ exit 1
+fi
+
export TZ="UTC"
. ${srcdir}/../scripts/common.sh