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:
parent
e3cd248f0d
commit
d29f7b7c70
1 changed files with 4 additions and 2 deletions
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue