From ffb1a6837fd191ac608bef7be82bd2cc4a5794e1 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Thu, 4 May 2023 14:46:34 +0200 Subject: [PATCH] Print MaxTTL metadata in key state file Print the maximum TTl in the key files, so we know what value to use when doing a key rollover. --- lib/dns/dst_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index d01062781a..eaeffbdcc0 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -2083,6 +2083,7 @@ write_key_state(const dst_key_t *key, int type, const char *directory) { fprintf(fp, "Length: %u\n", key->key_size); printnum(key, DST_NUM_LIFETIME, "Lifetime", fp); + printnum(key, DST_NUM_MAXTTL, "MaxTTL", fp); printnum(key, DST_NUM_PREDECESSOR, "Predecessor", fp); printnum(key, DST_NUM_SUCCESSOR, "Successor", fp);