mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
nts: add NTS-NTP server and client
Add support for the NTS NTP extension fields.
This commit is contained in:
63
stubs.c
63
stubs.c
@@ -42,6 +42,8 @@
|
||||
#include "ntp_signd.h"
|
||||
#include "nts_ke_client.h"
|
||||
#include "nts_ke_server.h"
|
||||
#include "nts_ntp_client.h"
|
||||
#include "nts_ntp_server.h"
|
||||
#include "privops.h"
|
||||
#include "refclock.h"
|
||||
#include "sched.h"
|
||||
@@ -452,6 +454,67 @@ CMC_DestroyInstance(CMC_Instance inst)
|
||||
|
||||
#ifndef FEAT_NTS
|
||||
|
||||
void
|
||||
NNS_Initialise(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
NNS_Finalise(void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
NNS_CheckRequestAuth(NTP_Packet *packet, NTP_PacketInfo *info, uint32_t *kod)
|
||||
{
|
||||
*kod = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
NNS_GenerateResponseAuth(NTP_Packet *request, NTP_PacketInfo *req_info,
|
||||
NTP_Packet *response, NTP_PacketInfo *res_info,
|
||||
uint32_t kod)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NNC_Instance
|
||||
NNC_CreateInstance(IPSockAddr *nts_address, const char *name, const IPSockAddr *ntp_address)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
NNC_DestroyInstance(NNC_Instance inst)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
NNC_PrepareForAuth(NNC_Instance inst)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
NNC_GenerateRequestAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
|
||||
{
|
||||
DEBUG_LOG("NTS support disabled");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
NNC_CheckResponseAuth(NNC_Instance inst, NTP_Packet *packet, NTP_PacketInfo *info)
|
||||
{
|
||||
DEBUG_LOG("NTS support disabled");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
NNC_ChangeAddress(NNC_Instance inst, IPAddr *address)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
NKC_Initialise(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user