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.
This commit is contained in:
Matthijs Mekking
2023-05-04 14:46:34 +02:00
committed by Mark Andrews
parent 7930ddadba
commit ffb1a6837f

View File

@@ -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);