mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 12:15:07 -05:00
ntp: add support for MS-SNTP authentication in Samba
Add support for authenticating MS-SNTP responses in Samba (ntp_signd). Supported is currently only the old MS-SNTP authenticator field. It's disabled by default. It can be enabled with the --enable-ntp-signd configure option and the ntpsigndsocket directive, which specifies the location of the Samba ntp_signd socket.
This commit is contained in:
27
stubs.c
27
stubs.c
@@ -38,6 +38,7 @@
|
||||
#include "ntp_core.h"
|
||||
#include "ntp_io.h"
|
||||
#include "ntp_sources.h"
|
||||
#include "ntp_signd.h"
|
||||
#include "privops.h"
|
||||
#include "refclock.h"
|
||||
#include "sched.h"
|
||||
@@ -367,3 +368,29 @@ RCL_ReportSource(RPT_SourceReport *report, struct timeval *now)
|
||||
}
|
||||
|
||||
#endif /* !FEAT_REFCLOCK */
|
||||
|
||||
#ifndef FEAT_SIGND
|
||||
|
||||
void
|
||||
NSD_Initialise(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
NSD_Finalise(void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
NSD_GetAuthDelay(uint32_t key_id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
NSD_SignAndSendPacket(uint32_t key_id, NTP_Packet *packet, NTP_Remote_Address *remote_addr, NTP_Local_Address *local_addr, int length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* !FEAT_SIGND */
|
||||
|
||||
Reference in New Issue
Block a user