mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 10:15:06 -05:00
nts: allow disabling certificate time checks
Add "nocerttimecheck" directive to specify the number of clock updates that need to be made before the time validation of certificates is enabled. This makes NTS usable on machines that don't have a RTC.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#ifdef FEAT_NTS
|
||||
|
||||
#include <nts_ke_client.c>
|
||||
#include <local.h>
|
||||
|
||||
static void
|
||||
prepare_response(NKSN_Instance session, int valid)
|
||||
@@ -110,6 +111,7 @@ test_unit(void)
|
||||
for (i = 0; i < sizeof conf / sizeof conf[0]; i++)
|
||||
CNF_ParseLine(NULL, i + 1, conf[i]);
|
||||
|
||||
LCL_Initialise();
|
||||
NKC_Initialise();
|
||||
|
||||
SCK_GetLoopbackIPAddress(AF_INET, &addr.ip_addr);
|
||||
@@ -128,6 +130,7 @@ test_unit(void)
|
||||
NKC_DestroyInstance(inst);
|
||||
|
||||
NKC_Finalise();
|
||||
LCL_Finalise();
|
||||
CNF_Finalise();
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user