"Other daemon commands:\0\0"
"cyclelogs\0Close and re-open log files\0"
"dump\0Dump measurements and NTS keys/cookies\0"
- "rekey\0Re-read keys from key file\0"
+ "rekey\0Re-read keys\0"
"reset\0Drop all measurements\0"
"shutdown\0Stop daemon\0"
"\0\0"
handle_rekey(CMD_Request *rx_message, CMD_Reply *tx_message)
{
KEY_Reload();
+ NKS_ReloadKeys();
}
/* ================================================== */
/* ================================================== */
+void
+NKS_ReloadKeys(void)
+{
+ /* Don't load the keys if they are expected to be generated by this server
+ instance (i.e. they are already loaded) to not delay the next rotation */
+ if (key_rotation_interval > 0)
+ return;
+
+ load_keys();
+}
+
+/* ================================================== */
+
/* A server cookie consists of key ID, nonce, and encrypted C2S+S2C keys */
int
/* Save the current server keys */
extern void NKS_DumpKeys(void);
+/* Reload the keys */
+extern void NKS_ReloadKeys(void);
+
/* Generate an NTS cookie with a given context */
extern int NKS_GenerateCookie(NKE_Context *context, NKE_Cookie *cookie);
{
}
+void
+NKS_ReloadKeys(void)
+{
+}
+
#endif /* !FEAT_NTS */