chrony/test/unit
Miroslav Lichvar bddb3b3228 sources: enable selection options with authentication
When authentication is enabled for an NTP source, unauthenticated NTP
sources need to be disabled or limited in selection. That might be
difficult to do when the configuration comes from different sources
(e.g. networking scripts adding servers from DHCP).

Define four modes for the source selection to consider authentication:
require, prefer, mix, ignore. In different modes different selection
options (require, trust, noselect) are added to authenticated and
unauthenticated sources.

The mode can be selected by the authselectmode directive. The mix mode
is the default. The ignore mode enables the old behavior, where all
sources are used exactly as specified in the configuration.
2020-05-14 15:37:38 +02:00
..
addrfilt.c test: fix DEBUG_LOG use in unit tests 2017-03-13 12:04:26 +01:00
clientlog.c test: fix unit tests to build with -NTP and -CMDMON 2020-03-05 16:02:15 +01:00
cmac.c test: add cmac unit test 2019-09-24 16:39:49 +02:00
hash.c hash: drop support for RIPEMD hash functions 2019-09-24 11:32:31 +02:00
hwclock.c update copyright years 2018-09-12 11:38:10 +02:00
keys.c test: fix unit tests to build with -NTP and -CMDMON 2020-03-05 16:02:15 +01:00
Makefile.in test: fix Makefile to not create .deps in project root 2018-09-19 16:38:15 +02:00
ntp_core.c ntp: pass server name to ntp_core instances 2020-03-05 16:02:15 +01: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 test: fix tests to skip when missing required feature 2018-09-27 11:42:38 +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 nts: allow disabling certificate time checks 2020-04-16 18:09:32 +02:00
nts_ke_server.c nts: rename ntscachedir directive to ntsdumpdir 2020-04-09 16:57:32 +02:00
nts_ke_session.c nts: fix address in server NTS-KE log messages 2020-03-26 15:30:27 +01:00
nts_ntp_auth.c test: add nts unit tests 2020-03-05 16:02:15 +01:00
nts_ntp_client.c nts: refactor NTS context 2020-04-09 16:57:31 +02:00
nts_ntp_server.c nts: refactor NTS context 2020-04-09 16:57:31 +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 test: add siv unit test 2020-03-05 16:02:15 +01:00
smooth.c main: don't require root privileges with -Q option 2017-07-13 16:10:54 +02:00
sources.c sources: enable selection options with authentication 2020-05-14 15:37:38 +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