mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:45:07 -05:00
nts: warn about missing NTS support
Log a warning message if an NTP source is specified with the nts option and the request fails due to missing NTS support.
This commit is contained in:
6
stubs.c
6
stubs.c
@@ -517,14 +517,16 @@ NNC_PrepareForAuth(NNC_Instance inst)
|
||||
int
|
||||
NNC_GenerateRequestAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
|
||||
{
|
||||
DEBUG_LOG("NTS support disabled");
|
||||
static int logged = 0;
|
||||
|
||||
LOG(logged ? LOGS_DEBUG : LOGS_WARN, "Missing NTS support");
|
||||
logged = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
NNC_CheckResponseAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
|
||||
{
|
||||
DEBUG_LOG("NTS support disabled");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user