conf: add certset option to NTP sources

Allow the set of trusted certificates to be selected for each NTP
source individually.
This commit is contained in:
Miroslav Lichvar
2021-02-18 17:18:15 +01:00
parent a8bc25e543
commit cc77b0e9fd
5 changed files with 17 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ typedef struct {
int nts;
int nts_port;
uint32_t authkey;
uint32_t cert_set;
double max_delay;
double max_delay_ratio;
double max_delay_dev_ratio;
@@ -77,6 +78,7 @@ typedef struct {
#define SRC_DEFAULT_MAXSAMPLES (-1)
#define SRC_DEFAULT_ASYMMETRY 1.0
#define SRC_DEFAULT_NTSPORT 4460
#define SRC_DEFAULT_CERTSET 0
#define INACTIVE_AUTHKEY 0
/* Flags for source selection */