]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Improve data key id not found error message
authorArne Schwabe <arne@rfc2549.org>
Wed, 14 Sep 2022 17:25:27 +0000 (19:25 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 8 Nov 2022 15:52:24 +0000 (16:52 +0100)
commit616a143552143a8c0a3b727362cc3931541ca785
tree3c7ddd412fc8c62e6117001dfba152fd9fe92016
parent99af056fad3cd0aef4af68d0eacc1fb9ef9b50c7
Improve data key id not found error message

With delayed data key generation now with deferred auth, NCP and similar
mechanism the "TLS Error: local/remote TLS keys are out of sync" is shown
much too frequent and confuses a lot of people.

This also removes the dead code of printing multi not ready keys and
replace it with an assert.

Factor out printing of error messages into an extra function to make
the code easier to understand and also to only call into that function
in the case that a key is not found and avoid the overhead.

Patch v2: fix comparing key_id to state value, improve message
Patch v3: also take key_id into account

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220914172527.2661529-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25212.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c