chrony/test/unit
Miroslav Lichvar fdfcabd79b ntp: drop support for long NTPv4 MACs
Don't accept NTPv4 packets which have a MAC longer than 24 octets to
strictly follow RFC 7822, which specifies the maximum length of a MAC
and the minimum length of the last extension field to avoid an ambiguity
in parsing of the packet.

This removes an ugly hack that was needed to accept packets that
contained one or more extension fields without a MAC, before RFC 7822
was written and NTP implementations started using truncated MACs.

The long MACs were used by chrony in versions 2.x when configured to
authenticate a server or peer with a key using a 256-bit or longer hash
(e.g. SHA256). For compatibility with chrony >= 4.0, these clients/peers
will need to have "version 3" added to the server/peer line in
chrony.conf.
2020-09-10 13:31:57 +02:00
..
addrfilt.c test: fix DEBUG_LOG use in unit tests 2017-03-13 12:04:26 +01:00
clientlog.c clientlog: add NTS-KE service 2020-05-21 12:01:39 +02:00
cmac.c cmac+hash: change parameter types 2020-07-09 14:47:33 +02:00
hash.c cmac+hash: change parameter types 2020-07-09 14:47:33 +02:00
hwclock.c update copyright years 2018-09-12 11:38:10 +02:00
keys.c ntp: drop precompensation of TX timestamp 2020-07-09 14:46:57 +02:00
Makefile.in test: disable object dependencies in main makefile 2020-06-08 15:27:57 +02:00
ntp_core.c ntp: drop support for long NTPv4 MACs 2020-09-10 13:31:57 +02:00
ntp_core.keys test: extend ntp_core unit test 2018-08-28 18:27:03 +02:00
ntp_ext.c test: add ntp_ext unit test 2020-03-05 16:02:15 +01:00
ntp_sources.c socket: enable only specified IP families 2020-06-17 15:24:55 +02:00
nts_ke.crt test: add nts unit tests 2020-03-05 16:02:15 +01:00
nts_ke.key test: add nts unit tests 2020-03-05 16:02:15 +01:00
nts_ke_client.c test: fix cookie length in nts_ke_client unit test 2020-08-25 11:49:44 +02:00
nts_ke_server.c nts: fix error response to NTS-KE request 2020-07-23 15:53:24 +02:00
nts_ke_session.c test: improve NTS unit tests 2020-08-13 16:37:38 +02:00
nts_ntp_auth.c nts: check for negative length in NNA_DecryptAuthEF() 2020-07-09 14:47:33 +02:00
nts_ntp_client.c test: fix random failures in nts_ntp_client unit test 2020-08-17 16:28:36 +02:00
nts_ntp_server.c nts: improve NTS-KE server/client code 2020-07-16 16:02:08 +02:00
regress.c test: add regress unit test 2017-06-27 15:29:01 +02:00
samplefilt.c sources: separate update of leap status 2020-03-12 14:07:12 +01:00
siv.c siv: return error if key is not set 2020-09-10 09:36:35 +02:00
smooth.c main: don't require root privileges with -Q option 2017-07-13 16:10:54 +02:00
sources.c test: fix sources unit test 2020-06-04 14:50:17 +02:00
test.c test: fix building of unit tests 2019-07-16 13:46:37 +02:00
test.h test: allow unit tests to be skipped 2018-09-27 11:42:38 +02:00
util.c util: add function to split string into words 2020-04-09 16:42:20 +02:00