mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:45:07 -05:00
nts: don't connect to server if missing AES-SIV-CMAC-256
Avoid wasting server resources if the client doesn't support AES-SIV-CMAC-256 (the only algorithm required on servers).
This commit is contained in:
@@ -370,6 +370,13 @@ NKC_Start(NKC_Instance inst)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't try to connect if missing the algorithm which all servers
|
||||||
|
are required to support */
|
||||||
|
if (SIV_GetKeyLength(AEAD_AES_SIV_CMAC_256) <= 0) {
|
||||||
|
LOG(LOGS_ERR, "Missing AES-SIV-CMAC-256");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Follow the bindacqaddress and bindacqdevice settings */
|
/* Follow the bindacqaddress and bindacqdevice settings */
|
||||||
CNF_GetBindAcquisitionAddress(inst->address.ip_addr.family, &local_addr.ip_addr);
|
CNF_GetBindAcquisitionAddress(inst->address.ip_addr.family, &local_addr.ip_addr);
|
||||||
local_addr.port = 0;
|
local_addr.port = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user