mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Change to printing of tkey lists.
This commit is contained in:
@@ -961,16 +961,17 @@ dns_c_tkeylist_print(FILE *fp, int indent, dns_c_tkeylist_t *list)
|
|||||||
REQUIRE(fp != NULL);
|
REQUIRE(fp != NULL);
|
||||||
REQUIRE(DNS_C_TKEYLIST_VALID(list));
|
REQUIRE(DNS_C_TKEYLIST_VALID(list));
|
||||||
|
|
||||||
if (ISC_LIST_EMPTY(list->tkeylist)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
dns_c_printtabs(fp, indent);
|
dns_c_printtabs(fp, indent);
|
||||||
fprintf(fp, "trusted-keys {\n");
|
fprintf(fp, "trusted-keys {\n");
|
||||||
tkey = ISC_LIST_HEAD(list->tkeylist);
|
tkey = ISC_LIST_HEAD(list->tkeylist);
|
||||||
while (tkey != NULL) {
|
if (tkey == NULL) {
|
||||||
dns_c_tkey_print(fp, indent + 1, tkey);
|
dns_c_printtabs(fp, indent + 1);
|
||||||
tkey = ISC_LIST_NEXT(tkey, next);
|
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);
|
dns_c_printtabs(fp, indent);
|
||||||
fprintf(fp,"};\n");
|
fprintf(fp,"};\n");
|
||||||
|
Reference in New Issue
Block a user