]> git.ipfire.org Git - thirdparty/chrony.git/commit
nts: fix error response to NTS-KE request
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Jul 2020 13:46:57 +0000 (15:46 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Jul 2020 13:53:24 +0000 (15:53 +0200)
commit72bf3d26ebd182cc9bb22b846f875acbf534be67
tree104fe99b4a1eeb99e7d959ead2d8c89ff8be09c8
parentcc20ead3dcc0fa7f5e71f36e9201468e32f04f2e
nts: fix error response to NTS-KE request

When the request has an unrecognized critical record before the
NEXT_PROTOCOL and AEAD_ALGORITHM records, respond with error 0
(unrecognized critical record) instead of 1 (bad request).

When the request has multiple NEXT_PROTOCOL or AEAD_ALGORITHM records,
respond with error 1 (bad request).
nts_ke_server.c
test/unit/nts_ke_server.c