2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Change to printing of tkey lists.

This commit is contained in:
James Brister
2000-01-28 23:48:06 +00:00
parent c0b1ee1cc5
commit b402f83472

View File

@@ -961,16 +961,17 @@ dns_c_tkeylist_print(FILE *fp, int indent, dns_c_tkeylist_t *list)
REQUIRE(fp != NULL);
REQUIRE(DNS_C_TKEYLIST_VALID(list));
if (ISC_LIST_EMPTY(list->tkeylist)) {
return;
}
dns_c_printtabs(fp, indent);
fprintf(fp, "trusted-keys {\n");
tkey = ISC_LIST_HEAD(list->tkeylist);
while (tkey != NULL) {
dns_c_tkey_print(fp, indent + 1, tkey);
tkey = ISC_LIST_NEXT(tkey, next);
if (tkey == NULL) {
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "/* empty list */\n");
} else {
while (tkey != NULL) {
dns_c_tkey_print(fp, indent + 1, tkey);
tkey = ISC_LIST_NEXT(tkey, next);
}
}
dns_c_printtabs(fp, indent);
fprintf(fp,"};\n");