summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/Makefile.am2
-rw-r--r--runtime/librsgt_read.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am
index c429394d..5109d33c 100644
--- a/runtime/Makefile.am
+++ b/runtime/Makefile.am
@@ -178,7 +178,7 @@ endif
# support library for guardtime
#
if ENABLE_GUARDTIME
- librsgt_la_SOURCES = librsgt.c librsgt_read.c
+ librsgt_la_SOURCES = librsgt.c librsgt_read.c librsgt.h
pkglib_LTLIBRARIES += lmsig_gt.la
lmsig_gt_la_SOURCES = lmsig_gt.c
diff --git a/runtime/librsgt_read.c b/runtime/librsgt_read.c
index e32ae454..8bd04aca 100644
--- a/runtime/librsgt_read.c
+++ b/runtime/librsgt_read.c
@@ -167,7 +167,7 @@ reportError(int errcode, gterrctx_t *ectx)
* ectx, as it has most information we need.
*/
static void
-reportVerifySuccess(gterrctx_t *ectx)
+reportVerifySuccess(gterrctx_t *ectx, GTVerificationInfo *vrfyInf)
{
if(ectx->fp != NULL) {
fprintf(ectx->fp, "%s[%llu:%llu:%llu]: block signature successfully verified\n",
@@ -180,6 +180,7 @@ reportVerifySuccess(gterrctx_t *ectx)
fprintf(ectx->fp, "\tBlock End Record...: '%s'\n", ectx->errRec);
fprintf(ectx->fp, "\tGT Verify Timestamp: [%u]%s\n",
ectx->gtstate, GTHTTP_getErrorString(ectx->gtstate));
+ GTVerificationInfo_print(ectx->fp, 0, vrfyInf);
}
}
@@ -909,7 +910,7 @@ verifyBLOCK_SIG(block_sig_t *bs, gtfile gf, FILE *sigfp, gterrctx_t *ectx)
r = 0;
if(rsgt_read_showVerified)
- reportVerifySuccess(ectx);
+ reportVerifySuccess(ectx, vrfyInf);
done:
if(r != 0)
reportError(r, ectx);