Make testsuite errors greppable.
diff --git a/src/dnssec.c b/src/dnssec.c
index 3ad438d..1fc121c 100644
--- a/src/dnssec.c
+++ b/src/dnssec.c
@@ -636,7 +636,7 @@
if (end_rrsig_validation(&val, crecp))
printf("Validation OK\n");
else
- printf("Validation FAILED\n");
+ printf("ERROR: Validation FAILED (%s, keytag:%d, algo:%d)\n", owner, val.keytag, verifyalg_algonum(val.alg));
}
}
@@ -777,9 +777,11 @@
{
/* TODO: create a link within the cache: ds => dnskey */
printf("MATCH FOUND for keytag %d\n", keytag);
+ return 1;
}
}
+ printf("ERROR: match not found for DS %d (owner: %s)\n", keytag, owner);
return 0;
}