mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 00:45:06 -05:00
nts: add support for multiple sets of trusted certificates
Modify the session, NTS-KE, and NTS-NTP code to support multiple sets of trusted certificates and identify the sets by a 32-bit ID.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "ntp.h"
|
||||
#include "nts_ke_client.h"
|
||||
|
||||
#define NKC_CreateInstance(address, name) Malloc(1)
|
||||
#define NKC_CreateInstance(address, name, cert_set) Malloc(1)
|
||||
#define NKC_DestroyInstance(inst) Free(inst)
|
||||
#define NKC_Start(inst) (random() % 2)
|
||||
#define NKC_IsActive(inst) (random() % 2)
|
||||
@@ -227,7 +227,7 @@ test_unit(void)
|
||||
SCK_GetLoopbackIPAddress(AF_INET, &addr.ip_addr);
|
||||
addr.port = 0;
|
||||
|
||||
inst = NNC_CreateInstance(&addr, "test", 0);
|
||||
inst = NNC_CreateInstance(&addr, "test", 0, 0);
|
||||
TEST_CHECK(inst);
|
||||
|
||||
for (i = 0; i < 100000; i++) {
|
||||
|
||||
Reference in New Issue
Block a user