]> git.ipfire.org Git - thirdparty/chrony.git/commit
nts: rework update of NTP server address
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 9 Feb 2021 16:40:17 +0000 (17:40 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 11 Feb 2021 08:52:57 +0000 (09:52 +0100)
commitc1d56ede3ffb4c49bc0b73a0a0d81ba0f3bbca1f
tree7bd30af298b54a178630de4f67323f22dad40eac
parent2e52aca3bf99b316fe78e6ac17d14838c3e8c86a
nts: rework update of NTP server address

In the NTS-NTP client instance, maintain a local copy of the NTP address
instead of using a pointer to the NCR's address, which may change at
unexpected times.

Also, change the NNC_CreateInstance() to accept only the NTP port to
make it clear the initial NTP address is the same as the NTS-KE address
and to make it consistent with NNC_ChangeAddress(), which accepts only
one address.
ntp_auth.c
ntp_auth.h
ntp_core.c
nts_ntp_client.c
nts_ntp_client.h
stubs.c
test/unit/ntp_auth.c
test/unit/nts_ntp_client.c