From 53da7dba23eb5b4f050418f2b65e7ba6bd76c638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 3 Apr 2006 18:32:57 +0000 Subject: [PATCH] Add printing ocsp replys git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16995 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/test_chain.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/hx509/test_chain.in b/lib/hx509/test_chain.in index 7c9695bb6..ae7260bb6 100644 --- a/lib/hx509/test_chain.in +++ b/lib/hx509/test_chain.in @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 2004 - 2005 Kungliga Tekniska Högskolan +# Copyright (c) 2004 - 2006 Kungliga Tekniska Högskolan # (Royal Institute of Technology, Stockholm, Sweden). # All rights reserved. # @@ -118,13 +118,18 @@ echo "ocsp no-ca responder, keyHash" anchor:FILE:$srcdir/data/ca.crt \ ocsp:FILE:$srcdir/data/ocsp-resp1-keyhash.der || exit 1 - echo "ocsp revoked cert" ./hxtool verify \ cert:FILE:$srcdir/data/revoke.crt \ anchor:FILE:$srcdir/data/ca.crt \ ocsp:FILE:$srcdir/data/ocsp-resp2.der > /dev/null && exit 1 +for a in resp1-ocsp-no-cert resp1-ca resp1-keyhash resp2 ; do + echo "ocsp print reply $a" + ./hxtool ocsp-print \ + $srcdir/data/ocsp-resp2.der > /dev/null || exit 1 +done + echo "crl non-revoked cert" ./hxtool verify \ cert:FILE:$srcdir/data/test.crt \