mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:25:07 -05:00
cmdmon: save NTS cookies and server keys on dump command
Extend the dump command to save also the server NTS keys and client NTS cookies. Remove the warning for unset dumpdir.
This commit is contained in:
@@ -1297,6 +1297,18 @@ NSR_GetActivityReport(RPT_ActivityReport *report)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
void
|
||||
NSR_DumpAuthData(void)
|
||||
{
|
||||
SourceRecord *record;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARR_GetSize(records); i++) {
|
||||
record = get_record(i);
|
||||
if (!record->remote_addr)
|
||||
continue;
|
||||
NCR_DumpAuthData(record->data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user