handle having no trust anchors more gracefully.

This commit is contained in:
davidb
2010-06-22 15:05:45 -04:00
parent f17ea4256e
commit fd31e22d92
2 changed files with 10 additions and 0 deletions

View File

@@ -203,6 +203,12 @@ public class DNSSECValTool {
}
// Log our set of trusted keys
List<String> trustedKeys = validator.listTrustedKeys();
if (trustedKeys.size() == 0) {
System.err.println("ERROR: no trusted keys found/provided.");
return;
}
for (String key : validator.listTrustedKeys()) {
System.out.println("Trusted Key: " + key);
}